TypeDescription.Generic raw type against the
given matcher for a TypeDescription. As a wildcard does not define an erasure, a runtime
exception is thrown when this matcher is applied to a wildcard.
| Modifier and Type | Field and Description |
|---|---|
| private final ElementMatcher | matcher
The matcher to apply to the raw type of the matched element. |
| Access | Constructor and Description |
|---|---|
| public | ErasureMatcher(ElementMatcher<? super TypeDescription>
The matcher to apply to the raw type. matcher)Creates a new raw type matcher. |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | doMatch(T
The instance to be matched. target)Implements abstract net. null.
|
| public String |
| matcher | back to summary |
|---|---|
| private final ElementMatcher<? super TypeDescription> matcher The matcher to apply to the raw type of the matched element. | |
| ErasureMatcher | back to summary |
|---|---|
| public ErasureMatcher(ElementMatcher<? super TypeDescription> matcher) Creates a new raw type matcher.
| |
| doMatch | back to summary |
|---|---|
| protected boolean doMatch(T target) Implements abstract net. Doc from net. Matches the supplied value if it was found not to be
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |