org.apache.openjpa.persistence.util
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
public class SourceCode.Constructor
- extends SourceCode.Element<SourceCode.Constructor>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tabCount
int tabCount
tab
String tab
SourceCode.Constructor
public SourceCode.Constructor(String name)
addArgument
public SourceCode.Constructor addArgument(SourceCode.Argument<org.apache.openjpa.persistence.util.SourceCode.ClassName,String> arg)
addArgument
public SourceCode.Constructor addArgument(String className,
String argName)
addCodeLine
public SourceCode.Constructor addCodeLine(String line)
addCodeLine
public SourceCode.Constructor 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.
setTab
public void setTab(boolean inc)
write
public void write(PrintWriter out,
int tab)
- Overrides:
write
in class SourceCode.Element<SourceCode.Constructor>
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.