Interface TryBlock
-
- All Superinterfaces:
BlockContainer
,Commentable
,EObject
,Notifier
,Statement
,StatementListContainer
- All Known Implementing Classes:
TryBlockImpl
public interface TryBlock extends Statement, StatementListContainer, BlockContainer
A representation of the model object 'Try Block'.The following features are supported:
- See Also:
StatementsPackage.getTryBlock()
- Generated class or method.
- EMF model class or method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EList<CatchBlock>
getCatchBlocks()
Returns the value of the 'Catch Blocks' containment reference list.EList<CatchBlock>
getCatcheBlocks()
Block
getFinallyBlock()
Returns the value of the 'Finally Block' containment reference.EList<Resource>
getResources()
Returns the value of the 'Resources' containment reference list.EList<Statement>
getStatements()
void
setFinallyBlock(Block value)
Sets the value of the 'Finally Block
' containment reference.-
Methods inherited from interface org.emftext.language.java.statements.BlockContainer
getBlock, setBlock
-
Methods inherited from interface org.emftext.language.java.commons.Commentable
addAfterContainingStatement, addBeforeContainingStatement, getAnnotationInterface, getChildrenByEType, getChildrenByType, getClassClass, getConcreteClassifier, getConcreteClassifiers, getContainingAnnotationInstance, getContainingAnonymousClass, getContainingCompilationUnit, getContainingConcreteClassifier, getContainingContainerName, getContainingPackageName, getFirstChildByEType, getFirstChildByType, getLayoutInformations, getLibClass, getLibInterface, getObjectClass, getParentByEType, getParentByType, getParentConcreteClassifier, getStringClass
-
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
-
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Methods inherited from interface org.emftext.language.java.statements.StatementListContainer
getLocalVariable
-
-
-
-
Method Detail
-
getResources
EList<Resource> getResources()
Returns the value of the 'Resources' containment reference list. The list contents are of typeResource
.- Returns:
- the value of the 'Resources' containment reference list.
- See Also:
StatementsPackage.getTryBlock_Resources()
- Generated class or method.
- EMF model class or method.
- containment="true" resolveProxies="true"
-
getCatchBlocks
EList<CatchBlock> getCatchBlocks()
Returns the value of the 'Catch Blocks' containment reference list. The list contents are of typeCatchBlock
.- Returns:
- the value of the 'Catch Blocks' containment reference list.
- See Also:
StatementsPackage.getTryBlock_CatchBlocks()
- Generated class or method.
- EMF model class or method.
- containment="true" resolveProxies="true"
-
getFinallyBlock
Block getFinallyBlock()
Returns the value of the 'Finally Block' containment reference.- Returns:
- the value of the 'Finally Block' containment reference.
- See Also:
setFinallyBlock(Block)
,StatementsPackage.getTryBlock_FinallyBlock()
- Generated class or method.
- EMF model class or method.
- containment="true" resolveProxies="true"
-
setFinallyBlock
void setFinallyBlock(Block value)
Sets the value of the 'Finally Block
' containment reference.- Parameters:
value
- the new value of the 'Finally Block' containment reference.- See Also:
getFinallyBlock()
- Generated class or method.
-
getCatcheBlocks
EList<CatchBlock> getCatcheBlocks()
- Generated class or method.
- EMF model class or method.
- kind="operation" required="true" many="false"
-
getStatements
EList<Statement> getStatements()
- Specified by:
getStatements
in interfaceStatementListContainer
- Generated class or method.
- EMF model class or method.
- kind="operation" required="true" many="false"
-
-