Overview
Context for reflective operations.
All the various operations are based on a FXContext
.
This is similar to JDI's VirtualMachine
interface.
In "normal" useage there is a single FXContext
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
.
Profile: desktop
Field Summary
access | name | type | description |
---|---|---|---|
public static final | FXOBJECT_NAME | String | |
public static final | INTERFACE_SUFFIX | String |
Inherited Variables
Constructor Summary
Method Summary
- public abstract FXClassType findClass(java.lang.String name)
- public FXType getAnyType()
- public FXPrimitiveType getBooleanType()
- public static FXContext getInstance()
- public FXPrimitiveType getIntegerType()
- public FXPrimitiveType getNumberType()
- public FXPrimitiveType getVoidType()
- public FXValue makeSequence(javafx.reflect.FXType elementType, javafx.reflect.FXValue[] values)
- public FXSequenceBuilder makeSequenceBuilder(javafx.reflect.FXType elementType)
- public FXValue makeSequenceValue(javafx.reflect.FXValue[] values, int nvalues, javafx.reflect.FXType elementType)
-
Create a sequence value from an array of singleton FXValues.
Create a sequence value from an array of singleton FXValues. This is a low-level routine than makeSequence, which takes arguments than can be nul or themselves sequences.
-
Parameters
- values
- Input values. (This array is re-used, not copied. It must not be modified after the method is called.) All of the values must be singleton values.
- nvalues
-
Number of items in the sequence. (We require that
nvalues >= values.length
.) - elementType
- elementType
-
Returns
- FXValue
- the new sequence value
- public FXValue mirrorOf(boolean value)
- public FXValue mirrorOf(int value)
- public FXValue mirrorOf(double value)
- public abstract FXValue mirrorOf(java.lang.String value)