Class SourceCode.Method
- java.lang.Object
-
- org.apache.openjpa.persistence.util.SourceCode.Element<SourceCode.Method>
-
- org.apache.openjpa.persistence.util.SourceCode.Method
-
- All Implemented Interfaces:
Comparable<SourceCode.Element<SourceCode.Method>>
- Enclosing class:
- SourceCode
public class SourceCode.Method extends SourceCode.Element<SourceCode.Method>
Represents Method declaration.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SourceCode.Method
addArgument(String className, String argName)
SourceCode.Method
addArgument(SourceCode.Argument<org.apache.openjpa.persistence.util.SourceCode.ClassName,String> arg)
SourceCode.Method
addCodeLine(String line)
SourceCode.Method
addCodeLine(String line, boolean tabInc)
if tabInc = true, the current line, and all following lines will be tabbed.boolean
equals(Object other)
SourceCode.Method
makeAbstract()
void
setTab(boolean inc)
String
toString()
void
write(PrintWriter out, int tab)
-
Methods inherited from class org.apache.openjpa.persistence.util.SourceCode.Element
addAnnotation, addComment, addParameter, compareTo, getType, makeFinal, makePrivate, makeProtected, makePublic, makeStatic
-
-
-
-
Constructor Detail
-
Method
public Method(String name, org.apache.openjpa.persistence.util.SourceCode.ClassName returnType)
-
-
Method Detail
-
addArgument
public SourceCode.Method addArgument(SourceCode.Argument<org.apache.openjpa.persistence.util.SourceCode.ClassName,String> arg)
-
addArgument
public SourceCode.Method addArgument(String className, String argName)
-
setTab
public void setTab(boolean inc)
-
addCodeLine
public SourceCode.Method addCodeLine(String line)
-
addCodeLine
public SourceCode.Method addCodeLine(String line, boolean tabInc)
if tabInc = true, the current line, and all following lines will be tabbed. If false, a tab will be removed.
-
makeAbstract
public SourceCode.Method makeAbstract()
-
write
public void write(PrintWriter out, int tab)
- Overrides:
write
in classSourceCode.Element<SourceCode.Method>
-
-