F | |
Fail, Reflector | |
FileInputStream, FileInputStream | |
FileOutputStream, FileOutputStream | |
Find, StringPool | |
find_first_of, Fragment | |
find_last_of, Fragment | |
FindFunction, ObjectType | |
FindProperty, PersistentClass | |
FindString, StringBlock | |
FindType, Type | |
FindType(char*), Type | |
FirstTypeToLoad, Type | |
ForEachKey, MapProperty | |
format, MutableString | |
Fragment | |
Fragment)const, PropertyPath:: | |
FromConstOpaque, Variant | |
FromConstRef, Variant | |
FromIndex, StringBlock | |
FromOpaque, Variant | |
FromRef, Variant | |
FromStaticValue, Variant | |
FromString, Variant | |
FromValue, Variant | |
Function(name), Dynamic | |
Function(protected), Function | |
G | |
GC, JavaScriptContext | |
GetArrayItemRefClass, PropertyPath | |
GetArrayItemType, PropertyPath | |
GetClass, Dynamic | |
GetContext, Context<Type> | |
GetDataType, PropertyPath | |
GetDeserializer, Reflector | |
GetJSContext, JavaScriptContext | |
GetMapKeyType, PropertyPath | |
GetMapRefValueClass, PropertyPath | |
GetMapValueType, PropertyPath | |
GetPropertyType, PersistentClass | |
GetRefClass, PropertyPath | |
GetRuntime, JavaScriptRuntime | |
GetSerializer, Reflector | |
GetType | |
H | |
HasKey, MapProperty | |
I | |
IncRef, JavaScriptContext | |
Index, BlockString | |
IsArray, PropertyPath | |
IsArrayData, PropertyPath | |
IsConstMethod, Function | |
IsData, PropertyPath | |
IsDatum, PropertyPath | |
IsMap, PropertyPath | |
IsMapData, PropertyPath | |
IsMethod, Function | |
IsOpaque, PropertyPath | |
IsRef, PropertyPath | |
ItemType, ArrayProperty | |
J | |
JavaScriptContext, JavaScriptContext | |
K | |
KeyType, MapProperty | |
L | |
length | |
Literal, StringPool | |
Load, StringBlock | |
LoadFile | |
LoadTypes, Type |
Flag an error condition on this Reflector.
void Fail()
FileInputStream( std:: FILE * file ) : mFile(file)
FileOutputStream( std:: FILE * file ) : mFile(file)
SharedString Find( const Fragment & ) const
Finds any of a set of characters in the string.
size_type find_first_of( const Fragment & , size_type pos = 0 ) const
Finds a character in the string, in reverse.
size_type find_last_of( char ch, size_type pos = npos ) const
Finds a function in this class’ FunctionMap or a parent class.
const function::Function *FindFunction( string:: Fragment name ) const
Finds a property in this class’ PropertyMap or a parent class.
const Property *FindProperty( string:: Fragment name ) const
BlockString FindString( const Fragment & ) const
Retrieves a type by name.
static Type *FindType( string::FoundSharedString )
Retrieves a type by name.
static Type *FindType( const char * )
The first class in a NULL terminated chain of classes to load in the next Type::LoadTypes.
static Type *FirstTypeToLoad()
Calls a callback with every key in the map.
virtual void ForEachKey( const void * in, void (*)(const Variant &key, void *ctx), void * ctx = 0 ) const = 0
prints into the string, like printf.
size_type format( const char * format, ... )
Casts this string to a Fragment
operator Fragment() const
Constructs a piece string from a character pointer to NUL terminated data.
Fragment( const char * s )
Casts this string to a Fragment
operator Fragment() const
bool Write( string::Fragment ) const
Builds a variant from an Type *, opaque pair.
static Variant FromConstOpaque( const Type * type, const void * opaque )
Builds a Variant which wraps a const value.
template<typename T> static Variant FromConstRef( const T & value )
BlockString FromIndex( int index ) const
Builds a variant from an Type *, opaque pair.
static Variant FromOpaque( const Type * type, void * opaque )
Builds a Variant which can references a value.
template<typename T> static Variant FromRef( T & value )
Creates a variant holding a copy of the value, without using reflection at all.
template<typename T> static Variant FromStaticValue( const T & value )
Deserializes with the StandardSerializer, at least a Type must be bound.
bool FromString( string::Fragment )
Creates a variant holding a copy of the value.
template<typename T> static Variant FromValue( const T & value )
Returns a Function which represents the named function.
const function::Function *Function( string:: Fragment function_name ) const
Function( const char * name, const Type * object_type, ParameterTypeFun arg_type_fun, const Type * result_type )
Runs the garbage collector.
void GC() const
the type of item pointers in an array of Dynamic *, requires IsArray() and IsRef() to be true.
const Class *GetArrayItemRefClass() const
the type of items in an array, requires IsArray() to be true.
const Type *GetArrayItemType() const
The dynamic Class of the castable.
virtual ClassType *GetClass() const
The current (most recently constructed) active context.
static Type *GetContext()
the data class of the property.
const Type *GetDataType() const
returns the deserializer represented by this Reflector
Deserializer &GetDeserializer() const
Returns the native context pointer.
JSContext *GetJSContext() const
The type of item representing map keys.
const Type *GetMapKeyType() const
The type of item representing map values.
const Class *GetMapRefValueClass() const
The type of item representing map values.
const Type *GetMapValueType() const
const Type *GetPropertyType( const Persistent * , string:: Fragment path ) const
the type of reference of the property.
const Class *GetRefClass() const
JSRuntime *GetRuntime() const
returns the serializer represented by this Reflector
Serializer &GetSerializer() const
retrieves the type of this path as an enum.
NormalizedType GetType() const
Check the type of this variant.
const Type *GetType() const
Checks if the map has an element for the given key.
virtual bool HasKey( const void * in, const Variant & key ) const = 0
Increments the reference count on a pointer that the java runtime knows about.
template<typename T> void IncRef( T * object ) const
int Index() const
check if this path result is an array property.
bool IsArray() const
check if this path result is an array data property.
bool IsArrayData() const
Checks if this function can be called with a const “this” pointer.
virtual bool IsConstMethod() const = 0
check if this path result is a Data property (not ref, array, map...)
bool IsData() const
check if this path result is not an array or map, (may be Data or Ref).
bool IsDatum() const
check if this path result is a map property.
bool IsMap() const
check if this path result is a map data property.
bool IsMapData() const
Checks if this function is a member function, and needs a “this” pointer to be called.
bool IsMethod() const
check if this path result is an Opaque property (just a Property::Serialize function with no associated structure or Type.
bool IsOpaque() const
check if this path result is a Ref, ArrayRef, or MapRef property
bool IsRef() const
returns the type of the items in the property.
virtual Type *ItemType() const = 0
JavaScriptContext( const JavaScriptRuntime & = JavaScriptRuntime::SharedRuntime() )
Retrieves the type of keys represented by this map property.
virtual const Type *KeyType() const = 0
the number of non-nul chars in this string.
size_type length() const
the current length of the string.
size_type length() const
SharedString Literal( const ConstString & )
Copies the data into the StringBlock.
void Load( const Fragment & data )
Saves “data” into a file using a StandardDeserializer.
template<typename Type> bool LoadFile( Type & data, string:: ConstString filename )
Initializes all types which have been static initialized.
static Type *LoadTypes()