Class SourceCode.Constructor
java.lang.Object
org.apache.openjpa.persistence.util.SourceCode.Element<SourceCode.Constructor>
org.apache.openjpa.persistence.util.SourceCode.Constructor
- All Implemented Interfaces:
Comparable<SourceCode.Element<SourceCode.Constructor>>
- Enclosing class:
- SourceCode
-
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.void
setTab
(boolean inc) 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
-
Constructor
-
-
Method Details
-
addArgument
public SourceCode.Constructor addArgument(SourceCode.Argument<org.apache.openjpa.persistence.util.SourceCode.ClassName, String> arg) -
addArgument
-
addCodeLine
-
addCodeLine
if tabInc = true, the current line, and all following lines will be tabbed. If false, a tab will be removed. -
setTab
public void setTab(boolean inc) -
write
- Overrides:
write
in classSourceCode.Element<SourceCode.Constructor>
-