public class JFieldRef extends AbstractJExpressionAssignmentTargetImpl implements IJOwnedMaybe
| Modifier | Constructor and Description |
|---|---|
protected |
JFieldRef(AbstractJType type,
JVar var)
Static field reference.
|
protected |
JFieldRef(AbstractJType type,
String name)
Static field reference.
|
protected |
JFieldRef(IJExpression object,
JVar var) |
protected |
JFieldRef(IJExpression object,
String name)
Field reference constructor given an object expression and field name.
|
protected |
JFieldRef(IJGenerable object,
JVar var,
boolean explicitThis) |
protected |
JFieldRef(IJGenerable object,
String name,
boolean explicitThis) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
boolean |
explicitThis() |
JFieldRef |
explicitThis(boolean bExplicitThis) |
void |
generate(JFormatter f) |
int |
hashCode() |
String |
name() |
IJGenerable |
object() |
JCodeModel |
owner()
Gets the owner code model object.
|
JVar |
var() |
assign, assign, assign, assign, assign, assign, assign, assign, assignBand, assignBor, assignDivide, assignDivide, assignDivide, assignDivide, assignDivide, assignMinus, assignMinus, assignMinus, assignMinus, assignMinus, assignPlus, assignPlus, assignPlus, assignPlus, assignPlus, assignPlus, assignPlus, assignShl, assignShl, assignShr, assignShr, assignShrz, assignShrz, assignTimes, assignTimes, assignTimes, assignTimes, assignTimes, assignXor_instanceof, band, bor, cand, complement, component, component, component0, cor, decr, div, div, div, div, div, eq, eq0, eqNull, gt, gt0, gte, gte0, incr, invoke, invoke, lt, lt0, lte, lte0, minus, minus, minus, minus, minus, minus, mod, mul, mul, mul, mul, mul, ne, ne0, neNull, not, plus, plus, plus, plus, plus, plus, predecr, preincr, ref, ref, shl, shl, shr, shr, shrz, shrz, xorclone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait_instanceof, band, bor, cand, complement, component, component, component0, cor, decr, div, div, div, div, div, eq, eq0, eqNull, gt, gt0, gte, gte0, incr, invoke, invoke, lt, lt0, lte, lte0, minus, minus, minus, minus, minus, minus, mod, mul, mul, mul, mul, mul, ne, ne0, neNull, not, plus, plus, plus, plus, plus, plus, predecr, preincr, ref, ref, shl, shl, shr, shr, shrz, shrz, xorprotected JFieldRef(@Nullable IJExpression object, @Nonnull String name)
object.name or just name if object is
null.object - JExpression for the object upon which the named field will be
accessed. May be null.name - Name of field to access. May not be null.protected JFieldRef(@Nullable IJExpression object, @Nonnull JVar var)
protected JFieldRef(@Nonnull AbstractJType type, @Nonnull String name)
type - Type to usename - Field nameprotected JFieldRef(@Nonnull AbstractJType type, @Nonnull JVar var)
type - Type to usevar - Referenced variableprotected JFieldRef(@Nullable IJGenerable object, @Nonnull String name, boolean explicitThis)
protected JFieldRef(@Nullable IJGenerable object, @Nonnull JVar var, boolean explicitThis)
@Nullable public JCodeModel owner()
IJOwnedMaybeowner in interface IJOwnedMaybenull.@Nullable public IJGenerable object()
public boolean explicitThis()
public void generate(@Nonnull JFormatter f)
generate in interface IJGenerableCopyright © 2013–2015 Philip Helger. All rights reserved.