Class JMethodDecl

    • Constructor Detail

      • JMethodDecl

        public JMethodDecl()
    • Method Detail

      • getType

        public JType getType()
        Returns the field type.
      • setType

        public void setType​(JType aType)
        Sets the field type.
      • setTypeParameters

        public void setTypeParameters​(java.util.List<JTypeParam> theTPs)
        Sets the method JTypeParameters.
      • getParameters

        public java.util.List<JVariableDecl> getParameters()
        Returns the list of formal parameters.
      • getParametersTypes

        public java.lang.Class[] getParametersTypes()
        Returns the list of formal parameters.
      • getThrowsList

        public java.util.List<JExpr> getThrowsList()
        Returns the throws list.
      • setThrowsList

        public void setThrowsList​(java.util.List<JExpr> theThrows)
        Sets the throws list.
      • isBlock

        public boolean isBlock()
        Returns whether statement has a block associated with it.
        Overrides:
        isBlock in class JNode
      • setBlock

        public void setBlock​(JStmtBlock aBlock)
        Sets the block.
      • getClassDecls

        public JClassDecl[] getClassDecls()
        Returns the class declarations.
      • getClassDeclsImpl

        protected JClassDecl[] getClassDeclsImpl()
        Returns the class declarations.
      • getSuperMemberImpl

        protected java.lang.reflect.Member getSuperMemberImpl()
        Returns the member that this member overrides or implements, if available.
        Overrides:
        getSuperMemberImpl in class JMemberDecl
      • getNodeString

        public java.lang.String getNodeString()
        Returns the part name.
        Overrides:
        getNodeString in class JNode