anvil.script.expression
Class Node
java.lang.Object
|
+--anvil.script.expression.Node
- Direct Known Subclasses:
- CatchStatement.DataNode, ComprehensionNode, ConstantNode, ConstantVariableNode, EscapedVariableNode, GlobalNamespaceNode, InlinedFunctionNode, JavaClassNode, LinkNode, MemberVariableNode, NamespaceNode, Parent, StaticVariableNode, StringNode, SymbolNode, ThisNode, ThunkNode, TypeNode, VariableNode
- public class Node
- extends java.lang.Object
class Node
|
Constructor Summary |
Node()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GET
public static final int GET
- See Also:
- Constant Field Values
GET_BOOLEAN
public static final int GET_BOOLEAN
- See Also:
- Constant Field Values
DELETE
public static final int DELETE
- See Also:
- Constant Field Values
GET_TYPE
public static final int GET_TYPE
- See Also:
- Constant Field Values
GET_REF
public static final int GET_REF
- See Also:
- Constant Field Values
GET_UNREF
public static final int GET_UNREF
- See Also:
- Constant Field Values
NONE
public static final int NONE
- See Also:
- Constant Field Values
EXPR_ADD
public static final int EXPR_ADD
- See Also:
- Constant Field Values
EXPR_AND
public static final int EXPR_AND
- See Also:
- Constant Field Values
EXPR_ARRAY
public static final int EXPR_ARRAY
- See Also:
- Constant Field Values
EXPR_ASSIGN
public static final int EXPR_ASSIGN
- See Also:
- Constant Field Values
EXPR_ASSIGN_ADD
public static final int EXPR_ASSIGN_ADD
- See Also:
- Constant Field Values
EXPR_ASSIGN_CONCAT
public static final int EXPR_ASSIGN_CONCAT
- See Also:
- Constant Field Values
EXPR_ASSIGN_DIVIDE
public static final int EXPR_ASSIGN_DIVIDE
- See Also:
- Constant Field Values
EXPR_ASSIGN_MODULO
public static final int EXPR_ASSIGN_MODULO
- See Also:
- Constant Field Values
EXPR_ASSIGN_MULTIPLY
public static final int EXPR_ASSIGN_MULTIPLY
- See Also:
- Constant Field Values
EXPR_ASSIGN_SUBTRACT
public static final int EXPR_ASSIGN_SUBTRACT
- See Also:
- Constant Field Values
EXPR_ATTRIBUTE
public static final int EXPR_ATTRIBUTE
- See Also:
- Constant Field Values
EXPR_BOOLEAN_CAST
public static final int EXPR_BOOLEAN_CAST
- See Also:
- Constant Field Values
EXPR_CALL
public static final int EXPR_CALL
- See Also:
- Constant Field Values
EXPR_CLASSOF
public static final int EXPR_CLASSOF
- See Also:
- Constant Field Values
EXPR_CLONE
public static final int EXPR_CLONE
- See Also:
- Constant Field Values
EXPR_COMPARE
public static final int EXPR_COMPARE
- See Also:
- Constant Field Values
EXPR_COMPARISON_CHAIN
public static final int EXPR_COMPARISON_CHAIN
- See Also:
- Constant Field Values
EXPR_CONCATENATION
public static final int EXPR_CONCATENATION
- See Also:
- Constant Field Values
EXPR_CONDITIONAL
public static final int EXPR_CONDITIONAL
- See Also:
- Constant Field Values
EXPR_CONSTANT
public static final int EXPR_CONSTANT
- See Also:
- Constant Field Values
EXPR_CONSTANT_VARIABLE
public static final int EXPR_CONSTANT_VARIABLE
- See Also:
- Constant Field Values
EXPR_COPY
public static final int EXPR_COPY
- See Also:
- Constant Field Values
EXPR_DEFINED
public static final int EXPR_DEFINED
- See Also:
- Constant Field Values
EXPR_DELETE
public static final int EXPR_DELETE
- See Also:
- Constant Field Values
EXPR_DIVIDE
public static final int EXPR_DIVIDE
- See Also:
- Constant Field Values
EXPR_EMPTY_REFERENCE
public static final int EXPR_EMPTY_REFERENCE
- See Also:
- Constant Field Values
EXPR_EQUAL
public static final int EXPR_EQUAL
- See Also:
- Constant Field Values
EXPR_EXACT_EQUAL
public static final int EXPR_EXACT_EQUAL
- See Also:
- Constant Field Values
EXPR_EXACT_NOT_EQUAL
public static final int EXPR_EXACT_NOT_EQUAL
- See Also:
- Constant Field Values
EXPR_FLOAT_CAST
public static final int EXPR_FLOAT_CAST
- See Also:
- Constant Field Values
EXPR_GREATER
public static final int EXPR_GREATER
- See Also:
- Constant Field Values
EXPR_GREATER_EQUAL
public static final int EXPR_GREATER_EQUAL
- See Also:
- Constant Field Values
EXPR_HAS
public static final int EXPR_HAS
- See Also:
- Constant Field Values
EXPR_IMPORT
public static final int EXPR_IMPORT
- See Also:
- Constant Field Values
EXPR_IN
public static final int EXPR_IN
- See Also:
- Constant Field Values
EXPR_INT_CAST
public static final int EXPR_INT_CAST
- See Also:
- Constant Field Values
EXPR_INVOKE
public static final int EXPR_INVOKE
- See Also:
- Constant Field Values
EXPR_IS
public static final int EXPR_IS
- See Also:
- Constant Field Values
EXPR_LESS
public static final int EXPR_LESS
- See Also:
- Constant Field Values
EXPR_LESS_EQUAL
public static final int EXPR_LESS_EQUAL
- See Also:
- Constant Field Values
EXPR_LINK
public static final int EXPR_LINK
- See Also:
- Constant Field Values
EXPR_LIST
public static final int EXPR_LIST
- See Also:
- Constant Field Values
EXPR_MAPPING
public static final int EXPR_MAPPING
- See Also:
- Constant Field Values
EXPR_MATCH
public static final int EXPR_MATCH
- See Also:
- Constant Field Values
EXPR_MODULO
public static final int EXPR_MODULO
- See Also:
- Constant Field Values
EXPR_MULTIPLY
public static final int EXPR_MULTIPLY
- See Also:
- Constant Field Values
EXPR_NAMED
public static final int EXPR_NAMED
- See Also:
- Constant Field Values
EXPR_NAMESPACE
public static final int EXPR_NAMESPACE
- See Also:
- Constant Field Values
EXPR_NEW
public static final int EXPR_NEW
- See Also:
- Constant Field Values
EXPR_NOT
public static final int EXPR_NOT
- See Also:
- Constant Field Values
EXPR_NOT_EQUAL
public static final int EXPR_NOT_EQUAL
- See Also:
- Constant Field Values
EXPR_NO_MATCH
public static final int EXPR_NO_MATCH
- See Also:
- Constant Field Values
EXPR_OR
public static final int EXPR_OR
- See Also:
- Constant Field Values
EXPR_POSTFIX_DECREMENT
public static final int EXPR_POSTFIX_DECREMENT
- See Also:
- Constant Field Values
EXPR_POSTFIX_INCREMENT
public static final int EXPR_POSTFIX_INCREMENT
- See Also:
- Constant Field Values
EXPR_PREFIX_DECREMENT
public static final int EXPR_PREFIX_DECREMENT
- See Also:
- Constant Field Values
EXPR_PREFIX_INCREMENT
public static final int EXPR_PREFIX_INCREMENT
- See Also:
- Constant Field Values
EXPR_RANGE
public static final int EXPR_RANGE
- See Also:
- Constant Field Values
EXPR_REFERENCE
public static final int EXPR_REFERENCE
- See Also:
- Constant Field Values
EXPR_SELECT
public static final int EXPR_SELECT
- See Also:
- Constant Field Values
EXPR_SIZEOF
public static final int EXPR_SIZEOF
- See Also:
- Constant Field Values
EXPR_SPLICE
public static final int EXPR_SPLICE
- See Also:
- Constant Field Values
EXPR_STRING_BUFFER
public static final int EXPR_STRING_BUFFER
- See Also:
- Constant Field Values
EXPR_STRING_CAST
public static final int EXPR_STRING_CAST
- See Also:
- Constant Field Values
EXPR_SUBTRACT
public static final int EXPR_SUBTRACT
- See Also:
- Constant Field Values
EXPR_SYMBOL
public static final int EXPR_SYMBOL
- See Also:
- Constant Field Values
EXPR_THIS
public static final int EXPR_THIS
- See Also:
- Constant Field Values
EXPR_TYPE
public static final int EXPR_TYPE
- See Also:
- Constant Field Values
EXPR_TYPEOF
public static final int EXPR_TYPEOF
- See Also:
- Constant Field Values
EXPR_UNARY_MINUS
public static final int EXPR_UNARY_MINUS
- See Also:
- Constant Field Values
EXPR_UNARY_PLUS
public static final int EXPR_UNARY_PLUS
- See Also:
- Constant Field Values
EXPR_VARIABLE
public static final int EXPR_VARIABLE
- See Also:
- Constant Field Values
EXPR_XOR
public static final int EXPR_XOR
- See Also:
- Constant Field Values
EXPR_THUNK
public static final int EXPR_THUNK
- See Also:
- Constant Field Values
EXPR_FOREACH
public static final int EXPR_FOREACH
- See Also:
- Constant Field Values
EXPR_ASSIGN_INIT
public static final int EXPR_ASSIGN_INIT
- See Also:
- Constant Field Values
EXPR_ASSIGN_SUBST
public static final int EXPR_ASSIGN_SUBST
- See Also:
- Constant Field Values
EXPR_DEFAULT_MAPPING
public static final int EXPR_DEFAULT_MAPPING
- See Also:
- Constant Field Values
EXPR_PIPE
public static final int EXPR_PIPE
- See Also:
- Constant Field Values
Node
public Node()
typeOf
public int typeOf()
isConstant
public boolean isConstant()
isAssignable
public boolean isAssignable()
isUpdatable
public boolean isUpdatable()
optimize
public Node optimize()
check
public void check(ErrorListener context)
eval
public Any eval()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
compile
public void compile(ByteCompiler context,
int operation)
compile
public void compile(ByteCompiler context,
Node child)