object NodeBranchBuilder
Factory object for building AST branch structures from document positions.
Responsibility
This object provides factory methods for creating YPartBranch and ASTElementPartBranch instances from AST elements and positions. It handles:
- Building branch structures with ancestor stacks
- Finding nodes at specific positions with proper containment logic
- Handling both YAML (YPart) and generic AST (ASTNode) structures
- Calculating indentation from stack context
- Finding mutual parents for range selections
Flow Structure Handling
The strict parameter controls containment behavior for flow structures
(inline [] and {}). When strict is true, exact position matching is used.
Related Classes
- YPartBranch - The branch structure for YAML AST nodes
- ASTElementPartBranch - The branch structure for generic AST nodes
- org.mulesoft.als.common.YamlUtils - Simpler position-based navigation
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- NodeBranchBuilder
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def astFromBaseUnit(bu: BaseUnit): ASTElement
- def build(bu: BaseUnit, position: Position, strict: Boolean): ASTPartBranch
- def build(ast: YPart, position: Position, strict: Boolean): YPartBranch
- def buildAST(astElement: ASTNode, position: Position, strict: Boolean): ASTElementPartBranch
- def buildElement(ast: ASTElement, position: Position, strict: Boolean): ASTPartBranch
- def childWithPosition(ast: YPart, amfPosition: Position, strict: Boolean): Option[YPart]
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
- def containsFlow(s: YPart): Boolean
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def getAstForRange(ast: ASTElement, startPosition: Position, endPosition: Position, strict: Boolean): ElementWithIndentation
-
def
getChildren(node: Node, position: Position, stack: Seq[ASTNode], strict: Boolean): Seq[ASTNode]
- Annotations
- @tailrec()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def getStack(ast: ASTNode, position: Position, strict: Boolean): Seq[ASTNode]
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated