public class CtInvocationImpl<T> extends CtTargetedExpressionImpl<T,CtExpression<?>> implements CtInvocation<T>
ERROR_MESSAGE_TO_STRING, factory, LOGGER, parent
Constructor and Description |
---|
CtInvocationImpl() |
Modifier and Type | Method and Description |
---|---|
void |
accept(CtVisitor visitor)
Accepts a visitor
|
<T extends CtActualTypeContainer> |
addActualTypeArgument(CtTypeReference<?> actualTypeArgument)
Delegate to the executable reference of the invocation.
|
<C extends CtAbstractInvocation<T>> |
addArgument(CtExpression<?> argument)
Adds an argument expression to the invocation.
|
CtInvocation<T> |
clone()
Clone the element which calls this method in a new object.
|
java.util.List<CtTypeReference<?>> |
getActualTypeArguments()
Delegate to the executable reference of the invocation.
|
java.util.List<CtExpression<?>> |
getArguments()
The arguments of the invocation.
|
CtExecutableReference<T> |
getExecutable()
Returns the invoked executable.
|
java.lang.String |
getLabel()
Gets the label of this statement if defined.
|
CtTypeReference<T> |
getType()
Gets this element's type.
|
<C extends CtStatement> |
insertAfter(CtStatement statement)
Inserts a statement after the current statement.
|
<C extends CtStatement> |
insertAfter(CtStatementList statements)
Inserts a statement list before the current statement.
|
<C extends CtStatement> |
insertBefore(CtStatement statement)
Inserts a statement given as parameter before the current statement
(this).
|
<C extends CtStatement> |
insertBefore(CtStatementList statements)
Inserts a statement list before the current statement.
|
boolean |
removeActualTypeArgument(CtTypeReference<?> actualTypeArgument)
Removes a type argument.
|
void |
removeArgument(CtExpression<?> argument)
Removes an argument expression from the invocation.
|
<T extends CtActualTypeContainer> |
setActualTypeArguments(java.util.List<? extends CtTypeReference<?>> actualTypeArguments)
Delegate to the executable reference of the invocation.
|
<C extends CtAbstractInvocation<T>> |
setArguments(java.util.List<CtExpression<?>> arguments)
Sets the invocation's arguments.
|
<C extends CtAbstractInvocation<T>> |
setExecutable(CtExecutableReference<T> executable)
Sets the invoked executable.
|
<C extends CtStatement> |
setLabel(java.lang.String label)
Sets the label of this statement.
|
<C extends CtTypedElement> |
setType(CtTypeReference<T> type)
Sets this element's type.
|
getTarget, setTarget
addTypeCast, getTypeCasts, S, setTypeCasts
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
getTarget, setTarget
addTypeCast, getTypeCasts, setTypeCasts
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
S
public void accept(CtVisitor visitor)
CtVisitable
accept
in interface CtVisitable
public java.util.List<CtExpression<?>> getArguments()
CtAbstractInvocation
getArguments
in interface CtAbstractInvocation<T>
public <C extends CtAbstractInvocation<T>> C addArgument(CtExpression<?> argument)
CtAbstractInvocation
addArgument
in interface CtAbstractInvocation<T>
public void removeArgument(CtExpression<?> argument)
CtAbstractInvocation
removeArgument
in interface CtAbstractInvocation<T>
public CtExecutableReference<T> getExecutable()
CtAbstractInvocation
getExecutable
in interface CtAbstractInvocation<T>
public <C extends CtStatement> C insertAfter(CtStatement statement)
CtStatement
insertAfter
in interface CtStatement
public <C extends CtStatement> C insertBefore(CtStatement statement)
CtStatement
insertBefore
in interface CtStatement
public <C extends CtStatement> C insertAfter(CtStatementList statements)
CtStatement
insertAfter
in interface CtStatement
public <C extends CtStatement> C insertBefore(CtStatementList statements)
CtStatement
insertBefore
in interface CtStatement
public <C extends CtAbstractInvocation<T>> C setArguments(java.util.List<CtExpression<?>> arguments)
CtAbstractInvocation
setArguments
in interface CtAbstractInvocation<T>
public <C extends CtAbstractInvocation<T>> C setExecutable(CtExecutableReference<T> executable)
CtAbstractInvocation
setExecutable
in interface CtAbstractInvocation<T>
public java.lang.String getLabel()
CtStatement
getLabel
in interface CtStatement
public <C extends CtStatement> C setLabel(java.lang.String label)
CtStatement
setLabel
in interface CtStatement
public CtTypeReference<T> getType()
CtTypedElement
getType
in interface CtInvocation<T>
getType
in interface CtTypedElement<T>
getType
in class CtExpressionImpl<T>
public <C extends CtTypedElement> C setType(CtTypeReference<T> type)
CtTypedElement
setType
in interface CtTypedElement<T>
setType
in class CtExpressionImpl<T>
public java.util.List<CtTypeReference<?>> getActualTypeArguments()
CtInvocation
getActualTypeArguments
in interface CtInvocation<T>
getActualTypeArguments
in interface CtActualTypeContainer
CtActualTypeContainer.getActualTypeArguments()
public <T extends CtActualTypeContainer> T setActualTypeArguments(java.util.List<? extends CtTypeReference<?>> actualTypeArguments)
CtInvocation
setActualTypeArguments
in interface CtInvocation<T>
setActualTypeArguments
in interface CtActualTypeContainer
CtActualTypeContainer.getActualTypeArguments()
public <T extends CtActualTypeContainer> T addActualTypeArgument(CtTypeReference<?> actualTypeArgument)
CtInvocation
addActualTypeArgument
in interface CtInvocation<T>
addActualTypeArgument
in interface CtActualTypeContainer
CtActualTypeContainer.getActualTypeArguments()
public boolean removeActualTypeArgument(CtTypeReference<?> actualTypeArgument)
CtActualTypeContainer
removeActualTypeArgument
in interface CtActualTypeContainer
public CtInvocation<T> clone()
CtElement
Refactoring.copyType(CtType)
and Refactoring.copyMethod(CtMethod)
instead which does additional work beyond cloning.clone
in interface CtCodeElement
clone
in interface CtExpression<T>
clone
in interface CtInvocation<T>
clone
in interface CtStatement
clone
in interface CtTargetedExpression<T,CtExpression<?>>
clone
in interface CtElement
clone
in class CtTargetedExpressionImpl<T,CtExpression<?>>
Copyright © 2007–2021 Inria. All rights reserved.