|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavafx.reflect.ReflectionContext
javafx.reflect.LocalReflectionContext
public class LocalReflectionContext
Implementation of ReflectionContext
using Java reflection.
Can only access objects and types in the current JVM.
Normally, this is a singleton, though in the future there might
be variants with different class search paths (similar to
com.sun.jdi.PathSearchingVirtualMachine
).
Field Summary |
---|
Fields inherited from class javafx.reflect.ReflectionContext |
---|
FXOBJECT_NAME, INTERFACE_SUFFIX |
Method Summary | |
---|---|
ClassRef |
findClass(java.lang.String cname)
Get the ClassRef for the class with the given name. |
ClassRef |
findClass(java.lang.String cname,
java.lang.ClassLoader loader)
Get the ClassRef for the class with the given name. |
static LocalReflectionContext |
getInstance()
Get the default instance. |
TypeRef |
getIntegerType()
Get the run-time representation of the JavaXF Integer type. |
TypeRef |
getNumberType()
Get the run-time representation of the JavaXF Number type. |
ClassRef |
makeClassRef(java.lang.Class cls)
Create a reference to a given Class. |
ObjectRef |
makeObjectRef(java.lang.Object obj)
Create a reference to a given Object. |
SequenceBuilder |
makeSequenceBuilder(TypeRef elementType)
Create a helper object for building a sequence value. |
Methods inherited from class javafx.reflect.ReflectionContext |
---|
getAnyType, makeSequence |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static LocalReflectionContext getInstance()
public ObjectRef makeObjectRef(java.lang.Object obj)
public ClassRef findClass(java.lang.String cname)
ClassRef
for the class with the given name.
findClass
in class ReflectionContext
public ClassRef findClass(java.lang.String cname, java.lang.ClassLoader loader)
ClassRef
for the class with the given name.
public ClassRef makeClassRef(java.lang.Class cls)
public SequenceBuilder makeSequenceBuilder(TypeRef elementType)
ReflectionContext
makeSequenceBuilder
in class ReflectionContext
public TypeRef getIntegerType()
ReflectionContext
Integer
type.
getIntegerType
in class ReflectionContext
public TypeRef getNumberType()
ReflectionContext
Number
type.
getNumberType
in class ReflectionContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |