|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavafx.reflect.ReflectionContext
public abstract class ReflectionContext
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 |
---|
public static final java.lang.String INTERFACE_SUFFIX
public static final java.lang.String FXOBJECT_NAME
Constructor Detail |
---|
protected ReflectionContext()
Method Detail |
---|
public static ReflectionContext getInstance()
ReflectionContext
.
(For now, this always returns the same LocalReflectionContext
.)
public abstract ClassRef findClass(java.lang.String name)
ClassRef
for the class with the given name.
public TypeRef getAnyType()
TypeRef
for the "any" type.
public abstract TypeRef getIntegerType()
Integer
type.
public abstract TypeRef getNumberType()
Number
type.
public abstract SequenceBuilder makeSequenceBuilder(TypeRef elementType)
public ValueRef makeSequence(TypeRef elementType, ValueRef... values)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |