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:
java.lang.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(java.lang.Object other)voidmakeTransient()voidmakeVolatile()SourceCode.FieldmarkAsBean()Adds bean-style getter setter method.java.lang.StringtoString()voidwrite(java.io.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()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
write
public void write(java.io.PrintWriter out, int tab)- Overrides:
writein classSourceCode.Element<SourceCode.Field>
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
-