Libraries.Language.Compile.Parsing.UnifiedSourceListener Documentation
This is a listener that by default calls an Enter and Exit action for every rule in a parse tree. In and of itself, it is not particularly useful for clients and should not be used. It exists because some sub-classes of Quorum may wish to "turn off" certain features of the language in certain circumstances and sub-classes can do this easily using this architecture.
Inherits from: Libraries.Language.Object, Libraries.Language.Compile.QuorumSourceListener
Actions Documentation
Compare(Libraries.Language.Object object)
This action compares two object hash codes and returns an integer. The result is larger if this hash code is larger than the object passed as a parameter, smaller, or equal. In this case, -1 means smaller, 0 means equal, and 1 means larger. This action was changed in Quorum 7 to return an integer, instead of a CompareResult object, because the previous implementation was causing efficiency issues.
Parameters
- Libraries.Language.Object: The object to compare to.
Return
integer: The Compare result, Smaller, Equal, or Larger.
Example
Object o
Object t
integer result = o:Compare(t) //1 (larger), 0 (equal), or -1 (smaller)