Introspection Library API - brombres/Rogue GitHub Wiki

MethodInfo.rogue

class MethodInfo

extends Object

Global Properties

Name Type Description
method_table MethodInfo[]

Global Methods

Signature Return Type Description
call_global_method( call_index:Int32, fnptr:Int64, args:Variant ) Variant args
  A single arg, a @[list], or 'undefined'.
call_object_method( call_index:Int32, fnptr:Int64, context:Variant, args:Variant ) Variant context
  The context object to call the method on.

args
  A single arg, a @[list], or 'undefined'.
create( method_index:Int32, [is_global=false:Logical] ) MethodInfo
init_class()

Properties

Name Type Description
attributes Int64
call_index Int32
is_global Logical
method_index Int32
name String
parameters ParameterInfo[]
return_type_index Int32
signature String
type_context_index Int32

Methods

Signature Return Type Description
init()
call( [context_or_args=undefined:Variant] ) Variant Call this global or object method.

context_or_args
  Global methods: a single arg, a @[list], or 'undefined'.
  Object methods: call context
call( context:Variant, args:Variant ) Variant Call this object method.

context
  The context object to call the method on.

args
  A single arg, a @[list], or 'undefined'.
return_type() TypeInfo
to<<String>>() String
type_context() TypeInfo

class ParameterInfo [compound]

incorporates CommonCompoundMethods

Global Methods

Signature Return Type Description
create( name:String, type_index:Int32 ) ParameterInfo

Properties

Name Type Description
name String
type_index Int32

Methods

Signature Return Type Description
description() String
operator==( other:ParameterInfo ) Logical
parameter_library_name() String
parameter_type_name() String
print_to( buffer:PrintWriter )
to<<Object>>() Boxed<<ParameterInfo>>
to<<String>>() String
to<<Variant>>() Variant
type() TypeInfo
type_info() TypeInfo

PropertyInfo.rogue

class PropertyInfo [compound]

incorporates CommonCompoundMethods

Global Methods

Signature Return Type Description
create( id:Int32, name:String, type_index:Int32, is_global:Logical ) PropertyInfo
get_global_property( id:Int32 ) Variant
get_property( id:Int32, context:Variant ) Variant
set_global_property( id:Int32, new_value:Variant ) <Compiler will insert generated code here>
set_property( id:Int32, context:Variant, new_value:Variant ) <Compiler will insert generated code here>

Properties

Name Type Description
id Int32
is_global Logical
name String
type_index Int32

Methods

Signature Return Type Description
description() String
get_value() Variant
get_value( context:Variant ) Variant
operator==( other:PropertyInfo ) Logical
print_to( buffer:PrintWriter )
property_type_name() String
set_value( context:Variant, new_value:Variant )
set_value( new_value:Variant )
to<<Object>>() Boxed<<PropertyInfo>>
to<<String>>() String
to<<Variant>>() Variant
type() TypeInfo
type_info() TypeInfo

TypeInfo.rogue

class TypeInfo

extends Object

Global Methods

Signature Return Type Description
count() Int32
get( index:Int32 ) TypeInfo
get( name:String ) TypeInfo
iterator() TypeInfoIterator

Properties

Name Type Description
attributes Int
class_data_index Int32
global_methods MethodInfo[]
global_properties PropertyInfo[]
index Int
library_context String
methods MethodInfo[]
name String
properties PropertyInfo[]
scoped_name String

Methods

Signature Return Type Description
init()
base_class() TypeInfo
base_type_count() Int
base_type( i:Int ) TypeInfo
create_object() Object
create_object<<$AsType>>() $AsType
find_global_method( name_or_sig:String, [arg_count=null:Int32?] ) MethodInfo
find_global_property( name:String ) PropertyInfo?
find_method( method_list:MethodInfo[], name_or_sig:String, [arg_count=null:Int32?] ) MethodInfo
find_method( name_or_sig:String, [arg_count=null:Int32?] ) MethodInfo
find_property( name:String ) PropertyInfo?
find_property( property_list:PropertyInfo[], name:String ) PropertyInfo?
instance_of( ancestor:TypeInfo ) Logical
is_aspect() Logical
is_compound() Logical
is_enum() Logical
is_object() Logical
is_primitive() Logical
is_singleton() Logical
scoped_name() String
set_singleton( new_value:Variant )
singleton() Variant
to<<String>>() String

class TypeInfoIterator [compound]

incorporates CommonCompoundMethods

Global Methods

Signature Return Type Description
create( [position=0:Int32] ) TypeInfoIterator

Properties

Name Type Description
position Int32

Methods

Signature Return Type Description
description() String
has_another() Logical
has_another( n:Int32 ) Logical
operator==( other:TypeInfoIterator ) Logical
peek( [lookahead=0:Int32] ) TypeInfo
print_to( buffer:PrintWriter )
read() TypeInfo
read_another() TypeInfo?
to<<Object>>() Boxed<<TypeInfoIterator>>
to<<String>>() String
to<<Variant>>() Variant
to<<TypeInfo[]>>( [result=null:TypeInfo[]] ) TypeInfo[]
to_list( [result=null:TypeInfo[]] ) TypeInfo[]
type_info() TypeInfo
⚠️ **GitHub.com Fallback** ⚠️