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
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final classstatic enumprotected class -
Method Summary
Modifier and TypeMethodDescriptionstatic AndNodeand()static AndNodestatic AndNode<T> T<T> T<T> T<T> T<T> Tannotate(T value) protected static intappendHash(int hash, boolean of) protected static intappendHash(int hash, Object of) booleanabstract Nodecopy()protected voidvoiddump(Appendable out) voiddump(Appendable out, int depth) booleanstatic EquationNodeequation()static EquationNodestatic EquationNodeequation(FactorNode left, EquationNode.Operator op, FactorNode right) static FuncallNodefuncall()static FuncallNodefuncall(IdentifierNode identifier) static FuncallNodefuncall(IdentifierNode identifier, Type<?> type) static FuncallNodestatic FuncallNodestatic FuncallNodestatic FuncallNode<T> T<T> TgetKind()inthashCode()static IdentifierNodestatic IdentifierNodeidentifier(Enum keyword) static IdentifierNodeidentifier(String name) static IdentifierNodeidentifier(String name, boolean quoted) static booleanstatic booleanisEquation(Node node) booleanbooleanstatic booleanstatic booleanisIdentifier(Node node) static booleanstatic booleanstatic booleanstatic booleanstatic IsTrueNodeisTrue()static IsTrueNodeisTrue(FactorNode factor) static LiteralNodestatic LiteralNodevoidstatic NotNodenot()static NotNodestatic LiteralNodenullLiteral(Type<Void> type) static OrNodeor()static ParameterNodestatic ParameterNodestatic ParameterNodestatic PathNodepath()static PathNodepath(IdentifierNode firstElement) process(NodeVisitor visitor) protected static Type<?> readType(ObjectInputStream input) <T> T<T> Tstatic voidsetDeserializationTypeManager(TypeManager deserializationTypeManager) This is a thread local used during deserialization of nodes containing a type.voidsetEndLocation(Location endLocation) voidvoidvoidsetStartLocation(Location startLocation) toString()protected voidtoString(Node.ToString toString) voidprotected voidvisitThis(ch.tocco.nice2.conditionals.api.tree.CursorImpl cursor, NodeVisitor visitor) protected static voidwriteType(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:
ClassNotFoundExceptionIOException
-
and
-
and
-
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
-