public class FlowBlockNode extends FlowAstNode
Modifier and Type | Field and Description |
---|---|
private boolean |
block
Flag identifying this node as a block (required by the JS side, to identify it).
|
private java.lang.String |
blockLabel
The block's label as set in the legacy source code.
|
private java.lang.String |
buffers
Comma-separated values of buffer names defined in this block's header.
|
private java.lang.String |
frame
The frame name defined in this block's header.
|
private java.lang.String |
onEndkey
The block's ON ENDKEY phrase (if any).
|
private java.lang.String |
onError
The block's ON ERROR phrase (if any).
|
private java.lang.String |
onQuit
The block's ON QUIT phrase (if any).
|
private java.lang.String |
onStop
The block's ON STOP phrase (if any).
|
private java.lang.String |
toExpr
The TO expression defined in this block's header.
|
private boolean |
transaction
Flag marking this as a legacy full-transaction block.
|
private java.lang.String |
whileExpr
The WHILE expression defined in this block's header.
|
private boolean |
withHeader
Flag marking this block with a complex header.
|
ast
Constructor and Description |
---|
FlowBlockNode(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 |
---|---|
java.lang.String |
getBlockLabel()
Get the node's
label . |
java.lang.String |
getBuffers()
Get the block's list of
buffers . |
java.lang.String |
getFrame()
Get the block's
frame name. |
java.lang.String |
getOnEndkey()
Get the block's
ON ENDKEY phrase. |
java.lang.String |
getOnError()
Get the block's
ON ERROR phrase. |
java.lang.String |
getOnQuit()
Get the block's
ON QUIT phrase. |
java.lang.String |
getOnStop()
Get the block's
ON STOP phrase. |
java.lang.String |
getToExpr()
Get the block's
TO expression. |
java.lang.String |
getWhileExpr()
Get the block's
WHILE expression. |
boolean |
isBlock()
Get the node's
block flag. |
boolean |
isTransaction()
Get this block's
transaction flag. |
boolean |
isWithHeader()
Get the block's
withHeader state. |
void |
setBlock(boolean block)
Set the node's
block flag. |
void |
setBlockLabel(java.lang.String blockLabel)
Set the block's
label . |
void |
setBuffers(java.lang.String buffers)
Set the block's list of
buffers . |
void |
setFrame(java.lang.String frame)
Set the block's
frame name. |
void |
setOnEndkey(java.lang.String onEndkey)
Set the node's
ON ENDKEY phrase. |
void |
setOnError(java.lang.String onError)
Set the node's
ON ERROR phrase. |
void |
setOnQuit(java.lang.String onQuit)
Set the node's
ON QUIT phrase. |
void |
setOnStop(java.lang.String onStop)
Set the node's
ON STOP phrase. |
void |
setToExpr(java.lang.String toExpr)
Set the block's
TO expression. |
void |
setTransaction(boolean transaction)
Set this block's
transaction flag. |
void |
setWhileExpr(java.lang.String whileExpr)
Set the block's
WHILE expression. |
void |
setWithHeader(boolean withHeader)
Set the block's
withHeader state. |
getAstId, getBegin, getCallSite, getColumn, getEnd, getLine, setAstId, setBegin, setCallSite, setColumn, setEnd, setLine
private boolean block
private java.lang.String blockLabel
private java.lang.String onQuit
private java.lang.String onStop
private java.lang.String onError
private java.lang.String onEndkey
private boolean transaction
private java.lang.String buffers
private java.lang.String frame
private java.lang.String whileExpr
private java.lang.String toExpr
private boolean withHeader
public FlowBlockNode(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 boolean isBlock()
block
flag.public void setBlock(boolean block)
block
flag.block
- The new value.public java.lang.String getBlockLabel()
label
. May be null
.public void setBlockLabel(java.lang.String blockLabel)
label
.blockLabel
- The label value.public java.lang.String getOnQuit()
ON QUIT
phrase. May be null
.public void setOnQuit(java.lang.String onQuit)
ON QUIT
phrase.onQuit
- The new value.public java.lang.String getOnStop()
ON STOP
phrase. May be null
.public void setOnStop(java.lang.String onStop)
ON STOP
phrase.onStop
- The new value.public java.lang.String getOnError()
ON ERROR
phrase. May be null
.public void setOnError(java.lang.String onError)
ON ERROR
phrase.onError
- The new value.public java.lang.String getOnEndkey()
ON ENDKEY
phrase. May be null
.public void setOnEndkey(java.lang.String onEndkey)
ON ENDKEY
phrase.onEndkey
- The new value.public boolean isTransaction()
transaction
flag.public void setTransaction(boolean transaction)
transaction
flag.transaction
- The new value.public java.lang.String getBuffers()
buffers
. May be null
.public void setBuffers(java.lang.String buffers)
buffers
.buffers
- Comma-separated list of buffer names or null
.public java.lang.String getFrame()
frame
name. May be null
.public void setFrame(java.lang.String frame)
frame
name.frame
- The frame name or null
.public java.lang.String getWhileExpr()
WHILE
expression. May be null
.public void setWhileExpr(java.lang.String whileExpr)
WHILE
expression.whileExpr
- The WHILE expression. May be null
.public java.lang.String getToExpr()
TO
expression. May be null
.public void setToExpr(java.lang.String toExpr)
TO
expression.toExpr
- The TO expression. May be null
.public boolean isWithHeader()
withHeader
state.public void setWithHeader(boolean withHeader)
withHeader
state.withHeader
- The new flag state.