Class MethodImpl

    • Method Detail

      • setReturnType

        public void setReturnType​(java.lang.String className)
        Description copied from interface: MMethod

        Sets the type of this method's return value. Null can be passed if a 'void' return type is desired.

        Specified by:
        setReturnType in interface MMethod
      • setUnqualifiedReturnType

        public void setUnqualifiedReturnType​(java.lang.String unqualifiedTypeName)
        Specified by:
        setUnqualifiedReturnType in interface MMethod
      • setReturnType

        public void setReturnType​(JClass c)
        Description copied from interface: MMethod

        Sets the type of this method's return value. Null may be passed if a 'void' return type is desired. This method is exactly equivalent to calling setReturnType(jclass.getQualifiedName()).

        Specified by:
        setReturnType in interface MMethod
      • getReturnType

        public JClass getReturnType()
        Description copied from interface: JMethod
        Returns a JClass object representing the type of this methods return value. Note that void methods will return a JClass representing void.

        Specified by:
        getReturnType in interface JMethod
      • isFinal

        public boolean isFinal()
        Description copied from interface: JMethod
        Return true if this method is declared final.
        Specified by:
        isFinal in interface JMethod
      • isStatic

        public boolean isStatic()
        Description copied from interface: JMethod
        Return true if this method is static.
        Specified by:
        isStatic in interface JMethod
      • isAbstract

        public boolean isAbstract()
        Description copied from interface: JMethod
        Return true if this member is final. Note that constructors are fields are never abstract.
        Specified by:
        isAbstract in interface JMethod
      • isNative

        public boolean isNative()
        Description copied from interface: JMethod
        Returns true if this method is declared native.
        Specified by:
        isNative in interface JMethod
      • isSynchronized

        public boolean isSynchronized()
        Description copied from interface: JMethod
        Returns true if this method is declared synchronized.
        Specified by:
        isSynchronized in interface JMethod
      • accept

        public void accept​(JVisitor visitor)
        Description copied from interface: JElement

        Accepts the given visitor.

        Specified by:
        accept in interface JElement
      • 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
        Specified by:
        getQualifiedName in interface JMethod
        Overrides:
        getQualifiedName in class InvokableImpl