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 FXPrimitiveType getByteType()
- public FXPrimitiveType getCharacterType()
- public FXPrimitiveType getDoubleType()
- public FXPrimitiveType getFloatType()
- public static FXContext getInstance()
- public FXPrimitiveType getIntegerType()
- public FXPrimitiveType getLongType()
- public FXPrimitiveType getNumberType()
- public FXPrimitiveType getPrimitiveType(java.lang.String typeName)
- public FXPrimitiveType getShortType()
- public FXClassType getStringType()
- public FXPrimitiveType getVoidType()
- public FXValue makeSequence(javafx.reflect.FXType elementType, javafx.reflect.FXValue[] values)
-
Create a sequence value from one or more FXValues.
Create a sequence value from one or more FXValues. Concatenates all of the input values (which might be themselves sequences or null).
-
Parameters
- elementType
- elementType
- values
- the values to be concatenated
-
Returns
- FXValue
- the new sequence value
- 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 javafx.reflect.FXLocal.Value mirrorOf(boolean value)
- public javafx.reflect.FXLocal.Value mirrorOf(char value)
- public javafx.reflect.FXLocal.Value mirrorOf(byte value)
- public javafx.reflect.FXLocal.Value mirrorOf(short value)
- public javafx.reflect.FXLocal.Value mirrorOf(int value)
- public javafx.reflect.FXLocal.Value mirrorOf(long value)
- public javafx.reflect.FXLocal.Value mirrorOf(float value)
- public javafx.reflect.FXLocal.Value mirrorOf(double value)
- public abstract FXValue mirrorOf(java.lang.String value)