Class MethodDefinition

    • Field Detail

      • isAbstract

        protected boolean isAbstract
      • isConstructor

        protected boolean isConstructor
      • returnType

        protected String returnType
      • argumentNames

        protected Vector argumentNames
      • lines

        protected Vector lines
      • exceptions

        protected Vector exceptions
    • Constructor Detail

      • MethodDefinition

        public MethodDefinition()
    • Method Detail

      • addException

        public void addException​(String exceptionTypeName)
      • addLine

        public void addLine​(String line)
      • addToBuffer

        public void addToBuffer​(String partOfLine)
        This method can be used to store a string that will be prepended to the very next line of code entered
      • adjustTypeNames

        protected void adjustTypeNames​(Map typeNameMap)
      • argumentsEqual

        protected abstract boolean argumentsEqual​(MethodDefinition methodDefinition)
      • exceptionsEqual

        protected boolean exceptionsEqual​(MethodDefinition methodDefinition)
      • getArgumentNames

        protected Vector getArgumentNames()
      • getArgumentName

        public String getArgumentName​(int index)
      • argumentNames

        public Iterator argumentNames()
      • argumentNamesSize

        public int argumentNamesSize()
      • getArgumentTypeNames

        protected abstract Vector getArgumentTypeNames()
      • getArgumentTypes

        protected abstract Vector getArgumentTypes()
      • getLines

        public Vector getLines()
      • getExceptions

        protected Vector getExceptions()
      • getReturnType

        public String getReturnType()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • isAbstract

        public boolean isAbstract()
      • isConstructor

        public boolean isConstructor()
      • putTypeNamesInMap

        protected void putTypeNamesInMap​(Map typeNameMap)
        Used for calculating imports. @see org.eclipse.persistence.internal.codegen.ClassDefinition#calculateImports()
      • replaceException

        protected void replaceException​(String oldExceptionName,
                                        String newExceptionName)
      • replaceLine

        protected void replaceLine​(String oldLine,
                                   String newLine)
      • setIsAbstract

        public void setIsAbstract​(boolean isAbstract)
      • setIsConstructor

        public void setIsConstructor​(boolean isConstructor)
      • setReturnType

        public void setReturnType​(String returnType)
      • writeArguments

        protected abstract void writeArguments​(CodeGenerator generator)
      • writeThrowsClause

        protected void writeThrowsClause​(CodeGenerator generator)