Top Description Fields Constructors Methods
com.sun.codemodel

public Class JFieldRef

extends JExpressionImpl
implements JAssignmentTarget
Class Inheritance
All Implemented Interfaces
com.sun.codemodel.JAssignmentTarget, com.sun.codemodel.JExpression, com.sun.codemodel.JGenerable

Field Reference

Field Summary

Modifier and TypeField and Description
private boolean
explicitThis

Indicates if an explicit this should be generated

private String
name

Name of the field to be accessed.

private JGenerable
object

Object expression upon which this field will be accessed, or null for the implicit 'this'.

private JVar
var

Variable to be accessed.

Constructor Summary

AccessConstructor and Description
pack-priv
JFieldRef(JExpression
JExpression for the object upon which the named field will be accessed,
object
,
String
Name of field to access
name
)

Field reference constructor given an object expression and field name

pack-priv
pack-priv
JFieldRef(JType type, String name)

Static field reference.

pack-priv
JFieldRef(JType type, JVar v)

pack-priv
JFieldRef(JGenerable object, String name, boolean explicitThis)

pack-priv
JFieldRef(JGenerable object, JVar var, boolean explicitThis)

Method Summary

Modifier and TypeMethod and Description
public JExpression
public JExpression
public void
Inherited from com.sun.codemodel.JExpressionImpl:
_instanceofbandborcandcomplementcomponentcordecrdiveqgtgteincrinvokeinvokeltlteminusminusmodmulnenotplusrefrefshlshrshrzxor

Field Detail

explicitThisback to summary
private boolean explicitThis

Indicates if an explicit this should be generated

nameback to summary
private String name

Name of the field to be accessed. Either this or var is set.

objectback to summary
private JGenerable object

Object expression upon which this field will be accessed, or null for the implicit 'this'.

varback to summary
private JVar var

Variable to be accessed.

Constructor Detail

JFieldRefback to summary
pack-priv JFieldRef(JExpression object, String name)

Field reference constructor given an object expression and field name

Parameters
object:JExpression

JExpression for the object upon which the named field will be accessed,

name:String

Name of field to access

JFieldRefback to summary
pack-priv JFieldRef(JExpression object, JVar v)
JFieldRefback to summary
pack-priv JFieldRef(JType type, String name)

Static field reference.

JFieldRefback to summary
pack-priv JFieldRef(JType type, JVar v)
JFieldRefback to summary
pack-priv JFieldRef(JGenerable object, String name, boolean explicitThis)
JFieldRefback to summary
pack-priv JFieldRef(JGenerable object, JVar var, boolean explicitThis)

Method Detail

assignback to summary
public JExpression assign(JExpression rhs)

Implements com.sun.codemodel.JAssignmentTarget.assign.

Annotations
@Override
assignPlusback to summary
public JExpression assignPlus(JExpression rhs)

Implements com.sun.codemodel.JAssignmentTarget.assignPlus.

Annotations
@Override
generateback to summary
public void generate(JFormatter f)

Implements com.sun.codemodel.JGenerable.generate.

Annotations
@Override