Class SourceCode.Field
- java.lang.Object
-
- org.apache.openjpa.persistence.util.SourceCode.Element<SourceCode.Field>
-
- org.apache.openjpa.persistence.util.SourceCode.Field
-
- All Implemented Interfaces:
Comparable<SourceCode.Element<SourceCode.Field>>
- Enclosing class:
- SourceCode
public class SourceCode.Field extends SourceCode.Element<SourceCode.Field>
Represents field declaration.
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
isTransient
protected boolean
isVolatile
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SourceCode.Field
addGetter()
SourceCode.Field
addSetter()
boolean
equals(Object other)
void
makeTransient()
void
makeVolatile()
SourceCode.Field
markAsBean()
Adds bean-style getter setter method.String
toString()
void
write(PrintWriter out, int tab)
-
Methods inherited from class org.apache.openjpa.persistence.util.SourceCode.Element
addAnnotation, addComment, addParameter, compareTo, getType, makeFinal, makePrivate, makeProtected, makePublic, makeStatic
-
-
-
-
Method Detail
-
markAsBean
public SourceCode.Field markAsBean()
Adds bean-style getter setter method.
-
addGetter
public SourceCode.Field addGetter()
-
addSetter
public SourceCode.Field addSetter()
-
makeVolatile
public void makeVolatile()
-
makeTransient
public void makeTransient()
-
write
public void write(PrintWriter out, int tab)
- Overrides:
write
in classSourceCode.Element<SourceCode.Field>
-
-