Interface JCall

All Superinterfaces:
JExpr, JSimpleArgs
All Known Subinterfaces:
JAnonymousClassDef
All Known Implementing Classes:
AbstractJCall, AbstractMethodJCall, DirectJCall, ImplJAnonymousClassDef, InnerJAnonymousClassDef, InnerNewJCall, InstanceJCall, KeywordJCall, NewJCall, StaticJCall

public interface JCall extends JExpr, JSimpleArgs
A method or constructor call.
  • Method Details

    • diamond

      JCall diamond()
      Use the "diamond" <> syntax to specify inferred type arguments.
      Returns:
      this call
    • typeArg

      JCall typeArg(JType type)
      Add a type argument to this call.
      Parameters:
      type - the type to add
      Returns:
      this call
    • typeArg

      JCall typeArg(String type)
      Add a type argument to this call.
      Parameters:
      type - the type to add
      Returns:
      this call
    • typeArg

      JCall typeArg(Class<?> type)
      Add a type argument to this call.
      Parameters:
      type - the type to add
      Returns:
      this call
    • arg

      JCall arg(JExpr expr)
      Add an actual parameter argument to this call.
      Specified by:
      arg in interface JSimpleArgs
      Parameters:
      expr - the argument expression
      Returns:
      this call
    • typeArguments

      JType[] typeArguments()
      Get the type arguments defined thus far.
      Returns:
      the type arguments
    • arguments

      JExpr[] arguments()
      Description copied from interface: JSimpleArgs
      Get the arguments defined thus far.
      Specified by:
      arguments in interface JSimpleArgs
      Returns:
      the arguments