Interface org.as2lib.env.reflect.TypeMemberFilter

Description

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.

Method Index

filter(), filterSuperTypes()

Inherited from BasicInterface

Method Detail

filter

public 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

typeMemberthe type member to exclude from or to include in the result

Return

true if the typeMember shall be excluded else false

filterSuperTypes

public 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.

Return

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