lucee.Component coldbox.system.aop.Matcher
Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com --- I match class and method names to data in this matcher
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
and
And operator.
|
true
|
false
|
|
any
|
annotation
Matching annotations.
|
true
|
false
|
|
any
|
annotationValue
Matching annotation value.
|
true
|
false
|
|
any
|
any
Any matcher.
|
true
|
false
|
|
any
|
instanceOf
Matching instances.
|
true
|
false
|
|
any
|
mappings
Matching mapping names.
|
true
|
false
|
|
any
|
methods
Mathching method names.
|
true
|
false
|
|
any
|
or
OR operator.
|
true
|
false
|
|
any
|
regex
Matchin regex.
|
true
|
false
|
|
any
|
returns
Matching returns.
|
true
|
false
|
Constructor Summary | |
---|---|
init()
Constructor. |
Method Summary | |
---|---|
any
|
andMatch(any<Matcher> matcher)
AND this matcher with another matcher. |
any
|
annotatedWith(any annotation, [any value])
Matches annotations on components or methods with or without a value. |
any
|
any()
Match against any method name or class path. |
string
|
getAnd()
|
string
|
getAnnotation()
|
string
|
getAnnotationValue()
|
string
|
getAny()
|
string
|
getInstanceOf()
|
string
|
getMappings()
|
any
|
getMemento()
Get the matcher memento. |
string
|
getMethods()
|
string
|
getOr()
|
string
|
getRegex()
|
string
|
getReturns()
|
any
|
instanceOf(any classPath)
Matches against a family of components according to the passed classPath. |
any
|
mappings(any mappings)
Match one, list or array of mapping names. |
boolean
|
matchClass(any target, any<Mapping> mapping)
Matches a class to this matcher according to its criteria. |
private boolean
|
matchClassRules(any target, any<Mapping> mapping)
Go through all the rules in this matcher and match. |
boolean
|
matchMethod(any metadata)
Matches a method to this matcher according to its criteria. |
private boolean
|
matchMethodRules(any metadata)
Go through all the rules in this matcher and match. |
any
|
methods(any methods)
A list, one or an array of methods to explicitly match. |
any
|
orMatch(any<Matcher> matcher)
OR this matcher with another matcher. |
any
|
regex(any regex)
Matches a class path or method name to this regular expression. |
any
|
reset()
Reset the matcher memento to defaults. |
any
|
returns(any type)
Match against return types in methods only. |
any
|
setAnd(any and)
|
any
|
setAnnotation(any annotation)
|
any
|
setAnnotationValue(any annotationValue)
|
any
|
setAny(any any)
|
any
|
setInstanceOf(any instanceOf)
|
any
|
setMappings(any mappings)
|
any
|
setMethods(any methods)
|
any
|
setOr(any or)
|
any
|
setRegex(any regex)
|
any
|
setReturns(any returns)
|
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Constructor
Property Detail |
---|
And operator
access
- publicrequired
- falsereturntype
- anyserializable
- trueMatching annotations
access
- publicrequired
- falsereturntype
- anyserializable
- trueMatching annotation value
access
- publicrequired
- falsereturntype
- anyserializable
- trueAny matcher
access
- publicrequired
- falsereturntype
- anyserializable
- trueMatching instances
access
- publicrequired
- falsereturntype
- anyserializable
- trueMatching mapping names
access
- publicrequired
- falsereturntype
- anyserializable
- trueMathching method names
access
- publicrequired
- falsereturntype
- anyserializable
- trueOR operator
access
- publicrequired
- falsereturntype
- anyserializable
- trueMatchin regex
access
- publicrequired
- falsereturntype
- anyserializable
- trueMatching returns
access
- publicrequired
- falsereturntype
- anyserializable
- trueMethod Detail |
---|
AND this matcher with another matcher
matcher
- The matcher to AND this matcher withMatches annotations on components or methods with or without a value
annotation
- The annotation to discovervalue
- The value of the annotation that must match. OPTIONALMatch against any method name or class path
Get the matcher memento
Matches against a family of components according to the passed classPath. Class Matching Only.
classPath
- The class path to verify instance ofMatch one, list or array of mapping names. Class Matching Only.
mappings
- One, list or array of mappings to matchMatches a class to this matcher according to its criteria
target
- The target to match against tomapping
- The target mapping to match againstGo through all the rules in this matcher and match
target
- The target to match against tomapping
- The target mapping to match againstMatches a method to this matcher according to its criteria
metadata
- The UDF metadata to use for matchingGo through all the rules in this matcher and match
metadata
- The UDF metadata to use for matchingA list, one or an array of methods to explicitly match
methods
- One, list or array of methods to matchOR this matcher with another matcher
matcher
- The matcher to AND this matcher withMatches a class path or method name to this regular expression
regex
- The regular expression to match againstReset the matcher memento to defaults
Match against return types in methods only
type
- The type of return to match against. Only for method matchingand
annotation
annotationValue
any
instanceOf
mappings
methods
or
regex
returns