Interface ScalaNode<T extends scala.meta.Tree>
-
- Type Parameters:
T
- The Scala node type that extends Scala's Tree trait
- All Superinterfaces:
GenericNode<ScalaNode<?>>
,Node
,Reportable
- 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 GenericNode<ScalaNode<?>>
A Base interface of a Scala Node. Defines several required methods of all nodes.
-
-
Field Summary
-
Fields inherited from interface net.sourceforge.pmd.lang.ast.Node
COORDS_COMPARATOR
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default <D,R>
Raccept(ScalaParserVisitor<D,R> visitor, D data)
Deprecated.T
getNode()
Deprecated.The underlying scala node should not be used directly.boolean
isImplicit()
Returns true if the node is implicit.-
Methods inherited from interface net.sourceforge.pmd.lang.ast.impl.GenericNode
ancestors, ancestorsOrSelf, asStream, children, descendants, descendantsOrSelf, getChild, getFirstChild, getLastChild, getNextSibling, getNthParent, getParent, getPreviousSibling
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.Node
acceptVisitor, ancestors, children, compareLocation, descendants, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, firstChild, getAstInfo, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfType, getImage, getIndexInParent, getLanguageVersion, getNumChildren, getParentsOfType, getReportLocation, getRoot, getTextDocument, getTextRegion, getUserMap, getXPathAttributesIterator, getXPathNodeName, hasDescendantOfType, hasImageEqualTo, isFindBoundary
-
-
-
-
Method Detail
-
accept
@Deprecated default <D,R> R accept(ScalaParserVisitor<D,R> visitor, D data)
Deprecated.Accept a visitor and traverse this node.
-
getNode
@Deprecated T getNode()
Deprecated.The underlying scala node should not be used directly.Get the underlying Scala Node.- Returns:
- the Scala Node for this node
-
isImplicit
boolean isImplicit()
Returns true if the node is implicit. If this node has no non-implicit descendant, then its text bounds identify an empty region of the source document. In that case, the end column is smaller than the begin column. That's because the end column index is inclusive.
-
-