protected static class CAstImpl.CAstValueImpl extends Object implements CAstNode
Modifier and Type | Field and Description |
---|---|
protected Object |
value |
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, 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, 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, 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_STMT
Modifier | Constructor and Description |
---|---|
protected |
CAstValueImpl(Object value) |
Modifier and Type | Method and Description |
---|---|
CAstNode |
getChild(int n)
Return the nth child of this node.
|
int |
getChildCount()
How many children does this node have?
|
int |
getKind()
What kind of node is this? Should return some constant from this file.
|
Object |
getValue()
Returns the constant value represented by this node, if
appropriate, and null otherwise.
|
int |
hashCode() |
String |
toString() |
protected final Object value
protected CAstValueImpl(Object value)
public int getKind()
CAstNode
public Object getValue()
CAstNode
public CAstNode getChild(int n)
CAstNode
public int getChildCount()
CAstNode
getChildCount
in interface CAstNode