org.apache.openjpa.persistence.util
Class SourceCode.Class
java.lang.Object
org.apache.openjpa.persistence.util.SourceCode.Element<SourceCode.Class>
org.apache.openjpa.persistence.util.SourceCode.Class
- All Implemented Interfaces:
- Comparable<SourceCode.Element<SourceCode.Class>>
- Enclosing class:
- SourceCode
public class SourceCode.Class
- extends SourceCode.Element<SourceCode.Class>
Represent class
declaration.
SourceCode.Class
public SourceCode.Class(String name)
setSuper
public SourceCode.Class setSuper(String s)
addInterface
public SourceCode.Class addInterface(String s)
makeAbstract
public SourceCode.Class makeAbstract()
markAsBean
public SourceCode.Class markAsBean()
- Adds getters and setters to every non-public field.
getName
public String getName()
getPackageName
public String getPackageName()
addField
public SourceCode.Field addField(String name,
String type)
addField
public SourceCode.Field addField(String f,
org.apache.openjpa.persistence.util.SourceCode.ClassName type)
addMethod
public org.apache.openjpa.persistence.util.SourceCode.Method addMethod(String m,
String retType)
addMethod
protected org.apache.openjpa.persistence.util.SourceCode.Method addMethod(String m,
org.apache.openjpa.persistence.util.SourceCode.ClassName retType)
write
public void write(PrintWriter out,
int tab)
- Overrides:
write
in class SourceCode.Element<SourceCode.Class>
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.