Package org.eolang.opeo.ast
Class Labeled
java.lang.Object
org.eolang.opeo.ast.Labeled
Node with an attached label.
This class needed to avoid considering labels as separate nodes.
Maybe it's wrong to do so, but it's easier to implement this way, at least for now.
Pay attention, that
Labeled
class violates class hierarchy.
It is the most visible within InvokespecialHandler
implementation.- Since:
- 0.2
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eolang.opeo.ast.AstNode
AstNode.Empty
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Labeled
public Labeled(org.eolang.jeo.representation.xmir.XmlNode node, Function<org.eolang.jeo.representation.xmir.XmlNode, AstNode> search) Constructor.- Parameters:
node
- Original node to parse.search
- Search function to parse child nodes.
-
Labeled
Constructor.- Parameters:
node
- Original nodelabel
- Attached label
-
-
Method Details