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 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(java.lang.Object other)
void
makeTransient()
void
makeVolatile()
SourceCode.Field
markAsBean()
Adds bean-style getter setter method.java.lang.String
toString()
void
write(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:
toString
in classjava.lang.Object
-
write
public void write(java.io.PrintWriter out, int tab)
- Overrides:
write
in classSourceCode.Element<SourceCode.Field>
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
-