Package com.ibm.wala.cast.tree.impl
Class CAstImpl.CAstNodeImpl
- java.lang.Object
-
- com.ibm.wala.cast.tree.impl.CAstImpl.CAstNodeImpl
-
- All Implemented Interfaces:
CAstNode
- Direct Known Subclasses:
CAstValueImpl.CAstNodeValueImpl
- Enclosing class:
- CAstImpl
protected static class CAstImpl.CAstNodeImpl extends Object implements CAstNode
-
-
Field Summary
Fields Modifier and Type Field Description protected CAstNode[]
cs
protected int
kind
-
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
CAstNodeImpl(int kind, CAstNode[] cs)
-
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
-
cs
protected final CAstNode[] cs
-
kind
protected final int kind
-
-
Constructor Detail
-
CAstNodeImpl
protected CAstNodeImpl(int kind, CAstNode[] cs)
-
-
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
-
-