Class MethodDefinition

    • Field Detail

      • isAbstract

        protected boolean isAbstract
      • isConstructor

        protected boolean isConstructor
      • returnType

        protected String returnType
    • Constructor Detail

      • MethodDefinition

        protected 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<String,​Set<String>> typeNameMap)
      • argumentsEqual

        protected abstract boolean argumentsEqual​(MethodDefinition methodDefinition)
      • exceptionsEqual

        protected boolean exceptionsEqual​(MethodDefinition methodDefinition)
      • getArgumentNames

        protected Vector<String> getArgumentNames()
      • getArgumentName

        public String getArgumentName​(int index)
      • argumentNamesSize

        public int argumentNamesSize()
      • getArgumentTypeNames

        protected abstract Vector<String> getArgumentTypeNames()
      • getArgumentTypes

        protected abstract Vector<String> getArgumentTypes()
      • 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<String,​Set<String>> 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)