Interface CAstLeafNode
- All Superinterfaces:
CAstNode
- All Known Implementing Classes:
CAstImpl.CAstValueImpl, CAstOperator, CAstValueImpl.CAstValueValueImpl
Convenience interface for implementing an AST node with no children
-
Field Summary
Fields inherited from interface CAstNode
ANDOR_EXPR, ARRAY_LENGTH, ARRAY_LITERAL, ARRAY_REF, ASSERT, ASSIGN, ASSIGN_POST_OP, ASSIGN_PRE_OP, BINARY_EXPR, BLOCK_EXPR, BLOCK_STMT, BREAK, CALL, CAST, CATCH, CHOICE_CASE, CHOICE_EXPR, CLASS_STMT, COMPREHENSION_EXPR, CONSTANT, CONTINUE, DECL_STMT, EACH_ELEMENT_GET, EACH_ELEMENT_HAS_NEXT, ECHO, EMPTY, EMPTY_LIST_EXPR, ERROR, EXPR_LIST, EXPR_STMT, FORIN_LOOP, FUNCTION_EXPR, FUNCTION_STMT, GET_CAUGHT_EXCEPTION, GLOBAL_DECL, GOTO, IF_EXPR, IF_STMT, IFGOTO, INCLUDE, INSTANCEOF, IS_DEFINED_EXPR, LABEL_STMT, LIST_EXPR, LOCAL_SCOPE, LOOP, MACRO_VAR, MONITOR_ENTER, MONITOR_EXIT, NAMED_ENTITY_REF, NARY_EXPR, NEW, NEW_ENCLOSING, OBJECT_LITERAL, OBJECT_REF, OPERATOR, PRIMITIVE, RETURN, RETURN_WITHOUT_BRANCH, SPECIAL_PARENT_SCOPE, SUB_LANGUAGE_BASE, SUPER, SWITCH, THIS, THROW, TRY, TYPE_LITERAL_EXPR, TYPE_OF, UNARY_EXPR, UNWIND, VAR, VOID, YIELD_STMTModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intRepresents a block of sequentially-executed nodes, the last of which produces the value for the entire block (like progn from lisp).static final intRepresents a block of sequential statements.static final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intRepresents an expression statement (e.g.static final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intRepresents a standard while loop.static final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intRepresents a standard case statement.static final intstatic final intstatic final intRepresents a standard try/catch statement.static final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Methods inherited from interface CAstNode
getChild, getChildCount, getKind, getValueModifier and TypeMethodDescriptiondefault CAstNodegetChild(int n) Return the nth child of this node.default intHow many children does this node have?intgetKind()What kind of node is this? Should return some constant from this file.getValue()Returns the constant value represented by this node, if appropriate, and null otherwise.
-
Method Details
-
getChildren
- Specified by:
getChildrenin interfaceCAstNode
-