public class SourceCode.Class extends SourceCode.Element<SourceCode.Class>
class
declaration.Modifier and Type | Method and Description |
---|---|
SourceCode.Constructor |
addConstructor() |
SourceCode.Field |
addField(String f,
org.apache.openjpa.persistence.util.SourceCode.ClassName type) |
SourceCode.Field |
addField(String name,
String type) |
SourceCode.Class |
addInterface(String s) |
protected SourceCode.Method |
addMethod(String m,
org.apache.openjpa.persistence.util.SourceCode.ClassName retType) |
SourceCode.Method |
addMethod(String m,
String retType) |
String |
getName() |
String |
getPackageName() |
SourceCode.Class |
makeAbstract() |
SourceCode.Class |
makeFinal() |
SourceCode.Class |
markAsBean()
Adds getters and setters to every non-public field.
|
SourceCode.Class |
setSuper(String s) |
String |
toString() |
void |
write(PrintWriter out,
int tab) |
addAnnotation, addComment, addParameter, compareTo, getType, makePrivate, makeProtected, makePublic, makeStatic
public Class(String name)
public SourceCode.Class setSuper(String s)
public SourceCode.Class addInterface(String s)
public SourceCode.Class makeAbstract()
public SourceCode.Class makeFinal()
makeFinal
in class SourceCode.Element<SourceCode.Class>
public SourceCode.Class markAsBean()
public String getName()
public String getPackageName()
public SourceCode.Field addField(String name, String type)
public SourceCode.Field addField(String f, org.apache.openjpa.persistence.util.SourceCode.ClassName type)
public SourceCode.Method addMethod(String m, String retType)
protected SourceCode.Method addMethod(String m, org.apache.openjpa.persistence.util.SourceCode.ClassName retType)
public SourceCode.Constructor addConstructor()
public void write(PrintWriter out, int tab)
write
in class SourceCode.Element<SourceCode.Class>
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.