com.ibm.wala.cast.tree.impl
Class CAstImpl.CAstValueImpl

java.lang.Object
  extended by 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 java.lang.Object
implements CAstNode


Field Summary
protected  java.lang.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, FUNCTION_EXPR, FUNCTION_STMT, GET_CAUGHT_EXCEPTION, GOTO, IF_EXPR, IF_STMT, IFGOTO, INSTANCEOF, IS_DEFINED_EXPR, LABEL_STMT, LIST_EXPR, LOCAL_SCOPE, LOOP, MONITOR_ENTER, MONITOR_EXIT, NEW, OBJECT_LITERAL, OBJECT_REF, OPERATOR, PRIMITIVE, RETURN, RETURN_WITHOUT_BRANCH, SUB_LANGUAGE_BASE, SUPER, SWITCH, THIS, THROW, TRY, TYPE_LITERAL_EXPR, TYPE_OF, UNARY_EXPR, UNWIND, VAR, VOID
 
Constructor Summary
protected CAstImpl.CAstValueImpl(java.lang.Object value)
           
 
Method Summary
 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.
 java.lang.Object getValue()
          Returns the constant value represented by this node, if appropriate, and null otherwise.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

value

protected final java.lang.Object value
Constructor Detail

CAstImpl.CAstValueImpl

protected CAstImpl.CAstValueImpl(java.lang.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.

Specified by:
getKind in interface CAstNode

getValue

public java.lang.Object getValue()
Description copied from interface: CAstNode
Returns the constant value represented by this node, if appropriate, and null otherwise.

Specified by:
getValue in interface CAstNode

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.

Specified by:
getChild in interface CAstNode

getChildCount

public int getChildCount()
Description copied from interface: CAstNode
How many children does this node have?

Specified by:
getChildCount in interface CAstNode

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object