Package com.ibm.wala.cast.tree.impl
Class CAstValueImpl
- java.lang.Object
-
- com.ibm.wala.cast.tree.impl.CAstImpl
-
- 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
Nested Classes Modifier and Type Class Description protected static classCAstValueImpl.CAstNodeValueImplprotected static classCAstValueImpl.CAstValueValueImpl-
Nested classes/interfaces inherited from class com.ibm.wala.cast.tree.impl.CAstImpl
CAstImpl.CAstNodeImpl, CAstImpl.CAstValueImpl
-
-
Constructor Summary
Constructors Constructor Description CAstValueImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CAstNodemakeConstant(Object value)Make an arbitrary object constant node.CAstNodemakeNode(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
-
-
-
-
Method Detail
-
makeNode
public CAstNode makeNode(int kind, CAstNode[] cs)
Description copied from interface:CAstMake a node of type kind specifying an array of children.
-
makeConstant
public CAstNode makeConstant(Object value)
Description copied from interface:CAstMake an arbitrary object constant node.- Specified by:
makeConstantin interfaceCAst- Overrides:
makeConstantin classCAstImpl
-
-