|
||||||||
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 it might be possible to
have variants with different class search paths, for example.
Method Summary | |
---|---|
ClassRef |
findClass(java.lang.String name)
Get the ClassRef for the class with the given name. |
static LocalReflectionContext |
getInstance()
|
TypeRef |
getIntegerType()
Get the run-time representation of the JavaXF Integer type. |
TypeRef |
getNumberType()
Get the run-time representation of the JavaXF Number type. |
ObjectRef |
makeClassRef(java.lang.Class cls)
Create a reference to a given Object. |
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 ObjectRef makeClassRef(java.lang.Class cls)
public SequenceBuilder makeSequenceBuilder(TypeRef elementType)
ReflectionContext
makeSequenceBuilder
in class ReflectionContext
public ClassRef findClass(java.lang.String name)
ReflectionContext
ClassRef
for the class with the given name.
findClass
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 |