Interface org.as2lib.env.reflect.PackageMemberFilter

Description

PackageMemberInfo filters the result of searches for package members, that are types and packages.

You can pass it for example to the PackageInfo#getMemberClasses or PackageInfo#getMemberPackages methods to receive only classes or packages 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(), filterSubPackages()

Inherited from BasicInterface

Method Detail

filter

public function filter(packageMember:PackageMemberInfo):Boolean

Returns true if the passed-in packageMember shall be filtered, that means excluded from the result.

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

Parameters

packageMemberthe package member to exclude from or to include in the result

Return

true if the packageMember shall be excluded else false

filterSubPackages

public function filterSubPackages(Void):Boolean

Returns true if package members of sub-packages shall be filtered, that means excluded from the result.

Returning true can mean a performance boost because the algorithm does then not search for package members of sub-packages.

Return

true if sub-packages' package members shall be excluded else false