org.mozilla.javascript
public class Node extends Object
Nested Class Summary | |
---|---|
static class | Node.Jump |
Field Summary | |
---|---|
static int | ATTRIBUTE_FLAG |
static int | BOTH |
static int | CASEARRAY_PROP |
static int | CATCH_SCOPE_PROP |
static int | DECR_FLAG |
static int | DESCENDANTS_FLAG |
static int | DIRECTCALL_PROP |
static int | FUNCTION_PROP |
static int | INCRDECR_PROP |
static int | ISNUMBER_PROP |
static int | LABEL_ID_PROP |
static int | LAST_PROP |
static int | LEFT |
static int | LOCAL_BLOCK_PROP |
static int | LOCAL_PROP |
static int | MEMBER_TYPE_PROP |
static int | NAME_PROP |
static int | NON_SPECIALCALL |
static int | OBJECT_IDS_PROP |
static int | POST_FLAG |
static int | PROPERTY_FLAG |
static int | REGEXP_PROP |
static int | RIGHT |
static int | SKIP_INDEXES_PROP |
static int | SPECIALCALL_EVAL |
static int | SPECIALCALL_PROP |
static int | SPECIALCALL_WITH |
static int | TARGETBLOCK_PROP |
static int | VARIABLE_PROP |
Constructor Summary | |
---|---|
Node(int nodeType) | |
Node(int nodeType, Node child) | |
Node(int nodeType, Node left, Node right) | |
Node(int nodeType, Node left, Node mid, Node right) | |
Node(int nodeType, int line) | |
Node(int nodeType, Node child, int line) | |
Node(int nodeType, Node left, Node right, int line) | |
Node(int nodeType, Node left, Node mid, Node right, int line) |
Method Summary | |
---|---|
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) |
Node | getChildBefore(Node child) |
double | getDouble() Can only be called when getType() == Token.NUMBER |
int | getExistingIntProp(int propType) |
Node | getFirstChild() |
int | getIntProp(int propType, int defaultValue) |
Node | getLastChild() |
Node | getLastSibling() |
int | getLineno() |
Node | getNext() |
Object | getProp(int propType) |
String | getString() Can only be called when node has String context. |
int | getType() |
boolean | hasChildren() |
int | labelId() |
void | labelId(int labelId) |
static Node | newNumber(double number) |
static Node | newString(String str) |
static Node | newString(int type, String str) |
static Node | newTarget() |
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 | setDouble(double number) |
void | setString(String s) Can only be called when node has String context. |
void | setType(int type) |
String | toString() |
String | toStringTree(ScriptOrFnNode treeTop) |