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

java.lang.Object
  extended by com.ibm.wala.cast.tree.impl.CAstImpl
      extended by com.ibm.wala.cast.tree.impl.CAstValueImpl
All Implemented Interfaces:
CAst

public class CAstValueImpl
extends CAstImpl

An implementation of CAst, i.e. a simple factory for creating capa ast nodes. This class simply creates generic nodes with a kind field, and either an array of children. Note that there is no easy way to mutate these trees; do not changes this (see CAstNode for the rationale for this rule).


Nested Class Summary
protected static class CAstValueImpl.CAstNodeValueImpl
           
protected static class CAstValueImpl.CAstValueValueImpl
           
 
Nested classes/interfaces inherited from class com.ibm.wala.cast.tree.impl.CAstImpl
CAstImpl.CAstNodeImpl, CAstImpl.CAstValueImpl
 
Constructor Summary
CAstValueImpl()
           
 
Method Summary
 CAstNode makeConstant(java.lang.Object value)
          Make an arbitrary object constant node.
 CAstNode makeNode(int kind, CAstNode[] cs)
          Make a node of type kind specifying an array of children.
 
Methods inherited from class com.ibm.wala.cast.tree.impl.CAstImpl
makeConstant, makeConstant, makeConstant, makeConstant, makeConstant, makeConstant, makeConstant, makeNode, makeNode, makeNode, makeNode, makeNode, makeNode, makeNode, makeNode, makeUnique
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CAstValueImpl

public CAstValueImpl()
Method Detail

makeNode

public CAstNode makeNode(int kind,
                         CAstNode[] cs)
Description copied from interface: CAst
Make a node of type kind specifying an array of children.

Specified by:
makeNode in interface CAst
Overrides:
makeNode in class CAstImpl

makeConstant

public CAstNode makeConstant(java.lang.Object value)
Description copied from interface: CAst
Make an arbitrary object constant node.

Specified by:
makeConstant in interface CAst
Overrides:
makeConstant in class CAstImpl