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:
java.lang.Comparable<SourceCode.Element<SourceCode.Constructor>>
- Enclosing class:
- SourceCode
public class SourceCode.Constructor extends SourceCode.Element<SourceCode.Constructor>
-
-
Constructor Summary
Constructors Constructor Description Constructor(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SourceCode.Constructor
addArgument(java.lang.String className, java.lang.String argName)
SourceCode.Constructor
addArgument(SourceCode.Argument<org.apache.openjpa.persistence.util.SourceCode.ClassName,java.lang.String> arg)
SourceCode.Constructor
addCodeLine(java.lang.String line)
SourceCode.Constructor
addCodeLine(java.lang.String line, boolean tabInc)
if tabInc = true, the current line, and all following lines will be tabbed.void
setTab(boolean inc)
void
write(java.io.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
-
-
-
-
Method Detail
-
addArgument
public SourceCode.Constructor addArgument(SourceCode.Argument<org.apache.openjpa.persistence.util.SourceCode.ClassName,java.lang.String> arg)
-
addArgument
public SourceCode.Constructor addArgument(java.lang.String className, java.lang.String argName)
-
addCodeLine
public SourceCode.Constructor addCodeLine(java.lang.String line)
-
addCodeLine
public SourceCode.Constructor addCodeLine(java.lang.String line, boolean tabInc)
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
public void write(java.io.PrintWriter out, int tab)
- Overrides:
write
in classSourceCode.Element<SourceCode.Constructor>
-
-