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 SummaryNested ClassesModifier and TypeClassDescriptionstatic enumstatic final classstatic enumprotected class
- 
Method SummaryModifier 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
- 
hashCodepublic int hashCode()
- 
appendHash
- 
appendHashprotected static int appendHash(int hash, boolean of) 
- 
copy
- 
copyTo
- 
getKind
- 
allChildren
- 
get
- 
get
- 
require
- 
require
- 
annotatepublic <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
- 
updateLocationspublic void updateLocations()
- 
markErroneouspublic void markErroneous()
- 
isErroneouspublic boolean isErroneous()
- 
containsErroneouspublic boolean containsErroneous()
- 
process
- 
visitThisprotected void visitThis(ch.tocco.nice2.conditionals.api.tree.CursorImpl cursor, NodeVisitor visitor) 
- 
dump- Throws:
- IOException
 
- 
dump- Throws:
- IOException
 
- 
setDeserializationTypeManagerThis 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
 
- 
readTypeprotected static Type<?> readType(ObjectInputStream input) throws ClassNotFoundException, IOException - Throws:
- ClassNotFoundException
- IOException
 
- 
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
 
-