Package org.jboss.jdeparser
Class JFieldRef
java.lang.Object
org.jboss.jdeparser.JExpressionImpl
org.jboss.jdeparser.JFieldRef
- All Implemented Interfaces:
JAssignmentTarget,JExpression,JGenerable
Field Reference
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanIndicates if an explicit this should be generatedprivate StringName of the field to be accessed.private JGenerableObject expression upon which this field will be accessed, or null for the implicit 'this'.private JVarVariable to be accessed. -
Constructor Summary
ConstructorsConstructorDescriptionJFieldRef(JExpression object, String name) Field reference constructor given an object expression and field nameJFieldRef(JExpression object, JVar v) JFieldRef(JGenerable object, String name, boolean explicitThis) JFieldRef(JGenerable object, JVar var, boolean explicitThis) Static field reference. -
Method Summary
Methods inherited from class org.jboss.jdeparser.JExpressionImpl
_instanceof, band, bor, cand, complement, component, cond, cor, decr, div, eq, gt, gte, incr, invoke, invoke, lt, lte, minus, minus, mod, mul, ne, not, plus, ref, ref, shl, shr, shrz, xor
-
Field Details
-
object
Object expression upon which this field will be accessed, or null for the implicit 'this'. -
name
Name of the field to be accessed. Either this orvaris set. -
var
Variable to be accessed. -
explicitThis
private boolean explicitThisIndicates if an explicit this should be generated
-
-
Constructor Details
-
JFieldRef
JFieldRef(JExpression object, String name) Field reference constructor given an object expression and field name- Parameters:
object- JExpression for the object upon which the named field will be accessed,name- Name of field to access
-
JFieldRef
JFieldRef(JExpression object, JVar v) -
JFieldRef
Static field reference. -
JFieldRef
-
JFieldRef
JFieldRef(JGenerable object, String name, boolean explicitThis) -
JFieldRef
JFieldRef(JGenerable object, JVar var, boolean explicitThis)
-
-
Method Details
-
generate
- Specified by:
generatein interfaceJGenerable
-
assign
- Specified by:
assignin interfaceJAssignmentTarget
-
assignPlus
- Specified by:
assignPlusin interfaceJAssignmentTarget
-