Class ASTModProtected
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.AbstractNode
-
- net.sourceforge.pmd.lang.scala.ast.ASTModProtected
-
- All Implemented Interfaces:
net.sourceforge.pmd.lang.ast.Node
,ScalaNode<scala.meta.Mod.Protected>
public class ASTModProtected extends net.sourceforge.pmd.lang.ast.AbstractNode
The ASTModProtected node implementation.
-
-
Constructor Summary
Constructors Constructor Description ASTModProtected(scala.meta.Mod.Protected scalaNode)
Create the AST node for this Scala node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <D,R>
Raccept(ScalaParserVisitor<D,R> visitor, D data)
Accept a visitor and traverse this node.T
getNode()
Get the underlying Scala Node.java.lang.String
getXPathNodeName()
ScalaNode<?>
jjtGetChild(int index)
ScalaNode<?>
jjtGetParent()
-
Methods inherited from class net.sourceforge.pmd.lang.ast.AbstractNode
appendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, getXPathAttributesIterator, hasDecendantOfAnyType, hasDescendantMatchingXPath, hasDescendantOfAnyType, hasDescendantOfType, hasImageEqualTo, isFindBoundary, isSingleLine, jjtAddChild, jjtClose, jjtGetChildIndex, jjtGetFirstToken, jjtGetId, jjtGetLastToken, jjtGetNumChildren, jjtOpen, jjtSetChildIndex, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData, testingOnlySetBeginColumn, testingOnlySetBeginLine, testingOnlySetEndColumn, testingOnlySetEndLine, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.Node
findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, getXPathAttributesIterator, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtClose, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtOpen, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
-
-
-
-
Method Detail
-
accept
public <D,R> R accept(ScalaParserVisitor<D,R> visitor, D data)
Description copied from interface:ScalaNode
Accept a visitor and traverse this node.- Specified by:
accept
in interfaceScalaNode<scala.meta.Mod.Protected>
- Type Parameters:
D
- The type of the data inputR
- The type of the returned data- Parameters:
visitor
- the visitor to visit this node withdata
- context-specific data to pass along- Returns:
- context-specific data for this Visitor pattern
-
getNode
public T getNode()
Description copied from interface:ScalaNode
Get the underlying Scala Node.
-
jjtGetChild
public ScalaNode<?> jjtGetChild(int index)
- Specified by:
jjtGetChild
in interfacenet.sourceforge.pmd.lang.ast.Node
- Specified by:
jjtGetChild
in interfaceScalaNode<T extends scala.meta.Tree>
- Overrides:
jjtGetChild
in classnet.sourceforge.pmd.lang.ast.AbstractNode
-
jjtGetParent
public ScalaNode<?> jjtGetParent()
- Specified by:
jjtGetParent
in interfacenet.sourceforge.pmd.lang.ast.Node
- Specified by:
jjtGetParent
in interfaceScalaNode<T extends scala.meta.Tree>
- Overrides:
jjtGetParent
in classnet.sourceforge.pmd.lang.ast.AbstractNode
-
getXPathNodeName
public java.lang.String getXPathNodeName()
- Specified by:
getXPathNodeName
in interfacenet.sourceforge.pmd.lang.ast.Node
- Overrides:
getXPathNodeName
in classnet.sourceforge.pmd.lang.ast.AbstractNode
-
-