Interface CodeNode<G extends CodeGraph<G,N,E>,N extends CodeNode<G,N,E>,E extends CodeEdge<G,N,E>>
-
- Type Parameters:
G
- the type of theCodeGraph
s this list can be used inN
- the type of theCodeNode
s in this listE
- the type of theCodeEdge
s in this list
- All Superinterfaces:
java.lang.Comparable<N>
,Node<G,N,E>
- All Known Implementing Classes:
AccessGlobal
,AccessInstanceGlobal
,Addition
,And
,Assignment
,BinaryExpression
,Call
,CallWithResult
,CFGCall
,Concat
,Contains
,Division
,EndsWith
,Equal
,Equals
,Expression
,FalseLiteral
,Float32Literal
,Float64Literal
,GreaterOrEqual
,GreaterThan
,IndexOf
,Int16Literal
,Int32Literal
,Int64Literal
,Int8Literal
,Length
,LessOrEqual
,LessThan
,Literal
,MultiCall
,Multiplication
,NamedParameterExpression
,NaryExpression
,NativeCall
,Negation
,NoOp
,Not
,NotEqual
,NullLiteral
,OpenCall
,Or
,Remainder
,Replace
,Ret
,Return
,StartsWith
,Statement
,StringLiteral
,Substring
,Subtraction
,TernaryExpression
,Throw
,TrueLiteral
,TruncatedParamsCall
,UInt16Literal
,UInt32Literal
,UInt64Literal
,UInt8Literal
,UnaryExpression
,UnaryStatement
,UnresolvedCall
,VariableRef
public interface CodeNode<G extends CodeGraph<G,N,E>,N extends CodeNode<G,N,E>,E extends CodeEdge<G,N,E>> extends Node<G,N,E>, java.lang.Comparable<N>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getOffset()
Yields the offset of this node relative to its containing graph.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.
-
-
-
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
-
getOffset
int getOffset()
Yields the offset of this node relative to its containing graph.- Returns:
- the offset
-
-