|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.commons.tracing.AspectPattern
public class AspectPattern
This class allows to match aspectJ like patterns with the java internal class representation.
The following limitations / specialties should be considered:
throws is not supported as a part of the matching
signature.new can be used to refer to the
constructor (<init>) and to the class (
<clinit>) initialization.
| Constructor Summary | |
|---|---|
AspectPattern(String in)
Creates new aspect pattern matcher. |
|
| Method Summary | |
|---|---|
String |
getClassRegex()
|
String |
getMethodPattern()
|
int |
getModifiers()
|
String |
getTracerClass()
|
boolean |
matchAccess(int access)
|
boolean |
matchClass(String internalClassname)
|
boolean |
matches(int acc,
String className,
String arguments)
Tests if the given class with the given access flags matches this pattern. |
boolean |
matchMethod(String methodDesc)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AspectPattern(String in)
in - the aspectJ like pattern.| Method Detail |
|---|
public boolean matches(int acc,
String className,
String arguments)
acc - the access flags.className - name of the class in internal representation.arguments - argument string in internal representation.
public int getModifiers()
public String getMethodPattern()
public String getClassRegex()
public boolean matchClass(String internalClassname)
internalClassname -
public boolean matchMethod(String methodDesc)
methodDesc -
public String toString()
toString in class Objectpublic boolean matchAccess(int access)
access -
public String getTracerClass()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||