public class SourceCode.Method extends SourceCode.Element<SourceCode.Method>
| Modifier and Type | Field and Description |
|---|---|
(package private) java.lang.String |
tab |
(package private) int |
tabCount |
| Constructor and Description |
|---|
SourceCode.Method(java.lang.String name,
org.apache.openjpa.persistence.util.SourceCode.ClassName returnType) |
SourceCode.Method(java.lang.String n,
java.lang.String t) |
| Modifier and Type | Method and Description |
|---|---|
SourceCode.Method |
addArgument(SourceCode.Argument<org.apache.openjpa.persistence.util.SourceCode.ClassName,java.lang.String> arg) |
SourceCode.Method |
addArgument(java.lang.String className,
java.lang.String argName) |
SourceCode.Method |
addCodeLine(java.lang.String line) |
SourceCode.Method |
addCodeLine(java.lang.String line,
boolean tabInc)
if tabInc = true, the current line, and all following lines will be tabbed.
|
boolean |
equals(java.lang.Object other) |
SourceCode.Method |
makeAbstract() |
void |
setTab(boolean inc) |
java.lang.String |
toString() |
void |
write(java.io.PrintWriter out,
int tab) |
addAnnotation, addComment, addParameter, compareTo, getType, makeFinal, makePrivate, makeProtected, makePublic, makeStaticSourceCode.Method(java.lang.String n,
java.lang.String t)
public SourceCode.Method(java.lang.String name,
org.apache.openjpa.persistence.util.SourceCode.ClassName returnType)
public SourceCode.Method addArgument(SourceCode.Argument<org.apache.openjpa.persistence.util.SourceCode.ClassName,java.lang.String> arg)
public SourceCode.Method addArgument(java.lang.String className, java.lang.String argName)
public void setTab(boolean inc)
public SourceCode.Method addCodeLine(java.lang.String line)
public SourceCode.Method addCodeLine(java.lang.String line, boolean tabInc)
public SourceCode.Method makeAbstract()
public java.lang.String toString()
toString in class java.lang.Objectpublic void write(java.io.PrintWriter out,
int tab)
write in class SourceCode.Element<SourceCode.Method>public boolean equals(java.lang.Object other)
equals in class java.lang.ObjectCopyright © 2006-2013 Apache Software Foundation. All Rights Reserved.