Libraries.Language.Compile.CodeCompletionListener Documentation
The codeCompletionListener is a QuorumSourceListener designed to read expressions for code completion. It processes a limited subset of the language on a per line basis, notably expressions, and places an opcode on the opcode stack of a particular type. This type is the type being requested for code completion information.
Inherits from: Libraries.Language.Object, Libraries.Language.Compile.QuorumSourceListener
Actions Documentation
CanCodeComplete()
Return
boolean
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)