Modifier and Type | Field and Description |
---|---|
static int |
BASE_LINENO_PROP |
static int |
BOTH |
static int |
BREAK_PROP |
static int |
CASEARRAY_PROP |
static int |
CASES_PROP |
static int |
CODEOFFSET_PROP |
static int |
CONTINUE_PROP |
static int |
DEBUGSOURCE_PROP |
static int |
DEFAULT_PROP |
static int |
DIRECTCALL_PROP |
static int |
END_LINENO_PROP |
static int |
ENUM_PROP |
static int |
FINALLY_PROP |
static int |
FIXUPS_PROP |
static int |
FUNCTION_PROP |
static int |
ISNUMBER_PROP |
static int |
LABEL_PROP |
static int |
LASTUSE_PROP |
static int |
LEFT |
static int |
LOCAL_PROP |
static int |
LOCALCOUNT_PROP |
static int |
REGEXP_PROP |
static int |
RIGHT |
static int |
SOURCE_PROP |
static int |
SOURCENAME_PROP |
static int |
SPECIAL_PROP_PROP |
static int |
SPECIALCALL_PROP |
static int |
TARGET_PROP |
static int |
TARGETBLOCK_PROP |
static int |
TEMP_PROP |
static int |
TYPE_PROP |
static int |
USES_PROP |
static int |
VARIABLE_PROP |
static int |
VARS_PROP |
Constructor and Description |
---|
Node(int nodeType) |
Node(int nodeType,
int value) |
Node(int nodeType,
Node child) |
Node(int nodeType,
Node[] children) |
Node(int nodeType,
Node child,
int value) |
Node(int nodeType,
Node left,
Node right) |
Node(int nodeType,
Node left,
Node right,
int value) |
Node(int nodeType,
Node left,
Node mid,
Node right) |
Node(int nodeType,
Node left,
Node mid,
Node right,
int value) |
Node(int nodeType,
Node left,
Node mid,
Node mid2,
Node right) |
Modifier and Type | Method and Description |
---|---|
void |
addChildAfter(Node newChild,
Node node)
Add 'child' after 'node'.
|
void |
addChildBefore(Node newChild,
Node node)
Add 'child' before 'node'.
|
void |
addChildrenToBack(Node children) |
void |
addChildrenToFront(Node children) |
void |
addChildToBack(Node child) |
void |
addChildToFront(Node child) |
String |
checkTreeEquals(Node node2)
Checks if the subtree under this node is the same as another subtree.
|
Node |
cloneNode() |
Node |
cloneTree() |
boolean |
equals(Object o) |
Node |
getChildBefore(Node child) |
int |
getChildCount() |
double |
getDouble()
Can only be called when getType() == TokenStream.NUMBER
|
int |
getExistingIntProp(int propType) |
Node |
getFirstChild() |
int |
getIntDatum() |
int |
getIntProp(int propType,
int defaultValue) |
Node |
getLastChild() |
Node |
getLastSibling() |
int |
getLineno() |
Node |
getNext() |
int |
getOperation() |
Object |
getProp(int propType) |
String |
getString()
Can only be called when node has String context.
|
int |
getType() |
boolean |
hasChildren() |
int |
hashCode()
Not usefully implemented.
|
boolean |
isSyntheticBlock() |
static Node |
newNumber(double number) |
static Node |
newString(int type,
String str) |
static Node |
newString(String str) |
void |
putIntProp(int propType,
int prop) |
void |
putProp(int propType,
Object prop) |
void |
removeChild(Node child) |
void |
removeProp(int propType) |
void |
replaceChild(Node child,
Node newChild) |
void |
replaceChildAfter(Node prevChild,
Node newChild) |
void |
setIsSyntheticBlock(boolean val) |
void |
setString(String s)
Can only be called when node has String context.
|
void |
setType(int type) |
String |
toString() |
String |
toStringTree() |
public static final int TARGET_PROP
public static final int BREAK_PROP
public static final int CONTINUE_PROP
public static final int ENUM_PROP
public static final int FUNCTION_PROP
public static final int TEMP_PROP
public static final int LOCAL_PROP
public static final int CODEOFFSET_PROP
public static final int FIXUPS_PROP
public static final int VARS_PROP
public static final int USES_PROP
public static final int REGEXP_PROP
public static final int CASES_PROP
public static final int DEFAULT_PROP
public static final int CASEARRAY_PROP
public static final int SOURCENAME_PROP
public static final int SOURCE_PROP
public static final int TYPE_PROP
public static final int SPECIAL_PROP_PROP
public static final int LABEL_PROP
public static final int FINALLY_PROP
public static final int LOCALCOUNT_PROP
public static final int TARGETBLOCK_PROP
public static final int VARIABLE_PROP
public static final int LASTUSE_PROP
public static final int ISNUMBER_PROP
public static final int DIRECTCALL_PROP
public static final int BASE_LINENO_PROP
public static final int END_LINENO_PROP
public static final int SPECIALCALL_PROP
public static final int DEBUGSOURCE_PROP
public static final int BOTH
public static final int LEFT
public static final int RIGHT
public Node(int nodeType)
public Node(int nodeType, Node child)
public Node(int nodeType, Node[] children)
public Node(int nodeType, int value)
public Node(int nodeType, Node child, int value)
public static Node newNumber(double number)
public int getType()
public void setType(int type)
public int getIntDatum()
public boolean hasChildren()
public Node getFirstChild()
public Node getLastChild()
public Node getNext()
public int getChildCount()
public Node getLastSibling()
public void addChildToFront(Node child)
public void addChildToBack(Node child)
public void addChildrenToFront(Node children)
public void addChildrenToBack(Node children)
public void removeChild(Node child)
public Object getProp(int propType)
public int getIntProp(int propType, int defaultValue)
public int getExistingIntProp(int propType)
public void putProp(int propType, Object prop)
public void putIntProp(int propType, int prop)
public void removeProp(int propType)
public int getOperation()
public int getLineno()
public double getDouble() throws UnsupportedOperationException
UnsupportedOperationException
public String getString() throws UnsupportedOperationException
UnsupportedOperationException
public void setString(String s) throws UnsupportedOperationException
UnsupportedOperationException
public Node cloneNode()
public Node cloneTree()
public String toStringTree()
public String checkTreeEquals(Node node2)
public void setIsSyntheticBlock(boolean val)
public boolean isSyntheticBlock()
Copyright © 2018. All rights reserved.