public class SourceCode.Constructor extends SourceCode.Element<SourceCode.Constructor>
Constructor and Description |
---|
Constructor(String name) |
Modifier and Type | Method and Description |
---|---|
SourceCode.Constructor |
addArgument(SourceCode.Argument<org.apache.openjpa.persistence.util.SourceCode.ClassName,String> arg) |
SourceCode.Constructor |
addArgument(String className,
String argName) |
SourceCode.Constructor |
addCodeLine(String line) |
SourceCode.Constructor |
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) |
addAnnotation, addComment, addParameter, compareTo, getType, makeFinal, makePrivate, makeProtected, makePublic, makeStatic
public Constructor(String name)
public SourceCode.Constructor addArgument(SourceCode.Argument<org.apache.openjpa.persistence.util.SourceCode.ClassName,String> arg)
public SourceCode.Constructor addArgument(String className, String argName)
public SourceCode.Constructor addCodeLine(String line)
public SourceCode.Constructor addCodeLine(String line, boolean tabInc)
public void setTab(boolean inc)
public void write(PrintWriter out, int tab)
write
in class SourceCode.Element<SourceCode.Constructor>
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.