Class Node
java.lang.Object
ch.tocco.nice2.conditionals.api.tree.Node
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ConditionNode
,FactorNode
,IntegrationNode
,LogicalNode
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static final class
static enum
protected class
-
Method Summary
Modifier and TypeMethodDescriptionstatic AndNode
and()
<T> T
<T> T
<T> T
<T> T
<T> T
annotate
(T value) protected static int
appendHash
(int hash, boolean of) protected static int
appendHash
(int hash, Object of) boolean
abstract Node
copy()
protected void
void
dump
(Appendable out) void
dump
(Appendable out, int depth) boolean
static EquationNode
equation()
static EquationNode
static EquationNode
equation
(FactorNode left, EquationNode.Operator op, FactorNode right) static FuncallNode
funcall()
static FuncallNode
funcall
(IdentifierNode identifier) static FuncallNode
funcall
(IdentifierNode identifier, Type<?> type) static FuncallNode
static FuncallNode
static FuncallNode
static FuncallNode
<T> T
<T> T
getKind()
int
hashCode()
static IdentifierNode
static IdentifierNode
identifier
(Enum keyword) static IdentifierNode
identifier
(String name) static IdentifierNode
identifier
(String name, boolean quoted) static boolean
static boolean
isEquation
(Node node) boolean
boolean
static boolean
static boolean
isIdentifier
(Node node) static boolean
static boolean
static boolean
static boolean
static IsTrueNode
isTrue()
static IsTrueNode
isTrue
(FactorNode factor) static LiteralNode
static LiteralNode
void
static NotNode
not()
static NotNode
static LiteralNode
nullLiteral
(Type<Void> type) static OrNode
or()
static ParameterNode
static ParameterNode
static ParameterNode
static PathNode
path()
static PathNode
path
(IdentifierNode firstElement) process
(NodeVisitor visitor) protected static Type
<?> readType
(ObjectInputStream input) <T> T
<T> T
static void
setDeserializationTypeManager
(TypeManager deserializationTypeManager) This is a thread local used during deserialization of nodes containing a type.void
setEndLocation
(Location endLocation) void
void
void
setStartLocation
(Location startLocation) toString()
protected void
toString
(Node.ToString toString) void
protected void
visitThis
(ch.tocco.nice2.conditionals.api.tree.CursorImpl cursor, NodeVisitor visitor) protected static void
writeType
(ObjectOutputStream output, Type<?> type)
-
Method Details
-
toString
-
toString
-
equals
-
hashCode
public int hashCode() -
appendHash
-
appendHash
protected static int appendHash(int hash, boolean of) -
copy
-
copyTo
-
getKind
-
allChildren
-
get
-
get
-
require
-
require
-
annotate
public <T> T annotate(T value) -
annotate
-
annotate
@Nullable public <T> T annotate(@Nullable @Nullable Class<T> type, @Nullable T value, boolean equalityRelevant) -
annotate
-
annotate
-
getAnnotations
-
setFlag
-
isFlagged
-
getSource
-
setSource
-
getStartLocation
-
setStartLocation
-
getEndLocation
-
setEndLocation
-
updateLocations
public void updateLocations() -
markErroneous
public void markErroneous() -
isErroneous
public boolean isErroneous() -
containsErroneous
public boolean containsErroneous() -
process
-
visitThis
protected void visitThis(ch.tocco.nice2.conditionals.api.tree.CursorImpl cursor, NodeVisitor visitor) -
dump
- Throws:
IOException
-
dump
- Throws:
IOException
-
setDeserializationTypeManager
This is a thread local used during deserialization of nodes containing a type.- Parameters:
deserializationTypeManager
- The type manager to use while deserializing nodes.
-
writeType
- Throws:
IOException
-
readType
protected static Type<?> readType(ObjectInputStream input) throws ClassNotFoundException, IOException - Throws:
ClassNotFoundException
IOException
-
and
-
or
-
not
-
not
-
identifier
-
identifier
-
identifier
-
identifier
-
path
-
path
-
parameter
-
parameter
-
parameter
-
funcall
-
funcall
-
funcall
-
funcall
-
funcall
-
funcall
-
funcall
-
literal
-
literal
-
nullLiteral
-
equation
-
equation
-
equation
-
isTrue
-
isTrue
-
isAnd
-
isOr
-
isNot
-
isIsTrue
-
isEquation
-
isLiteral
-
isIdentifier
-
isFuncall
-