T
- type of the variablepublic interface CtCatchVariable<T> extends CtVariable<T>, CtMultiTypedElement, CtCodeElement
Modifier and Type | Method and Description |
---|---|
CtCatchVariable<T> |
clone()
Clone the element which calls this method in a new object.
|
CtCatchVariableReference<T> |
getReference()
Returns the corresponding reference.
|
CtTypeReference<T> |
getType()
Returns type reference of the exception variable in a catch.
|
<C extends CtVariable<T>> |
setDefaultExpression(CtExpression<T> assignedExpression)
Sets the initialization expression assigned to the variable, when
declared.
|
<C extends CtTypedElement> |
setType(CtTypeReference<T> type)
Sets this element's type.
|
getDefaultExpression
getSimpleName, setSimpleName
addModifier, getExtendedModifiers, getModifiers, getVisibility, hasModifier, isAbstract, isFinal, isPrivate, isProtected, isPublic, isStatic, removeModifier, setExtendedModifiers, setModifiers, setVisibility
addAnnotation, addComment, asIterable, delete, descendantIterator, getAllMetadata, getAnnotatedChildren, getAnnotation, getAnnotation, getAnnotations, getComments, getDirectChildren, getDocComment, getElements, getMetadata, getMetadataKeys, getParent, getParent, getParent, getPath, getPosition, getReferencedTypes, getRoleInParent, getShortRepresentation, getValueByRole, hasAnnotation, hasParent, isImplicit, isParentInitialized, putMetadata, removeAnnotation, removeComment, replace, replace, setAllMetadata, setAnnotations, setComments, setDocComment, setImplicit, setParent, setPosition, setPositions, setValueByRole, updateAllParentsBelow
getFactory, setFactory
accept
filterChildren, map, map
getOriginalSourceFragment
addMultiType, getMultiTypes, removeMultiType, setMultiTypes
partiallyEvaluate
CtCatchVariableReference<T> getReference()
CtNamedElement
getReference
in interface CtNamedElement
getReference
in interface CtVariable<T>
CtCatchVariable<T> clone()
CtElement
Refactoring.copyType(CtType)
and Refactoring.copyMethod(CtMethod)
instead which does additional work beyond cloning.clone
in interface CtCodeElement
clone
in interface CtElement
clone
in interface CtNamedElement
<C extends CtVariable<T>> C setDefaultExpression(CtExpression<T> assignedExpression)
CtVariable
setDefaultExpression
in interface CtVariable<T>
CtTypeReference<T> getType()
getType
in interface CtTypedElement<T>
<C extends CtTypedElement> C setType(CtTypeReference<T> type)
CtTypedElement
setType
in interface CtTypedElement<T>
Copyright © 2007–2019 Inria. All rights reserved.