final class AstNodeMethods extends AnyVal with NodeExtension
- Alphabetic
- By Inheritance
- AstNodeMethods
- NodeExtension
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new AstNodeMethods(node: AstNode)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def ast: Traversal[AstNode]
Nodes of the AST rooted in this node, including the node itself.
- def astParent: AstNode
- def depth(p: (AstNode) => Boolean): Int
The depth of the AST rooted in this node.
The depth of the AST rooted in this node. Upon walking the tree to its leaves, the depth is only increased for nodes where
p(node)
is true. - def depth: Int
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- def isBlock: Boolean
- def isCall: Boolean
- def isControlStructure: Boolean
Indicate whether the AST node represents a control structure, e.g.,
if
,for
,while
. - def isExpression: Boolean
- def isFieldIdentifier: Boolean
- def isFile: Boolean
- def isIdentifier: Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isLiteral: Boolean
- def isLocal: Boolean
- def isMember: Boolean
- def isMethod: Boolean
- def isMethodRef: Boolean
- def isModifier: Boolean
- def isNamespaceBlock: Boolean
- def isParameter: Boolean
- def isReturn: Boolean
- def isTypeDecl: Boolean
- val node: AstNode
- def toString(): String
- Definition Classes
- Any