Class JInvocation

    • Method Detail

      • arg

        public JInvocation arg​(JExpression arg)
        Add an expression to this invocation's argument list
        Parameters:
        arg - Argument to add to argument list
      • arg

        public JInvocation arg​(java.lang.String v)
        Adds a literal argument. Short for arg(JExpr.lit(v))
      • listArgs

        public JExpression[] listArgs()
        Returns all arguments of the invocation.
        Returns:
        If there's no arguments, an empty array will be returned.