| |
|
| java.lang.Object net.sourceforge.pmd.ast.SimpleNode
All known Subclasses: net.sourceforge.pmd.ast.SimpleJavaNode,
SimpleNode | abstract public class SimpleNode implements Node(Code) | | |
beginColumn | protected int beginColumn(Code) | | |
beginLine | protected int beginLine(Code) | | |
endColumn | protected int endColumn(Code) | | |
endLine | protected int endLine(Code) | | |
SimpleNode | public SimpleNode(int i)(Code) | | |
containsChildOfType | final public boolean containsChildOfType(Class type)(Code) | | Finds if this node contains a child of the given type.
This is an utility method that uses
SimpleNode.findChildrenOfType(Class) Parameters: type - the node type to search true if there is at lease on child of the given type and false in any other case |
discardIfNecessary | public void discardIfNecessary()(Code) | | |
dumpChildren | protected void dumpChildren(String prefix)(Code) | | |
findChildrenOfType | public void findChildrenOfType(Class targetType, List results)(Code) | | |
findChildrenOfType | public void findChildrenOfType(Class targetType, List results, boolean descendIntoNestedClasses)(Code) | | |
getBeginColumn | public int getBeginColumn()(Code) | | |
getBeginLine | public int getBeginLine()(Code) | | |
getEndColumn | public int getEndColumn()(Code) | | |
getEndLine | public int getEndLine()(Code) | | |
getFirstChildOfType | public Node getFirstChildOfType(Class childType)(Code) | | Traverses down the tree to find the first child instance of type childType
Parameters: childType - class which you want to find. Node of type childType. Returns null if none found. |
getFirstParentOfType | public Node getFirstParentOfType(Class parentType)(Code) | | Traverses up the tree to find the first parent instance of type parentType
Parameters: parentType - class which you want to find. Node of type parentType. Returns null if none found. |
getParentsOfType | public List getParentsOfType(Class parentType)(Code) | | Traverses up the tree to find all of the parent instances of type parentType
Parameters: parentType - classes which you want to find. List of parentType instances found. |
jjtAddChild | public void jjtAddChild(Node n, int i)(Code) | | |
jjtClose | public void jjtClose()(Code) | | |
jjtGetNumChildren | public int jjtGetNumChildren()(Code) | | |
jjtOpen | public void jjtOpen()(Code) | | |
jjtReplaceChild | public void jjtReplaceChild(Node old, Node newNode)(Code) | | |
jjtSetParent | public void jjtSetParent(Node n)(Code) | | |
setDiscardable | public void setDiscardable()(Code) | | |
setUnDiscardable | public void setUnDiscardable()(Code) | | |
testingOnly__setBeginColumn | public void testingOnly__setBeginColumn(int i)(Code) | | |
testingOnly__setBeginLine | public void testingOnly__setBeginLine(int i)(Code) | | |
|
|
|