TypesCriterion

Description

A types criterion is declared nested within a type selector.

Parameters

Attribute Description Required
  Please see selector criterion for additional parameters.  
bytecode Tristate. true indicates the source must not be available (ie the type is available only as bytecode), false indicates that the sourcecode must be available. If this parameter is omitted then no check is made for the presence of sourcecode. No
superselector Reference to a type selector which matches any supertype, recursively. No
packagePattern A string pattern to which the package of the type must match. No
dependingUpon A reference to a type selector which matches any type upon which the type depends. No
qualifiedName The exact, fully qualified name of a type to include No
declares Reference to a selector (type selector, field selector or method selector) which matches any field, method or inner type declared by the type. No
topLevel A tristate. true indicates the type must not be an inner type, false indicates that it must be an inner type. If this parameter is omitted then no check is performed. No

Examples

<TypeSelector description="class which inherits from Exception" name="exceptionTypes" stereotype="exception">
<TypesCriterion superselector="justException"/>
</TypeSelector>

Declares a type selector which accepts exception types

<MethodSelector name="contextMethods">
<MethodsCriterion parameterNamePattern="context"/>
</MethodSelector>

Declares a method selector which selects methods which have one or more parameters named 'context'.

<TypeSelector criteriaAnded="true" description="all types in java.* and javax.* packages" name="javaRuntime" stereotype="JRE">
<TypesCriterion bytecode="true"/>
<TypesCriterion packagePattern="java*"/>
</TypeSelector>

Declares a type selector which selects jre types. In particular, the source must not be available and the type's package must start with "java...".

<TypeSelector description="just java.lang.Object" name="justObject">
<TypesCriterion qualifiedName="java.lang.Object"/>
</TypeSelector>
Declares a type selector which selects just java.lang.Object.