Interface CtAbstractInvocation<T>

Type Parameters:
T - Return type of this invocation
All Superinterfaces:
Cloneable, CtElement, CtQueryable, CtVisitable, FactoryAccessor, Serializable, SourcePositionHolder
All Known Subinterfaces:
CtConstructorCall<T>, CtInvocation<T>, CtNewClass<T>
All Known Implementing Classes:
CtConstructorCallImpl, CtInvocationImpl, CtNewClassImpl

public interface CtAbstractInvocation<T> extends CtElement
This code element defines an abstract invocation on a CtExecutable.
  • Method Details

    • getArguments

      List<CtExpression<?>> getArguments()
      The arguments of the invocation.
      the expressions that define the values of the arguments
    • addArgument

      <C extends CtAbstractInvocation<T>> C addArgument(CtExpression<?> argument)
      Adds an argument expression to the invocation.
    • addArgumentAt

      <C extends CtAbstractInvocation<T>> C addArgumentAt(int position, CtExpression<?> argument)
      Adds an argument expression to the invocation at the specified position.
      position - position to add the argument at.
      argument - argument to add.
      the receiver.
    • removeArgument

      void removeArgument(CtExpression<?> argument)
      Removes an argument expression from the invocation.
    • setArguments

      <C extends CtAbstractInvocation<T>> C setArguments(List<CtExpression<?>> arguments)
      Sets the invocation's arguments.
    • getExecutable

      CtExecutableReference<T> getExecutable()
      Returns the invoked executable.
    • setExecutable

      <C extends CtAbstractInvocation<T>> C setExecutable(CtExecutableReference<T> executable)
      Sets the invoked executable.