public class CtThrowImpl extends CtStatementImpl implements CtThrow
ERROR_MESSAGE_TO_STRING, factory, LOGGER, parent
Constructor and Description |
---|
CtThrowImpl() |
Modifier and Type | Method and Description |
---|---|
void |
accept(CtVisitor visitor)
Accepts a visitor
|
CtThrow |
clone()
Clone the element which calls this method in a new object.
|
CtCodeElement |
getSubstitution(CtType<?> targetType) |
CtExpression<? extends java.lang.Throwable> |
getThrownExpression()
Returns the thrown expression (must be a throwable).
|
java.lang.Void |
S()
Gets the type of the template parameter.
|
<T extends CtThrow> |
setThrownExpression(CtExpression<? extends java.lang.Throwable> expression)
Sets the thrown expression (must be a throwable).
|
getLabel, insertAfter, insertAfter, insertAfter, insertAfter, insertBefore, insertBefore, insertBefore, insertBefore, setLabel
partiallyEvaluate
addAnnotation, addComment, asIterable, comment, delete, descendantIterator, emptyList, emptySet, equals, filterChildren, getAllMetadata, getAnnotatedChildren, getAnnotation, getAnnotation, getAnnotations, getComments, getDirectChildren, getDocComment, getElements, getFactory, getMetadata, getMetadataKeys, getOriginalSourceFragment, getParent, getParent, getParent, getPath, getPosition, getReferencedTypes, getRoleInParent, getShortRepresentation, getValueByRole, hasAnnotation, hashCode, hasParent, isImplicit, isParentInitialized, map, map, prettyprint, putMetadata, removeAnnotation, removeComment, replace, replace, setAllMetadata, setAnnotations, setComments, setDocComment, setFactory, setImplicit, setParent, setPosition, setPositions, setValueByRole, toString, toStringDebug, unmodifiableList, updateAllParentsBelow
finalize, getClass, notify, notifyAll, wait, wait, wait
comment, getLabel, insertAfter, insertAfter, insertBefore, insertBefore, setLabel
partiallyEvaluate
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
filterChildren, map, map
public void accept(CtVisitor visitor)
CtVisitable
accept
in interface CtVisitable
public CtExpression<? extends java.lang.Throwable> getThrownExpression()
CtThrow
getThrownExpression
in interface CtThrow
public <T extends CtThrow> T setThrownExpression(CtExpression<? extends java.lang.Throwable> expression)
CtThrow
setThrownExpression
in interface CtThrow
public CtThrow clone()
CtElement
Refactoring.copyType(CtType)
and Refactoring.copyMethod(CtMethod)
instead which does additional work beyond cloning.clone
in interface CtCodeElement
clone
in interface CtStatement
clone
in interface CtThrow
clone
in interface CtElement
clone
in class CtStatementImpl
public java.lang.Void S()
TemplateParameter
null
reference) but is used as a
marker in a template code.S
in interface TemplateParameter<java.lang.Void>
public CtCodeElement getSubstitution(CtType<?> targetType)
Copyright © 2007–2021 Inria. All rights reserved.