Class AbstractJCall

java.lang.Object
org.jboss.jdeparser.AbstractJExpr
org.jboss.jdeparser.AbstractJCall
All Implemented Interfaces:
AllowedStatementExpression, JCall, JExpr, JSimpleArgs, Writable
Direct Known Subclasses:
AbstractMethodJCall, ImplJAnonymousClassDef, KeywordJCall, NewJCall

abstract class AbstractJCall extends AbstractJExpr implements JCall, AllowedStatementExpression
  • Field Details

  • Constructor Details

    • AbstractJCall

      AbstractJCall(int prec)
  • Method Details

    • diamond

      public JCall diamond()
      Description copied from interface: JCall
      Use the "diamond" <> syntax to specify inferred type arguments.
      Specified by:
      diamond in interface JCall
      Returns:
      this call
    • typeArg

      public JCall typeArg(JType type)
      Description copied from interface: JCall
      Add a type argument to this call.
      Specified by:
      typeArg in interface JCall
      Parameters:
      type - the type to add
      Returns:
      this call
    • typeArg

      public JCall typeArg(String type)
      Description copied from interface: JCall
      Add a type argument to this call.
      Specified by:
      typeArg in interface JCall
      Parameters:
      type - the type to add
      Returns:
      this call
    • typeArg

      public JCall typeArg(Class<?> type)
      Description copied from interface: JCall
      Add a type argument to this call.
      Specified by:
      typeArg in interface JCall
      Parameters:
      type - the type to add
      Returns:
      this call
    • arg

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

      public JType[] typeArguments()
      Description copied from interface: JCall
      Get the type arguments defined thus far.
      Specified by:
      typeArguments in interface JCall
      Returns:
      the type arguments
    • arguments

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

      public JComment lineComment()
    • blockComment

      public JComment blockComment()
    • writeTypeArgs

      void writeTypeArgs(SourceFileWriter writer) throws IOException
      Throws:
      IOException
    • write

      public void write(SourceFileWriter writer) throws IOException
      Specified by:
      write in interface Writable
      Throws:
      IOException