Class InvokableImpl

    • Method Detail

      • addException

        public void addException​(JClass exceptionClass)
        Description copied from interface: MInvokable

        Adds a declaration of a checked exception of the given type.

        Specified by:
        addException in interface MInvokable
      • addException

        public void addException​(java.lang.String qcname)
        Description copied from interface: MInvokable

        Adds a declaration of a checked exception of the given type.

        Specified by:
        addException in interface MInvokable
      • addUnqualifiedException

        public void addUnqualifiedException​(java.lang.String ucname)
      • removeException

        public void removeException​(java.lang.String exceptionClassName)
        Description copied from interface: MInvokable
        Removes a declaration of a checked exception of the named class. Does nothing if no such declaration exists.
        Specified by:
        removeException in interface MInvokable
      • removeException

        public void removeException​(JClass exceptionClass)
        Description copied from interface: MInvokable
        Removes a declaration of a checked exception of the given class. Does nothing if no such declaration exists.
        Specified by:
        removeException in interface MInvokable
      • addNewParameter

        public MParameter addNewParameter()
        Description copied from interface: MInvokable
        Creates a new parameter on this method of type java.lang.Object and with a default name.
        Specified by:
        addNewParameter in interface MInvokable
      • removeParameter

        public void removeParameter​(MParameter parameter)
        Description copied from interface: MInvokable
        Removes the given parameter. Does nothing if the parameter is not present on this method.
        Specified by:
        removeParameter in interface MInvokable
      • getMutableParameters

        public MParameter[] getMutableParameters()
        Description copied from interface: MInvokable
        Returns all of the parameters on this method, or an empty array if there are none. This is simply a more strongly-typed version of getParameters().
        Specified by:
        getMutableParameters in interface MInvokable
      • getParameters

        public JParameter[] getParameters()
        Description copied from interface: JInvokable

        Returns representations of the parameters taken by this method. Returns an array of length 0 if the method takes no parameters.

        Specified by:
        getParameters in interface JInvokable
      • getExceptionTypes

        public JClass[] getExceptionTypes()
        Description copied from interface: JInvokable

        Returns representations of the type of each of the exceptions which can be thrown by this method. Returns an array of length 0 if the method throws no exceptions.

        Specified by:
        getExceptionTypes in interface JInvokable
      • getQualifiedName

        public java.lang.String getQualifiedName()
        Description copied from interface: JElement

        Returns a qualified name for this abstraction. The exact format of this name depends on the particular abstraction. Please refer to the documentation for each JElement subclass for a detailed description of the qualified name formats.

        Specified by:
        getQualifiedName in interface JElement
      • setUnqualifiedThrows

        public void setUnqualifiedThrows​(java.util.List classnames)