public class SourceCode.Method extends SourceCode.Element<SourceCode.Method>
Constructor and Description |
---|
Method(String name,
org.apache.openjpa.persistence.util.SourceCode.ClassName returnType) |
Modifier and Type | Method and Description |
---|---|
SourceCode.Method |
addArgument(SourceCode.Argument<org.apache.openjpa.persistence.util.SourceCode.ClassName,String> arg) |
SourceCode.Method |
addArgument(String className,
String argName) |
SourceCode.Method |
addCodeLine(String line) |
SourceCode.Method |
addCodeLine(String line,
boolean tabInc)
if tabInc = true, the current line, and all following lines will be tabbed.
|
boolean |
equals(Object other) |
SourceCode.Method |
makeAbstract() |
void |
setTab(boolean inc) |
String |
toString() |
void |
write(PrintWriter out,
int tab) |
addAnnotation, addComment, addParameter, compareTo, getType, makeFinal, makePrivate, makeProtected, makePublic, makeStatic
public Method(String name, org.apache.openjpa.persistence.util.SourceCode.ClassName returnType)
public SourceCode.Method addArgument(SourceCode.Argument<org.apache.openjpa.persistence.util.SourceCode.ClassName,String> arg)
public SourceCode.Method addArgument(String className, String argName)
public void setTab(boolean inc)
public SourceCode.Method addCodeLine(String line)
public SourceCode.Method addCodeLine(String line, boolean tabInc)
public SourceCode.Method makeAbstract()
public void write(PrintWriter out, int tab)
write
in class SourceCode.Element<SourceCode.Method>
Copyright © 2006–2018 Apache Software Foundation. All rights reserved.