TypeInfo
| Kind of class: | interface |
|---|---|
| Inherits from: | PackageMemberInfo < MemberInfo < BasicInterface |
| Implemented by: | |
| Author: | Simon Wacker |
| Classpath: | org.as2lib.env.reflect.TypeInfo |
| File last modified: | Saturday, 09 April 2005, 12:52:36 |
TypeInfo represents a type a ActionScript type, that is either a classor an interface.
Note that it is not possible right now to distinguish between classes and
interfaces at run-time. Therefore are both classes and interfaces represented by
ClassInfo instances. This is going to change as soon is a differentiation
is possible.
Summary
- getType
- getSuperType
- getPackage
- hasMethod
- getMethods
- getMethodsByFlag
- getMethodsByFilter
- getMethod
- getMethodByName
- getMethodByMethod
Instance methods
getMethod
getMethodByMethod
concreteMethod.null will be returned if:
- The passed-in
concreteMethodisnullorundefined. - The method does not exist in the represented type or any super-type.
Note that methods of interfaces cannot be evaluated at run-time. They thus
have no methods for the Reflection API.
for
concreteMethodgetMethodByName
methodName.null will be returned if:
- The passed-in
methodNameisnullorundefined. - The method does not exist in the represented type or any super-type.
Note that methods of interfaces cannot be evaluated at run-time. They thus
have no methods for the Reflection API.
methodNamegetMethods
getMethodsByFilter
MethodInfo instancesthis type and super types' declare that are not filtered/excluded.
The TypeMemberFilter.filter method of the passed-in methodFilter
is invoked for every method to determine whether it shall be contained in the
result.
If the passed-in methodFilter is null or undefined the
result of an invocation of the getMethodsByFlag method with argument
false will be returned.
Note that methods of interfaces cannot be evaluated at run-time. They thus
have no methods for the Reflection API.
MethodInfoinstances
getMethodsByFlag
MethodInfo instancesthis type declares and maybe the ones of the super types.
The super types' methods are included if you pass-in false, null
or undefined and excluded/filtered if you pass-in true. This means
super-types are by default included.
Note that methods of interfaces cannot be evaluated at run-time. They thus
have no methods for the Reflection API.
types' methods
MethodInfo instancesgetPackage
getSuperType
Talking of classes the super-type is the class's super-class, that means the
class it extends and with interfaces it is the interface's super-interface, that
means the interface it extends.
A super-type is not an implemented interface. Note the difference between
extending and implementing.
getType
hasMethod
methodName.Static methods are not filtered by default. This means filterStaticMethods
is by default set to false.
filtered, this means excluded from the search
true if the method exists else false