public class MethodSignatureVisitor extends TraceSignatureVisitor implements MethodInfo
TraceSignatureVisitor from ASM library.
MethodSignature = ( visitFormalTypeParameter visitClassBound? visitInterfaceBound* )* ( visitParameterType* visitReturnType visitExceptionType* )
| Modifier and Type | Field and Description |
|---|---|
protected int |
access |
protected AnnotationInfo[] |
annotations |
protected AnnotationInfo[][] |
argumentsAnnotation |
protected int |
argumentsCount |
protected jodd.util.collection.IntArrayList |
argumentsOffset |
protected java.lang.StringBuilder |
argumentsOpcodeType |
protected java.util.List<java.lang.String> |
argumentsTypeNames |
protected int |
argumentsWords |
protected java.lang.String |
classname |
protected java.lang.String |
declaredClassName |
protected java.lang.String |
description |
protected boolean |
isStatic |
protected java.lang.String |
methodName |
protected java.lang.String |
rawSignature |
protected jodd.mutable.MutableInteger |
returnOpcodeType |
protected java.lang.StringBuilder |
returnTypeName |
protected java.lang.String |
signature |
protected ClassInfo |
targetClassInfo |
protected boolean |
visitingArgument |
argumentStack, arrayStack, declaration, exceptions, isInterface, returnType| Constructor and Description |
|---|
MethodSignatureVisitor(java.lang.String methodName,
int access,
java.lang.String classname,
java.lang.String description,
java.lang.String signature,
ClassInfo targetClassInfo) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAccessFlags()
Returns method access flags.
|
int |
getAllArgumentsSize()
Returns size of all arguments on stack.
|
AnnotationInfo[] |
getAnnotations()
Returns annotation infos, if there is any.
|
AnnotationInfo[] |
getArgumentAnnotations(int index)
Returns annotations for given argument.
|
int |
getArgumentOffset(int index)
Returns offset of an argument in local variables.
|
char |
getArgumentOpcodeType(int index) |
int |
getArgumentsCount()
Returns number of method arguments.
|
java.lang.String |
getArgumentTypeName(int i)
Returns type name of given argument.
|
ClassInfo |
getClassInfo()
Returns target
class informations. |
java.lang.String |
getClassname()
Returns bytecode-like class name.
|
java.lang.String |
getDeclaredClassName()
Returns declared class name for inner methods or
classname for top-level methods. |
java.lang.String |
getDescription()
Returns bytecode-like method description.
|
java.lang.String |
getMethodName()
Returns method name.
|
java.lang.String |
getRawSignature()
Returns raw bytecode signature or
null if not present. |
char |
getReturnOpcodeType()
Returns return type opcode.
|
java.lang.String |
getReturnTypeName()
Returns type name for return type.
|
java.lang.String |
getSignature()
Returns signature.
|
boolean |
isTopLevelMethod()
Returns
true if method is declared in top-level class. |
void |
setDeclaredClassName(java.lang.String declaredClassName) |
java.lang.String |
toString() |
jodd.asm5.signature.SignatureVisitor |
visitArrayType()
Visits a signature corresponding to an array type.
|
void |
visitBaseType(char descriptor) |
void |
visitClassType(java.lang.String name)
Starts the visit of a signature corresponding to a class or interface type.
|
jodd.asm5.signature.SignatureVisitor |
visitExceptionType() |
jodd.asm5.signature.SignatureVisitor |
visitParameterType() |
jodd.asm5.signature.SignatureVisitor |
visitReturnType() |
void |
visitTypeVariable(java.lang.String name)
Visits a signature corresponding to a type variable.
|
getDeclaration, getExceptions, getExceptionsArray, getReturnType, visitClassBound, visitEnd, visitFormalTypeParameter, visitInnerClassType, visitInterface, visitInterfaceBound, visitSuperclass, visitTypeArgument, visitTypeArgumentclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDeclaration, getExceptions, getReturnTypeprotected int access
protected java.lang.String methodName
protected java.lang.String signature
protected int argumentsCount
protected int argumentsWords
protected jodd.mutable.MutableInteger returnOpcodeType
protected java.lang.StringBuilder returnTypeName
protected java.lang.String classname
protected java.lang.String description
protected java.lang.String rawSignature
protected AnnotationInfo[] annotations
protected boolean visitingArgument
protected java.lang.StringBuilder argumentsOpcodeType
protected jodd.util.collection.IntArrayList argumentsOffset
protected java.util.List<java.lang.String> argumentsTypeNames
protected AnnotationInfo[][] argumentsAnnotation
protected java.lang.String declaredClassName
protected ClassInfo targetClassInfo
protected boolean isStatic
public MethodSignatureVisitor(java.lang.String methodName,
int access,
java.lang.String classname,
java.lang.String description,
java.lang.String signature,
ClassInfo targetClassInfo)
public jodd.asm5.signature.SignatureVisitor visitParameterType()
visitParameterType in class TraceSignatureVisitorpublic jodd.asm5.signature.SignatureVisitor visitReturnType()
visitReturnType in class TraceSignatureVisitorpublic jodd.asm5.signature.SignatureVisitor visitExceptionType()
visitExceptionType in class TraceSignatureVisitorpublic void visitBaseType(char descriptor)
visitBaseType in class TraceSignatureVisitorpublic void visitTypeVariable(java.lang.String name)
visitTypeVariable in class TraceSignatureVisitorpublic jodd.asm5.signature.SignatureVisitor visitArrayType()
visitArrayType in class TraceSignatureVisitorpublic void visitClassType(java.lang.String name)
visitClassType in class TraceSignatureVisitorpublic java.lang.String getSignature()
getSignature in interface MethodInfopublic java.lang.String getRawSignature()
MethodInfonull if not present.getRawSignature in interface MethodInfoMethodInfo.getDescription()public java.lang.String getMethodName()
MethodInfogetMethodName in interface MethodInfopublic int getArgumentsCount()
MethodInfogetArgumentsCount in interface MethodInfopublic char getArgumentOpcodeType(int index)
getArgumentOpcodeType in interface MethodInfoindex - 1-base indexpublic java.lang.String getArgumentTypeName(int i)
MethodInfogetArgumentTypeName in interface MethodInfopublic int getArgumentOffset(int index)
MethodInfogetArgumentOffset in interface MethodInfopublic AnnotationInfo[] getArgumentAnnotations(int index)
MethodInfogetArgumentAnnotations in interface MethodInfopublic int getAllArgumentsSize()
MethodInfolong.getAllArgumentsSize in interface MethodInfopublic char getReturnOpcodeType()
MethodInfogetReturnOpcodeType in interface MethodInfopublic java.lang.String getReturnTypeName()
MethodInfogetReturnTypeName in interface MethodInfopublic int getAccessFlags()
MethodInfogetAccessFlags in interface MethodInfopublic java.lang.String getClassname()
MethodInfogetClassname in interface MethodInfopublic java.lang.String getDescription()
MethodInfogetDescription in interface MethodInfoMethodInfo.getSignature(),
MethodInfo.getRawSignature()public AnnotationInfo[] getAnnotations()
MethodInfogetAnnotations in interface MethodInfopublic java.lang.String getDeclaredClassName()
MethodInfoclassname for top-level methods.getDeclaredClassName in interface MethodInfopublic void setDeclaredClassName(java.lang.String declaredClassName)
public boolean isTopLevelMethod()
MethodInfotrue if method is declared in top-level class.isTopLevelMethod in interface MethodInfopublic ClassInfo getClassInfo()
MethodInfoclass informations.getClassInfo in interface MethodInfopublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2003-2013 Jodd Team