Interface Statement
-
- All Superinterfaces:
ASTNode
- All Known Implementing Classes:
BlockStmt,BreakStmt,ContinueStmt,DoWhileStmt,ExprStmt,ForEachStmt,ForStmt,IfStmt,IRRegionStmt,LabeledStmt,ReturnStmt,SwitchStmt,SynchronizedStmt,ThrowStmt,TryCatchStmt,VarDeclStmt,WhileStmt
public interface Statement extends ASTNode
Sealed interface representing all statement types in the source AST.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default StringgetLabel()Gets the label for this statement, if any.default voidsetLocation(SourceLocation location)Sets this statement's source location.-
Methods inherited from interface com.tonic.analysis.source.ast.ASTNode
accept, deepClone, findAll, findAll, findAncestor, findFirst, findFirst, getChildren, getLocation, getParent, getRoot, isDescendantOf, remove, replaceWith, setParent, stream, stream, walk
-
-
-
-
Method Detail
-
getLabel
default String getLabel()
Gets the label for this statement, if any.- Returns:
- the label, or null if not labeled
-
setLocation
default void setLocation(SourceLocation location)
Sets this statement's source location.- Parameters:
location- the provenance to stamp, or null forSourceLocation.UNKNOWN
-
-