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 booleanisTransientprotected booleanisVolatile
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SourceCode.FieldaddGetter()SourceCode.FieldaddSetter()booleanequals(Object other)voidmakeTransient()voidmakeVolatile()SourceCode.FieldmarkAsBean()Adds bean-style getter setter method.StringtoString()voidwrite(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:
writein classSourceCode.Element<SourceCode.Field>
-
-