Access keys

TypeMemberFilter

Kind of class: interface
Inherits from: BasicInterface
Author: Simon Wacker
Classpath: org.as2lib.env.reflect.TypeMemberFilter
File last modified: Saturday, 09 April 2005, 12:52:36
TypeMemberFilter filters the result of searches for type members.

You can pass it for example to the ClassInfo.getMethodsByFilter method
to receive only methods that match your criteria.

Using this filter can mean a performance boost. Refer to the specific filter
and search methods for more information.

Summary

Instance methods
Instance methods inherited from BasicInterface

Instance methods

filter

function filter (
typeMember:TypeMemberInfo) : Boolean
Returns true if the passed-in typeMember shall be filtered, that
means excluded from the result.

This method slows the whole algorithm down because it is invoked for every
found type member that is not excluded by any of the other filter methods. So if
you use it try to keep the checks simple.

Parameters:
typeMember:
the type member to exclude from or to include in the result
Returns:
true if the typeMember shall be excluded else false

filterSuperTypes

function filterSuperTypes (
Void) : Boolean
Returns true if type members of super-types shall be filtered, that means
excluded from the result.

Returning true can mean a performance boost because the algorithm does
then not search for type members of super types.

Returns:
true if super types' type members shall be excluded else false