| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private int | |
| protected List | |
| public boolean | |
| private CommonTree | |
| private PythonTree | parent
Who is the parent node of this node; if null, implies node is root |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public <R> R | |
| public void | |
| public void | |
| protected List | |
| public Object | |
| public static String | |
| protected String | |
| protected String | |
| protected String | |
| public PythonTree | |
| public void | |
| public void | |
| public int | |
| protected int | |
| public int | |
| public int | |
| public PythonTree | |
| public int | |
| public int | |
| public List | getChildren()
Get the children internal List; note that if you directly mess with the list, do so at your own risk. |
| public int | |
| public PythonTree | |
| protected int | |
| public int | |
| public CommonTree | |
| public PythonTree | |
| public String | |
| public Token | |
| public int | |
| public int | |
| public boolean | |
| public boolean | refersDirectlyTo(PyObject ob)
Implements org. Optional operation. |
| public void | replaceChildren(int startChildIndex, int stopChildIndex, Object t)
Delete children from start to stop and replace with t even if t is a list (nil-root tree). |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public String | toString()
Overrides org. Returns a string representation of the object. |
| public String | |
| public void | |
| public int | traverse(Visitproc visit, Object arg)
Implements org. Traverses all directly contained |
| charStartIndex | back to summary |
|---|---|
| private int charStartIndex | |
| charStopIndex | back to summary |
|---|---|
| private int charStopIndex | |
| children | back to summary |
|---|---|
| protected List<PythonTree> children | |
| from_future_checked | back to summary |
|---|---|
| public boolean from_future_checked | |
| node | back to summary |
|---|---|
| private CommonTree node | |
| parent | back to summary |
|---|---|
| private PythonTree parent Who is the parent node of this node; if null, implies node is root | |
| PythonTree | back to summary |
|---|---|
| public PythonTree() | |
| PythonTree | back to summary |
|---|---|
| public PythonTree(PyType subType) | |
| PythonTree | back to summary |
|---|---|
| public PythonTree(Token t) | |
| PythonTree | back to summary |
|---|---|
| public PythonTree(int ttype, Token t) | |
| PythonTree | back to summary |
|---|---|
| public PythonTree(PythonTree tree) | |
| accept | back to summary |
|---|---|
| public <R> R accept(VisitorIF<R> visitor) throws Exception | |
| addChild | back to summary |
|---|---|
| public void addChild(PythonTree t) Add t as child of this node. Warning if t has no children, but child does and child isNil then this routine moves children to t via t.children = child.children; i.e., without copying the array. | |
| addChildren | back to summary |
|---|---|
| public void addChildren(List<PythonTree> kids) Add all elements of kids list as children of this node | |
| createChildrenList | back to summary |
|---|---|
| protected List Override in a subclass to change the impl of children list | |
| deleteChild | back to summary |
|---|---|
| public Object deleteChild(int i) | |
| dottedNameListToString | back to summary |
|---|---|
| public static String dottedNameListToString(List<Name> names) Converts a list of Name to a dotted-name string. Because leading dots are indexable identifiers (referring to parent directories in relative imports), a Name list may include leading dots, but not dots between names. | |
| dumpThis | back to summary |
|---|---|
| protected String dumpThis(String s) | |
| dumpThis | back to summary |
|---|---|
| protected String dumpThis(Object o) | |
| dumpThis | back to summary |
|---|---|
| protected String dumpThis(Object[] s) | |
| dupNode | back to summary |
|---|---|
| public PythonTree dupNode() | |
| freshenParentAndChildIndexes | back to summary |
|---|---|
| public void freshenParentAndChildIndexes() Set the parent and child index values for all child of t | |
| freshenParentAndChildIndexes | back to summary |
|---|---|
| public void freshenParentAndChildIndexes(int offset) | |
| getAntlrType | back to summary |
|---|---|
| public int getAntlrType() | |
| getCharPositionInLine | back to summary |
|---|---|
| protected int getCharPositionInLine() | |
| getCharStartIndex | back to summary |
|---|---|
| public int getCharStartIndex() | |
| getCharStopIndex | back to summary |
|---|---|
| public int getCharStopIndex() | |
| getChild | back to summary |
|---|---|
| public PythonTree getChild(int i) | |
| getChildCount | back to summary |
|---|---|
| public int getChildCount() | |
| getChildIndex | back to summary |
|---|---|
| public int getChildIndex() | |
| getChildren | back to summary |
|---|---|
| public List Get the children internal List; note that if you directly mess with the list, do so at your own risk. | |
| getCol_offset | back to summary |
|---|---|
| public int getCol_offset() | |
| getFirstChildWithType | back to summary |
|---|---|
| public PythonTree getFirstChildWithType(int type) | |
| getLine | back to summary |
|---|---|
| protected int getLine() | |
| getLineno | back to summary |
|---|---|
| public int getLineno() | |
| getNode | back to summary |
|---|---|
| public CommonTree getNode() | |
| getParent | back to summary |
|---|---|
| public PythonTree getParent() | |
| getText | back to summary |
|---|---|
| public String getText() | |
| getToken | back to summary |
|---|---|
| public Token getToken() | |
| getTokenStartIndex | back to summary |
|---|---|
| public int getTokenStartIndex() | |
| getTokenStopIndex | back to summary |
|---|---|
| public int getTokenStopIndex() | |
| isNil | back to summary |
|---|---|
| public boolean isNil() | |
| refersDirectlyTo | back to summary |
|---|---|
| public boolean refersDirectlyTo(PyObject ob) Implements org. Doc from org. Optional operation.
Should only be implemented if it is more efficient
than calling
| |
| replaceChildren | back to summary |
|---|---|
| public void replaceChildren(int startChildIndex, int stopChildIndex, Object t) Delete children from start to stop and replace with t even if t is a list (nil-root tree). num of children can increase or decrease. For huge child lists, inserting children can force walking rest of children to set their childindex; could be slow. | |
| setCharStartIndex | back to summary |
|---|---|
| public void setCharStartIndex(int index) | |
| setCharStopIndex | back to summary |
|---|---|
| public void setCharStopIndex(int index) | |
| setChild | back to summary |
|---|---|
| public void setChild(int i, PythonTree t) | |
| setChildIndex | back to summary |
|---|---|
| public void setChildIndex(int index) | |
| setParent | back to summary |
|---|---|
| public void setParent(PythonTree t) | |
| setTokenStartIndex | back to summary |
|---|---|
| public void setTokenStartIndex(int index) | |
| setTokenStopIndex | back to summary |
|---|---|
| public void setTokenStopIndex(int index) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| toStringTree | back to summary |
|---|---|
| public String toStringTree() | |
| traverse | back to summary |
|---|---|
| public void traverse(VisitorIF<?> visitor) throws Exception | |
| traverse | back to summary |
|---|---|
| public int traverse(Visitproc visit, Object arg) Implements org. Doc from org. Traverses all directly contained
| |