public class CAstImpl extends java.lang.Object implements CAst
| Modifier and Type | Class and Description |
|---|---|
protected static class |
CAstImpl.CAstNodeImpl |
protected static class |
CAstImpl.CAstValueImpl |
| Constructor and Description |
|---|
CAstImpl() |
| Modifier and Type | Method and Description |
|---|---|
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... cs)
Make a node of type kind specifying an array of children.
|
CAstNode |
makeNode(int kind,
CAstNode c1)
Make a node of type kind with one child.
|
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.
|
CAstNode |
makeNode(int kind,
java.util.List<CAstNode> cs)
Make a node of type kind specifying a list of children.
|
java.lang.String |
makeUnique()
Make a new identifier, unqiue to this CAst instance.
|
public java.lang.String makeUnique()
CAstmakeUnique in interface CAstpublic CAstNode makeNode(int kind, java.util.List<CAstNode> cs)
CAstpublic CAstNode makeNode(int kind, CAstNode c1, CAstNode[] cs)
CAstpublic CAstNode makeNode(int kind)
CAstpublic CAstNode makeNode(int kind, CAstNode c1)
CAstpublic CAstNode makeNode(int kind, CAstNode c1, CAstNode c2)
CAstpublic CAstNode makeNode(int kind, CAstNode c1, CAstNode c2, CAstNode c3)
CAstpublic CAstNode makeNode(int kind, CAstNode c1, CAstNode c2, CAstNode c3, CAstNode c4)
CAstpublic CAstNode makeNode(int kind, CAstNode c1, CAstNode c2, CAstNode c3, CAstNode c4, CAstNode c5)
CAstpublic CAstNode makeNode(int kind, CAstNode c1, CAstNode c2, CAstNode c3, CAstNode c4, CAstNode c5, CAstNode c6)
CAstpublic CAstNode makeNode(int kind, CAstNode... cs)
CAstpublic CAstNode makeConstant(java.lang.Object value)
CAstmakeConstant in interface CAstpublic CAstNode makeConstant(boolean value)
CAstmakeConstant in interface CAstpublic CAstNode makeConstant(char value)
CAstmakeConstant in interface CAstpublic CAstNode makeConstant(short value)
CAstmakeConstant in interface CAstpublic CAstNode makeConstant(int value)
CAstmakeConstant in interface CAstpublic CAstNode makeConstant(long value)
CAstmakeConstant in interface CAstpublic CAstNode makeConstant(float value)
CAstmakeConstant in interface CAstpublic CAstNode makeConstant(double value)
CAstmakeConstant in interface CAst