Class AbstractJCall

    • Constructor Detail

      • AbstractJCall

        AbstractJCall​(int prec)
    • Method Detail

      • 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​(java.lang.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​(java.lang.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
      • lineComment

        public JComment lineComment()
      • blockComment

        public JComment blockComment()
      • writeTypeArgs

        void writeTypeArgs​(SourceFileWriter writer)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • write

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