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
Represents Method declaration.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddArgument
(String className, String argName) addArgument
(SourceCode.Argument<org.apache.openjpa.persistence.util.SourceCode.ClassName, String> arg) addCodeLine
(String line) addCodeLine
(String line, boolean tabInc) if tabInc = true, the current line, and all following lines will be tabbed.boolean
void
setTab
(boolean inc) 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 Details
-
Method
-
-
Method Details
-
addArgument
public SourceCode.Method addArgument(SourceCode.Argument<org.apache.openjpa.persistence.util.SourceCode.ClassName, String> arg) -
addArgument
-
setTab
public void setTab(boolean inc) -
addCodeLine
-
addCodeLine
if tabInc = true, the current line, and all following lines will be tabbed. If false, a tab will be removed. -
makeAbstract
-
toString
-
write
- Overrides:
write
in classSourceCode.Element<SourceCode.Method>
-
equals
-