public class Statement
extends ASTNode
Base class for any statement.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
addStatementAnnotation(AnnotationNode annotation)Attaches a statement-level annotation to this statement. |
|
public void |
addStatementLabel(String label) |
|
public void |
copyStatementLabels(Statement that) |
|
public List<AnnotationNode> |
getStatementAnnotations()Returns the list of statement-level annotations attached to this statement. |
|
public String |
getStatementLabel() |
|
public List<String> |
getStatementLabels() |
|
public boolean |
isEmpty() |
|
public void |
setStatementLabel(String label) |
| Methods inherited from class | Name |
|---|---|
class ASTNode |
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getText, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePosition, visit |
Attaches a statement-level annotation to this statement.
annotation - the annotation to attachReturns the list of statement-level annotations attached to this statement. These are Groovy-only source-retention annotations that do not appear at the JVM level; they are processed by registered ASTTransformations.
null