Spec-Zone .ru
спецификации, руководства, описания, API

JavaFX: Bringing Rich Experiences To All the Screens Of Your Life

Profile: desktop, common

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

accessnametypedescription
public static finalFXBASE_NAMEString
public static finalFXMIXIN_NAMEString
public static finalFXOBJECT_NAMEString
public static finalMIXIN_SUFFIXString

Inherited Variables

Constructor Summary

protected FXContext()
Returns
 

Method Summary

public abstract FXClassType findClass(java.lang.String name)

Get the FXClassType for the class with the given name.

Get the FXClassType for the class with the given name.

Parameters
name
Returns
FXClassType
 
public FXType getAnyType()

Get the FXType for the "any" type.

Get the FXType for the "any" type.

Returns
FXType
 
public FXPrimitiveType getBooleanType()

Get the run-time representation of the JavaFX Boolean type.

Get the run-time representation of the JavaFX Boolean type.

Returns
FXPrimitiveType
 
public FXPrimitiveType getByteType()

Get the run-time representation of the JavaFX Byte type.

Get the run-time representation of the JavaFX Byte type.

Returns
FXPrimitiveType
 
public FXPrimitiveType getCharacterType()

Get the run-time representation of the JavaFX Character type.

Get the run-time representation of the JavaFX Character type.

Returns
FXPrimitiveType
 
public FXPrimitiveType getDoubleType()
Returns
FXPrimitiveType
 
public FXPrimitiveType getFloatType()
Returns
FXPrimitiveType
 
public static FXContext getInstance()

Find context-dependent default FXContext.

Find context-dependent default FXContext. (For now, this always returns the same LocalReflectionContext.)

Returns
FXContext
 
public FXPrimitiveType getIntegerType()

Get the run-time representation of the JavaFX Integer type.

Get the run-time representation of the JavaFX Integer type.

Returns
FXPrimitiveType
 
public FXPrimitiveType getLongType()

Get the run-time representation of the JavaFX Long type.

Get the run-time representation of the JavaFX Long type.

Returns
FXPrimitiveType
 
public FXPrimitiveType getNumberType()

Get the run-time representation of the JavaFX Number type.

Get the run-time representation of the JavaFX Number type.

Returns
FXPrimitiveType
 
public FXPrimitiveType getPrimitiveType(java.lang.String typeName)
Parameters
typeName
Returns
FXPrimitiveType
 
public FXPrimitiveType getShortType()

Get the run-time representation of the JavaFX Short type.

Get the run-time representation of the JavaFX Short type.

Returns
FXPrimitiveType
 
public FXClassType getStringType()
Returns
FXClassType
 
public FXPrimitiveType getVoidType()

Get the run-time representation of the JavaFX Void type.

Get the run-time representation of the JavaFX Void type.

Returns
FXPrimitiveType
 
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)

Create a helper object for building a sequence value.

Create a helper object for building a sequence value.

Parameters
elementType
Returns
FXSequenceBuilder
 
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
&nbsp;
public javafx.reflect.FXLocal.Value mirrorOf(boolean value)
Parameters
value
Returns
Value
&nbsp;
public javafx.reflect.FXLocal.Value mirrorOf(char value)
Parameters
value
Returns
Value
&nbsp;
public javafx.reflect.FXLocal.Value mirrorOf(byte value)
Parameters
value
Returns
Value
&nbsp;
public javafx.reflect.FXLocal.Value mirrorOf(short value)
Parameters
value
Returns
Value
&nbsp;
public javafx.reflect.FXLocal.Value mirrorOf(int value)
Parameters
value
Returns
Value
&nbsp;
public javafx.reflect.FXLocal.Value mirrorOf(long value)
Parameters
value
Returns
Value
&nbsp;
public javafx.reflect.FXLocal.Value mirrorOf(float value)
Parameters
value
Returns
Value
&nbsp;
public javafx.reflect.FXLocal.Value mirrorOf(double value)
Parameters
value
Returns
Value
&nbsp;
public abstract FXValue mirrorOf(java.lang.String value)
Parameters
value
Returns
FXValue
&nbsp;

Inherited Functions