Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Rafael Winterhalter
committed
Jul 24, 2015
1 parent
8567c6a
commit 58e242f
Showing
6 changed files
with
50 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
byte-buddy-dep/src/main/java/net/bytebuddy/matcher/DefinedShapeMatcher.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package net.bytebuddy.matcher; | ||
|
||
import net.bytebuddy.description.ByteCodeElement; | ||
|
||
public class DefinedShapeMatcher<T extends ByteCodeElement.TypeDependant<S, ?>, S extends ByteCodeElement.TypeDependant<?, ?>> | ||
extends ElementMatcher.Junction.AbstractBase<T> { | ||
|
||
private final ElementMatcher<? super S> matcher; | ||
|
||
public DefinedShapeMatcher(ElementMatcher<? super S> matcher) { | ||
this.matcher = matcher; | ||
} | ||
|
||
@Override | ||
public boolean matches(T target) { | ||
return matcher.matches(target.asDefined()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
byte-buddy-dep/src/main/java/net/bytebuddy/matcher/FieldShapeMatcher.java
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
byte-buddy-dep/src/main/java/net/bytebuddy/matcher/MethodShapeMatcher.java
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
byte-buddy-dep/src/main/java/net/bytebuddy/matcher/ParameterShapeMatcher.java
This file was deleted.
Oops, something went wrong.