public class CAstImpl extends 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(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.
|
String |
makeUnique()
Make a new identifier, unqiue to this CAst instance.
|
public String makeUnique()
CAst
makeUnique
in interface CAst
public CAstNode makeNode(int kind, CAstNode[] cs)
CAst
public CAstNode makeNode(int kind, CAstNode c1, CAstNode[] cs)
CAst
public CAstNode makeNode(int kind)
CAst
public CAstNode makeNode(int kind, CAstNode c1)
CAst
public CAstNode makeNode(int kind, CAstNode c1, CAstNode c2)
CAst
public CAstNode makeNode(int kind, CAstNode c1, CAstNode c2, CAstNode c3)
CAst
public CAstNode makeNode(int kind, CAstNode c1, CAstNode c2, CAstNode c3, CAstNode c4)
CAst
public CAstNode makeNode(int kind, CAstNode c1, CAstNode c2, CAstNode c3, CAstNode c4, CAstNode c5)
CAst
public CAstNode makeNode(int kind, CAstNode c1, CAstNode c2, CAstNode c3, CAstNode c4, CAstNode c5, CAstNode c6)
CAst
public CAstNode makeConstant(Object value)
CAst
makeConstant
in interface CAst
public CAstNode makeConstant(boolean value)
CAst
makeConstant
in interface CAst
public CAstNode makeConstant(char value)
CAst
makeConstant
in interface CAst
public CAstNode makeConstant(short value)
CAst
makeConstant
in interface CAst
public CAstNode makeConstant(int value)
CAst
makeConstant
in interface CAst
public CAstNode makeConstant(long value)
CAst
makeConstant
in interface CAst
public CAstNode makeConstant(float value)
CAst
makeConstant
in interface CAst
public CAstNode makeConstant(double value)
CAst
makeConstant
in interface CAst