javafx.reflect
Class ReflectionContext

java.lang.Object
  extended by javafx.reflect.ReflectionContext
Direct Known Subclasses:
LocalReflectionContext

public abstract class ReflectionContext
extends java.lang.Object

Context for reflective operations. All the various operations are based on a ReflectionContext. This is similar to JDI's VirtualMachine interface. In "normal" useage there is a single ReflectionContext that is basically a wrapper around java.lang.reflect, but (for example) for remote reflection you could have an implementation based on JDI. Corresponds to com.sun.jdi.VirtualMachine.


Field Summary
static java.lang.String FXOBJECT_NAME
           
static java.lang.String INTERFACE_SUFFIX
           
 
Constructor Summary
protected ReflectionContext()
           
 
Method Summary
abstract  ClassRef findClass(java.lang.String name)
          Get the ClassRef for the class with the given name.
 TypeRef getAnyType()
          Get the TypeRef for the "any" type.
static ReflectionContext getInstance()
          Find context-dependent default ReflectionContext.
abstract  TypeRef getIntegerType()
          Get the run-time representation of the JavaXF Integer type.
abstract  TypeRef getNumberType()
          Get the run-time representation of the JavaXF Number type.
 ValueRef makeSequence(TypeRef elementType, ValueRef... values)
           
abstract  SequenceBuilder makeSequenceBuilder(TypeRef elementType)
          Create a helper object for building a sequence value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INTERFACE_SUFFIX

public static final java.lang.String INTERFACE_SUFFIX
See Also:
Constant Field Values

FXOBJECT_NAME

public static final java.lang.String FXOBJECT_NAME
See Also:
Constant Field Values
Constructor Detail

ReflectionContext

protected ReflectionContext()
Method Detail

getInstance

public static ReflectionContext getInstance()
Find context-dependent default ReflectionContext. (For now, this always returns the same LocalReflectionContext.)


findClass

public abstract ClassRef findClass(java.lang.String name)
Get the ClassRef for the class with the given name.


getAnyType

public TypeRef getAnyType()
Get the TypeRef for the "any" type.


getIntegerType

public abstract TypeRef getIntegerType()
Get the run-time representation of the JavaXF Integer type.


getNumberType

public abstract TypeRef getNumberType()
Get the run-time representation of the JavaXF Number type.


makeSequenceBuilder

public abstract SequenceBuilder makeSequenceBuilder(TypeRef elementType)
Create a helper object for building a sequence value.


makeSequence

public ValueRef makeSequence(TypeRef elementType,
                             ValueRef... values)