public class FlowAstNode extends FlowNode
Modifier and Type | Field and Description |
---|---|
(package private) Aast |
ast
The associated AST - used internally only.
|
private long |
astId
The associated AST's ID.
|
private java.lang.Integer |
begin
For branch or block ASTs, defines the index of the first element in this block.
|
private CallSite |
callSite
For call-sites nodes targeting a callgraph node (associated with an AST node), this will
encode the details about the call-site's target.
|
private int |
column
The column location of this code.
|
private java.lang.Integer |
end
For branch or block ASTs, defines the index of the last element in this block.
|
private int |
line
The line location of this code.
|
Constructor and Description |
---|
FlowAstNode(int id,
Aast ast,
java.lang.String type,
java.lang.String text,
int line,
int column)
Create an instance.
|
Modifier and Type | Method and Description |
---|---|
long |
getAstId()
Get the node's
astId . |
java.lang.Integer |
getBegin()
Get the node's
begin index. |
CallSite |
getCallSite()
Get the node's
callSite . |
int |
getColumn()
Get the node's
column . |
java.lang.Integer |
getEnd()
Get the node's
end index. |
int |
getLine()
Get the node's
line . |
void |
setAstId(long astId)
Set the node's
astId . |
void |
setBegin(java.lang.Integer begin)
Set the node's
begin index. |
void |
setCallSite(CallSite callSite)
Set the node's
callSite . |
void |
setColumn(int column)
Set the node's
column . |
void |
setEnd(java.lang.Integer end)
Set the node's
end index. |
void |
setLine(int line)
Set the node's
line . |
private long astId
private int line
private int column
private java.lang.Integer begin
begin
index.private java.lang.Integer end
end
index.private CallSite callSite
Aast ast
public FlowAstNode(int id, Aast ast, java.lang.String type, java.lang.String text, int line, int column)
id
- The node's ID.ast
- The associated AST.type
- The node's type.text
- The node's text.line
- The node's line.column
- The node's column.public long getAstId()
astId
.public void setAstId(long astId)
astId
.astId
- The AST ID.public int getLine()
line
.public void setLine(int line)
line
.line
- The line value.public int getColumn()
column
.public void setColumn(int column)
column
.column
- The column value.public void setCallSite(CallSite callSite)
callSite
. May be null
.callSite
- The node's callSite.public java.lang.Integer getBegin()
begin
index. May be null
.public void setBegin(java.lang.Integer begin)
begin
index. May be null
.begin
- The node's begin index.public java.lang.Integer getEnd()
end
index. May be null
.public void setEnd(java.lang.Integer end)
end
index. May be null
.end
- The node's end index.