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
Represent
class
declaration.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected SourceCode.Method
getName()
Adds getters and setters to every non-public field.toString()
void
write
(PrintWriter out, int tab) Methods inherited from class org.apache.openjpa.persistence.util.SourceCode.Element
addAnnotation, addComment, addParameter, compareTo, getType, makePrivate, makeProtected, makePublic, makeStatic
-
Constructor Details
-
Class
-
-
Method Details
-
setSuper
-
addInterface
-
makeAbstract
-
makeFinal
- Overrides:
makeFinal
in classSourceCode.Element<SourceCode.Class>
-
markAsBean
Adds getters and setters to every non-public field. -
getName
-
getPackageName
-
addField
-
addField
public SourceCode.Field addField(String f, org.apache.openjpa.persistence.util.SourceCode.ClassName type) -
addMethod
-
addMethod
protected SourceCode.Method addMethod(String m, org.apache.openjpa.persistence.util.SourceCode.ClassName retType) -
addConstructor
-
write
- Overrides:
write
in classSourceCode.Element<SourceCode.Class>
-
toString
-