javafx.reflect
Class ObjectRef

java.lang.Object
  extended by javafx.reflect.ValueRef
      extended by javafx.reflect.ObjectRef

public abstract class ObjectRef
extends ValueRef

A handle/proxy for an Object reference.


Constructor Summary
protected ObjectRef()
           
 
Method Summary
 ReflectionContext getReflectionContect()
           
abstract  ClassRef getType()
          Get the run-time type of this value.
 void initAttribute(AttributeRef attr, ValueRef value)
          Initialize an attribute of an object to a given value.
 void initAttribute(java.lang.String name, ValueRef value)
          Initialize an attribute of an object to a given value.
 void initBinding(AttributeRef attr, LocationRef location)
          Bind an attribute of an object to a given location.
 void initBinding(java.lang.String name, LocationRef location)
          Bind an attribute of an object to a given location.
 ObjectRef initialize()
          Finish constructing an object.
 ValueRef invoke(MethodRef method, ValueRef... args)
          Convenience method to invoke a member function.
 ValueRef invoke(java.lang.String name, ValueRef... args)
          Convenience method to invoke a member function.
 
Methods inherited from class javafx.reflect.ValueRef
getItem, getItemCount, isNull
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectRef

protected ObjectRef()
Method Detail

getType

public abstract ClassRef getType()
Description copied from class: ValueRef
Get the run-time type of this value.

Specified by:
getType in class ValueRef

getReflectionContect

public ReflectionContext getReflectionContect()

initAttribute

public void initAttribute(java.lang.String name,
                          ValueRef value)
Initialize an attribute of an object to a given value. Should only be called between cls.allocate() and obj.initialize().


initAttribute

public void initAttribute(AttributeRef attr,
                          ValueRef value)
Initialize an attribute of an object to a given value. Should only be called between cls.allocate() and obj.initialize().


initBinding

public void initBinding(java.lang.String name,
                        LocationRef location)
Bind an attribute of an object to a given location. Should only be called between cls.allocate() and obj.initialize().


initBinding

public void initBinding(AttributeRef attr,
                        LocationRef location)
Bind an attribute of an object to a given location. Should only be called between cls.allocate() and obj.initialize().


initialize

public ObjectRef initialize()
Finish constructing an object. Run init hooks, triggers etc.

Returns:
the constructed object - normally the same as this.

invoke

public ValueRef invoke(java.lang.String name,
                       ValueRef... args)
Convenience method to invoke a member function.


invoke

public ValueRef invoke(MethodRef method,
                       ValueRef... args)
Convenience method to invoke a member function.