-
- Type Parameters:
N- the type of this nodeE- the type ofEdgethat this node can be connected toG- the type ofGraphthis node can be used with
- All Known Implementing Classes:
AccessGlobal,AccessInstanceGlobal,Addition,And,Assignment,BinaryExpression,Call,CallGraphNode,CallWithResult,CFGCall,Concat,Contains,Division,EndsWith,Equal,Equals,Expression,FalseLiteral,Float32Literal,Float64Literal,GreaterOrEqual,GreaterThan,HybridCall,IndexOf,Int16Literal,Int32Literal,Int64Literal,Int8Literal,Length,LessOrEqual,LessThan,Literal,Multiplication,NaryExpression,Negation,NoOp,Not,NotEqual,NullLiteral,OpenCall,Or,Remainder,Replace,Ret,Return,StartsWith,Statement,StringLiteral,Substring,Subtraction,TernaryExpression,Throw,TrueLiteral,UInt16Literal,UInt32Literal,UInt64Literal,UInt8Literal,UnaryExpression,UnaryStatement,UnresolvedCall,VariableRef
public interface Node<N extends Node<N,E,G>,E extends Edge<N,E,G>,G extends Graph<G,N,E>>A node of aGraph.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <V> booleanaccept(GraphVisitor<G,N,E,V> visitor, V tool)Accepts the givenGraphVisitor.intsetOffset(int offset)Sets the offset of this node to the given value, and then proceeds by setting the one of its nested nodes (if any) to subsequent values.
-
-
-
Method Detail
-
setOffset
int setOffset(int offset)
Sets the offset of this node to the given value, and then proceeds by setting the one of its nested nodes (if any) to subsequent values. The last offset used is returned.- Parameters:
offset- the offset to set- Returns:
- the last offset used while setting the offsets of nested nodes
-
accept
<V> boolean accept(GraphVisitor<G,N,E,V> visitor, V tool)
Accepts the givenGraphVisitor. Implementors of this method are responsible for invokingGraphVisitor.visit(Object, Graph, Node)on this node afteraccept(GraphVisitor, Object)has been invoked on all nested nodes, if any. The visiting should stop at the first of such calls that returnfalse.- Type Parameters:
V- the type of auxiliary tool thatvisitorcan use- Parameters:
visitor- the visitor that is visiting theGraphcontaining this nodetool- the auxiliary tool thatvisitorcan use- Returns:
- whether or not the visiting should stop when this call returns, as decided by the visitor itself
-
-