Interface ScalaNode<T extends scala.meta.Tree>
-
- Type Parameters:
T
- The Scala node type that extends Scala's Tree trait
- All Superinterfaces:
net.sourceforge.pmd.lang.ast.Node
- All Known Implementing Classes:
ASTCase
,ASTCtorPrimary
,ASTCtorSecondary
,ASTDeclDef
,ASTDeclType
,ASTDeclVal
,ASTDeclVar
,ASTDefnClass
,ASTDefnDef
,ASTDefnMacro
,ASTDefnObject
,ASTDefnTrait
,ASTDefnType
,ASTDefnVal
,ASTDefnVar
,ASTEnumeratorGenerator
,ASTEnumeratorGuard
,ASTEnumeratorVal
,ASTImport
,ASTImporteeName
,ASTImporteeRename
,ASTImporteeUnimport
,ASTImporteeWildcard
,ASTImporter
,ASTInit
,ASTLitBoolean
,ASTLitByte
,ASTLitChar
,ASTLitDouble
,ASTLitFloat
,ASTLitInt
,ASTLitLong
,ASTLitNull
,ASTLitShort
,ASTLitString
,ASTLitSymbol
,ASTLitUnit
,ASTModAbstract
,ASTModAnnot
,ASTModCase
,ASTModContravariant
,ASTModCovariant
,ASTModFinal
,ASTModImplicit
,ASTModInline
,ASTModLazy
,ASTModOverride
,ASTModPrivate
,ASTModProtected
,ASTModSealed
,ASTModValParam
,ASTModVarParam
,ASTNameAnonymous
,ASTNameIndeterminate
,ASTPatAlternative
,ASTPatBind
,ASTPatExtract
,ASTPatExtractInfix
,ASTPatInterpolate
,ASTPatSeqWildcard
,ASTPatTuple
,ASTPatTyped
,ASTPatVar
,ASTPatWildcard
,ASTPatXml
,ASTPkg
,ASTPkgObject
,ASTQuasi
,ASTSelf
,ASTSource
,ASTTemplate
,ASTTermAnnotate
,ASTTermApply
,ASTTermApplyInfix
,ASTTermApplyType
,ASTTermApplyUnary
,ASTTermAscribe
,ASTTermAssign
,ASTTermBlock
,ASTTermDo
,ASTTermEta
,ASTTermFor
,ASTTermForYield
,ASTTermFunction
,ASTTermIf
,ASTTermInterpolate
,ASTTermMatch
,ASTTermName
,ASTTermNew
,ASTTermNewAnonymous
,ASTTermParam
,ASTTermPartialFunction
,ASTTermPlaceholder
,ASTTermRepeated
,ASTTermReturn
,ASTTermSelect
,ASTTermSuper
,ASTTermThis
,ASTTermThrow
,ASTTermTry
,ASTTermTryWithHandler
,ASTTermTuple
,ASTTermWhile
,ASTTermXml
,ASTTypeAnd
,ASTTypeAnnotate
,ASTTypeApply
,ASTTypeApplyInfix
,ASTTypeBounds
,ASTTypeByName
,ASTTypeExistential
,ASTTypeFunction
,ASTTypeImplicitFunction
,ASTTypeLambda
,ASTTypeMethod
,ASTTypeName
,ASTTypeOr
,ASTTypeParam
,ASTTypePlaceholder
,ASTTypeProject
,ASTTypeRefine
,ASTTypeRepeated
,ASTTypeSelect
,ASTTypeSingleton
,ASTTypeTuple
,ASTTypeVar
,ASTTypeWith
public interface ScalaNode<T extends scala.meta.Tree> extends net.sourceforge.pmd.lang.ast.Node
A Base interface of a Scala Node. Defines several required methods of all nodes.
-
-
Method Summary
All Methods Instance Methods Abstract 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.ScalaNode<?>
jjtGetChild(int idx)
ScalaNode<?>
jjtGetParent()
-
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, getXPathNodeName, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtClose, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtOpen, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
-
-
-
-
Method Detail
-
accept
<D,R> R accept(ScalaParserVisitor<D,R> visitor, D data)
Accept a visitor and traverse this node.- 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
T getNode()
Get the underlying Scala Node.- Returns:
- the Scala Node for this node
-
jjtGetChild
ScalaNode<?> jjtGetChild(int idx)
- Specified by:
jjtGetChild
in interfacenet.sourceforge.pmd.lang.ast.Node
-
jjtGetParent
ScalaNode<?> jjtGetParent()
- Specified by:
jjtGetParent
in interfacenet.sourceforge.pmd.lang.ast.Node
-
-