Purpose: Model a method for code generation purposes.
| Modifier and Type | Field and Description |
|---|---|
| protected Vector | |
| protected Vector | |
| protected boolean | |
| protected boolean | |
| protected Vector | |
| protected String | |
| protected StringBuffer |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| 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 |
| private void | |
| private void | |
| private void | |
| private void | |
| protected void | |
| public Iterator | |
| public int | |
| protected abstract boolean | |
| public boolean | equals(Object
the reference object with which to compare. object)Overrides java. |
| protected boolean | |
| public String | |
| protected Vector | |
| protected abstract Vector | |
| protected abstract Vector | |
| protected Vector | |
| public Vector | |
| public String | |
| public int | |
| public boolean | |
| public boolean | |
| protected void | |
| protected void | |
| protected void | |
| public void | |
| public void | |
| public void | |
| protected abstract void | |
| public void | writeBody(CodeGenerator generator)
Implements abstract org. |
| protected void |
| argumentNames | back to summary |
|---|---|
| protected Vector<String> argumentNames | |
| exceptions | back to summary |
|---|---|
| protected Vector<String> exceptions | |
| isAbstract | back to summary |
|---|---|
| protected boolean isAbstract | |
| isConstructor | back to summary |
|---|---|
| protected boolean isConstructor | |
| lines | back to summary |
|---|---|
| protected Vector<String> lines | |
| returnType | back to summary |
|---|---|
| protected String returnType | |
| storedBuffer | back to summary |
|---|---|
| protected StringBuffer storedBuffer | |
| MethodDefinition | back to summary |
|---|---|
| protected MethodDefinition() | |
| addException | back to summary |
|---|---|
| public void addException(String exceptionTypeName) | |
| addLine | back to summary |
|---|---|
| public void addLine(String line) | |
| addToBuffer | back to summary |
|---|---|
| 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 | |
| adjustExceptions | back to summary |
|---|---|
| private void adjustExceptions(Map<String, Set<String>> typeNameMap) | |
| adjustLine | back to summary |
|---|---|
| private void adjustLine(String line, Map<String, Set<String>> typeNameMap) Parses the line, removing the package name for each type (and adding the appropriate import) if the type is unambiguous. | |
| adjustLines | back to summary |
|---|---|
| private void adjustLines(Map<String, Set<String>> typeNameMap) | |
| adjustReturnType | back to summary |
|---|---|
| private void adjustReturnType(Map<String, Set<String>> typeNameMap) | |
| adjustTypeNames | back to summary |
|---|---|
| protected void adjustTypeNames(Map<String, Set<String>> typeNameMap) | |
| argumentNames | back to summary |
|---|---|
| public Iterator | |
| argumentNamesSize | back to summary |
|---|---|
| public int argumentNamesSize() | |
| argumentsEqual | back to summary |
|---|---|
| protected abstract boolean argumentsEqual(MethodDefinition methodDefinition) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| exceptionsEqual | back to summary |
|---|---|
| protected boolean exceptionsEqual(MethodDefinition methodDefinition) | |
| getArgumentName | back to summary |
|---|---|
| public String getArgumentName(int index) | |
| getArgumentNames | back to summary |
|---|---|
| protected Vector | |
| getArgumentTypeNames | back to summary |
|---|---|
| protected abstract Vector | |
| getArgumentTypes | back to summary |
|---|---|
| protected abstract Vector | |
| getExceptions | back to summary |
|---|---|
| protected Vector | |
| getLines | back to summary |
|---|---|
| public Vector | |
| getReturnType | back to summary |
|---|---|
| public String getReturnType() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isAbstract | back to summary |
|---|---|
| public boolean isAbstract() | |
| isConstructor | back to summary |
|---|---|
| public boolean isConstructor() | |
| putTypeNamesInMap | back to summary |
|---|---|
| protected void putTypeNamesInMap(Map<String, Set<String>> typeNameMap) Used for calculating imports. @see org.eclipse.persistence.internal.codegen.ClassDefinition#calculateImports() | |
| replaceException | back to summary |
|---|---|
| protected void replaceException(String oldExceptionName, String newExceptionName) | |
| replaceLine | back to summary |
|---|---|
| protected void replaceLine(String oldLine, String newLine) | |
| setIsAbstract | back to summary |
|---|---|
| public void setIsAbstract(boolean isAbstract) | |
| setIsConstructor | back to summary |
|---|---|
| public void setIsConstructor(boolean isConstructor) | |
| setReturnType | back to summary |
|---|---|
| public void setReturnType(String returnType) | |
| writeArguments | back to summary |
|---|---|
| protected abstract void writeArguments(CodeGenerator generator) | |
| writeBody | back to summary |
|---|---|
| public void writeBody(CodeGenerator generator) Implements abstract org. Write the code out to the generator's stream.
| |
| writeThrowsClause | back to summary |
|---|---|
| protected void writeThrowsClause(CodeGenerator generator) | |