|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.wala.cast.tree.impl.CAstImpl
public class 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 or a constant values. Note that there is no easy way to mutate these trees; do not change this (see CAstNode for the rationale for this rule).
| Nested Class Summary | |
|---|---|
protected static class |
CAstImpl.CAstNodeImpl
|
protected static class |
CAstImpl.CAstValueImpl
|
| Constructor Summary | |
|---|---|
CAstImpl()
|
|
| Method Summary | |
|---|---|
CAstNode |
makeConstant(boolean value)
Make a boolean constant node. |
CAstNode |
makeConstant(char value)
Make a char constant node. |
CAstNode |
makeConstant(double value)
Make a double-precision floating point constant node. |
CAstNode |
makeConstant(float value)
Make a single-precision floating point constant node. |
CAstNode |
makeConstant(int value)
Make an integer constant node. |
CAstNode |
makeConstant(long value)
Make a long integer constant node. |
CAstNode |
makeConstant(java.lang.Object value)
Make an arbitrary object constant node. |
CAstNode |
makeConstant(short value)
Make a short integer constant node. |
CAstNode |
makeNode(int kind)
Make a node of type kind with no children. |
CAstNode |
makeNode(int kind,
CAstNode c1)
Make a node of type kind with one child. |
CAstNode |
makeNode(int kind,
CAstNode[] cs)
Make a node of type kind specifying an array of children. |
CAstNode |
makeNode(int kind,
CAstNode c1,
CAstNode c2)
Make a node of type kind with two children. |
CAstNode |
makeNode(int kind,
CAstNode c1,
CAstNode[] cs)
Make a node of type kind giving a first child and array of the rest. |
CAstNode |
makeNode(int kind,
CAstNode c1,
CAstNode c2,
CAstNode c3)
Make a node of type kind with three children. |
CAstNode |
makeNode(int kind,
CAstNode c1,
CAstNode c2,
CAstNode c3,
CAstNode c4)
Make a node of type kind with four children. |
CAstNode |
makeNode(int kind,
CAstNode c1,
CAstNode c2,
CAstNode c3,
CAstNode c4,
CAstNode c5)
Make a node of type kind with five children. |
CAstNode |
makeNode(int kind,
CAstNode c1,
CAstNode c2,
CAstNode c3,
CAstNode c4,
CAstNode c5,
CAstNode c6)
Make a node of type kind with six children. |
java.lang.String |
makeUnique()
Make a new identifier, unqiue to this CAst instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CAstImpl()
| Method Detail |
|---|
public java.lang.String makeUnique()
CAst
makeUnique in interface CAst
public CAstNode makeNode(int kind,
CAstNode[] cs)
CAst
makeNode in interface CAst
public CAstNode makeNode(int kind,
CAstNode c1,
CAstNode[] cs)
CAst
makeNode in interface CAstpublic CAstNode makeNode(int kind)
CAst
makeNode in interface CAst
public CAstNode makeNode(int kind,
CAstNode c1)
CAst
makeNode in interface CAst
public CAstNode makeNode(int kind,
CAstNode c1,
CAstNode c2)
CAst
makeNode in interface CAst
public CAstNode makeNode(int kind,
CAstNode c1,
CAstNode c2,
CAstNode c3)
CAst
makeNode in interface CAst
public CAstNode makeNode(int kind,
CAstNode c1,
CAstNode c2,
CAstNode c3,
CAstNode c4)
CAst
makeNode in interface CAst
public CAstNode makeNode(int kind,
CAstNode c1,
CAstNode c2,
CAstNode c3,
CAstNode c4,
CAstNode c5)
CAst
makeNode in interface CAst
public CAstNode makeNode(int kind,
CAstNode c1,
CAstNode c2,
CAstNode c3,
CAstNode c4,
CAstNode c5,
CAstNode c6)
CAst
makeNode in interface CAstpublic CAstNode makeConstant(java.lang.Object value)
CAst
makeConstant in interface CAstpublic CAstNode makeConstant(boolean value)
CAst
makeConstant in interface CAstpublic CAstNode makeConstant(char value)
CAst
makeConstant in interface CAstpublic CAstNode makeConstant(short value)
CAst
makeConstant in interface CAstpublic CAstNode makeConstant(int value)
CAst
makeConstant in interface CAstpublic CAstNode makeConstant(long value)
CAst
makeConstant in interface CAstpublic CAstNode makeConstant(float value)
CAst
makeConstant in interface CAstpublic CAstNode makeConstant(double value)
CAst
makeConstant in interface CAst
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||