Class GrandParent
java.lang.Object
org.ek9lang.compiler.support.trees.GrandParent
- All Implemented Interfaces:
Function<org.antlr.v4.runtime.tree.ParseTree, org.antlr.v4.runtime.tree.ParseTree>, UnaryOperator<org.antlr.v4.runtime.tree.ParseTree>
public final class GrandParent
extends Object
implements UnaryOperator<org.antlr.v4.runtime.tree.ParseTree>
THE parent's parent of a parse-tree node, or null when either is missing. For a member (method, operator,
property, default operator) this is the construct that declares it: member -> aggregateParts ->
class/trait/record/... Never a hand-written
getParent().getParent() chain. Hold one and apply it.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.antlr.v4.runtime.ParserRuleContextapply(org.antlr.v4.runtime.ParserRuleContext node) Asapply(ParseTree), keeping the rule-context type for callers that read its tokens.org.antlr.v4.runtime.tree.ParseTreeapply(org.antlr.v4.runtime.tree.ParseTree node)
-
Constructor Details
-
GrandParent
public GrandParent()
-
-
Method Details
-
apply
-
apply
public org.antlr.v4.runtime.ParserRuleContext apply(org.antlr.v4.runtime.ParserRuleContext node) Asapply(ParseTree), keeping the rule-context type for callers that read its tokens.
-