Package com.ibm.wala.cast.tree.impl
Class CAstImpl.CAstValueImpl
- java.lang.Object
-
- com.ibm.wala.cast.tree.impl.CAstImpl.CAstValueImpl
-
- All Implemented Interfaces:
CAstNode
- Direct Known Subclasses:
CAstValueImpl.CAstValueValueImpl
- Enclosing class:
- CAstImpl
protected static class CAstImpl.CAstValueImpl extends Object implements CAstNode
-
-
Field Summary
Fields Modifier and Type Field Description protected Object
value
-
Fields inherited from interface com.ibm.wala.cast.tree.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, 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
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CAstValueImpl(Object value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Field Detail
-
value
protected final Object value
-
-
Constructor Detail
-
CAstValueImpl
protected CAstValueImpl(Object value)
-
-
Method Detail
-
getKind
public int getKind()
Description copied from interface:CAstNode
What kind of node is this? Should return some constant from this file.
-
getValue
public Object getValue()
Description copied from interface:CAstNode
Returns the constant value represented by this node, if appropriate, and null otherwise.
-
getChild
public CAstNode getChild(int n)
Description copied from interface:CAstNode
Return the nth child of this node. If there is no such child, this method should throw a NoSuchElementException.
-
getChildCount
public int getChildCount()
Description copied from interface:CAstNode
How many children does this node have?- Specified by:
getChildCount
in interfaceCAstNode
-
-