Package spoon.reflect.code
Interface CtLabelledFlowBreak
-
- All Superinterfaces:
Cloneable
,CtCFlowBreak
,CtCodeElement
,CtElement
,CtQueryable
,CtStatement
,CtVisitable
,FactoryAccessor
,Serializable
,SourcePositionHolder
- All Known Subinterfaces:
CtBreak
,CtContinue
- All Known Implementing Classes:
CtBreakImpl
,CtContinueImpl
public interface CtLabelledFlowBreak extends CtCFlowBreak
This abstract code element represents all the statements that break the control flow of the program and which can support a label.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CtStatement
getLabelledStatement()
String
getTargetLabel()
Gets the label from which the control flow breaks (null if no label defined).<T extends CtLabelledFlowBreak>
TsetTargetLabel(String targetLabel)
Sets the label from which the control flow breaks (null if no label defined).-
Methods inherited from interface spoon.reflect.code.CtCodeElement
partiallyEvaluate
-
Methods inherited from interface spoon.reflect.declaration.CtElement
addAnnotation, addComment, asIterable, delete, descendantIterator, getAllMetadata, getAnnotatedChildren, getAnnotation, getAnnotation, getAnnotations, getComments, getDirectChildren, getDocComment, getElements, getMetadata, getMetadataKeys, getOriginalSourceFragment, getParent, getParent, getParent, getPath, getPosition, getReferencedTypes, getRoleInParent, getShortRepresentation, getValueByRole, hasAnnotation, hasParent, isImplicit, isParentInitialized, prettyprint, putMetadata, removeAnnotation, removeComment, replace, replace, setAllMetadata, setAnnotations, setComments, setDocComment, setImplicit, setParent, setPosition, setPositions, setValueByRole, toString, toStringDebug, updateAllParentsBelow
-
Methods inherited from interface spoon.reflect.visitor.chain.CtQueryable
filterChildren, map, map
-
Methods inherited from interface spoon.reflect.code.CtStatement
clone, comment, getLabel, insertAfter, insertAfter, insertBefore, insertBefore, setLabel
-
Methods inherited from interface spoon.reflect.visitor.CtVisitable
accept
-
Methods inherited from interface spoon.processing.FactoryAccessor
getFactory, setFactory
-
-
-
-
Method Detail
-
getTargetLabel
String getTargetLabel()
Gets the label from which the control flow breaks (null if no label defined).
-
setTargetLabel
<T extends CtLabelledFlowBreak> T setTargetLabel(String targetLabel)
Sets the label from which the control flow breaks (null if no label defined).
-
getLabelledStatement
CtStatement getLabelledStatement()
-
-