public interface CtCatch extends CtCodeElement, CtBodyHolder
catch
of a try
.CtTry
Modifier and Type | Method and Description |
---|---|
CtCatch |
clone()
Clone the element which calls this method in a new object.
|
CtBlock<?> |
getBody()
Gets the catch's body.
|
CtCatchVariable<? extends java.lang.Throwable> |
getParameter()
Gets the catch's parameter (a throwable).
|
<T extends CtCatch> |
setParameter(CtCatchVariable<? extends java.lang.Throwable> parameter)
Sets the catch's parameter (a throwable).
|
partiallyEvaluate
setBody
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
getFactory, setFactory
accept
filterChildren, map, map
CtCatchVariable<? extends java.lang.Throwable> getParameter()
<T extends CtCatch> T setParameter(CtCatchVariable<? extends java.lang.Throwable> parameter)
CtBlock<?> getBody()
getBody
in interface CtBodyHolder
CtCatch clone()
CtElement
Refactoring.copyType(CtType)
and Refactoring.copyMethod(CtMethod)
instead which does additional work beyond cloning.clone
in interface CtCodeElement
clone
in interface CtElement
Copyright © 2007–2021 Inria. All rights reserved.