Package io.dialob.rule.parser.node
Class NodeBase
- java.lang.Object
-
- io.dialob.rule.parser.node.NodeBase
-
- All Implemented Interfaces:
TypedNode,Serializable
- Direct Known Subclasses:
CallExprNode,ConstExprNode,IdExprNode
public abstract class NodeBase extends Object implements TypedNode, Serializable
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract NodeBaseaccept(@NotNull ASTVisitor visitor)NodeBaseaddSubnode(@NotNull NodeBase topNode)booleanequals(Object obj)Map<String,ValueType>getAllDependencies()@NotNull Map<String,ValueType>getDependencies()abstract @NotNull NodeOperatorgetNodeOperator()NodeBasegetParent()SpangetSpan()@NotNull List<NodeBase>getSubnodes()ValueTypegetValueType()inthashCode()booleanisConstant()booleanisIdentifier()voidsetParent(NodeBase parent)voidsetValueType(@NotNull ValueType type)StringtoString(String indent)StringtoTypedString()
-
-
-
Method Detail
-
getParent
public NodeBase getParent()
-
setParent
public void setParent(NodeBase parent)
-
getSpan
public Span getSpan()
-
getValueType
public ValueType getValueType()
- Specified by:
getValueTypein interfaceTypedNode
-
setValueType
public void setValueType(@NotNull @NotNull ValueType type)
-
isConstant
public boolean isConstant()
-
isIdentifier
public boolean isIdentifier()
-
getNodeOperator
@NotNull public abstract @NotNull NodeOperator getNodeOperator()
-
accept
public abstract NodeBase accept(@NotNull @NotNull ASTVisitor visitor)
-
toTypedString
public String toTypedString()
-
-