Class JFieldRef

    • Field Detail

      • object

        private JGenerable object
        Object expression upon which this field will be accessed, or null for the implicit 'this'.
      • name

        private java.lang.String name
        Name of the field to be accessed. Either this or var is set.
      • var

        private JVar var
        Variable to be accessed.
      • explicitThis

        private boolean explicitThis
        Indicates if an explicit this should be generated
    • Constructor Detail

      • JFieldRef

        JFieldRef​(JExpression object,
                  java.lang.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​(JType type,
                  java.lang.String name)
        Static field reference.
      • JFieldRef

        JFieldRef​(JType type,
                  JVar v)
      • JFieldRef

        JFieldRef​(JGenerable object,
                  java.lang.String name,
                  boolean explicitThis)
      • JFieldRef

        JFieldRef​(JGenerable object,
                  JVar var,
                  boolean explicitThis)