|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjodd.asm.TraceSignatureVisitor
jodd.proxetta.asm.MethodSignatureVisitor
public class MethodSignatureVisitor
Resolves method signature and holds all information. Uses TraceSignatureVisitor from ASM library.
MethodSignature = ( visitFormalTypeParameter visitClassBound? visitInterfaceBound* )* ( visitParameterType* visitReturnType visitExceptionType* )
| Field Summary | |
|---|---|
protected int |
access
|
protected AnnotationInfo[] |
annotations
|
protected int |
argumentsCount
|
protected jodd.util.collection.IntArrayList |
argumentsOffset
|
protected jodd.util.collection.IntArrayList |
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 int |
hierarchyLevel
|
protected java.lang.String |
methodName
|
protected jodd.mutable.MutableInteger |
returnOpcodeType
|
protected java.lang.StringBuilder |
returnTypeName
|
protected java.lang.String |
signature
|
protected ClassInfo |
targetClassInfo
|
protected boolean |
visitingArgument
|
| Fields inherited from class jodd.asm.TraceSignatureVisitor |
|---|
argumentStack, arrayStack, declaration, exceptions, isInterface, returnType, seenFormalParameter, seenInterface, seenInterfaceBound, seenParameter, separator |
| Fields inherited from interface jodd.proxetta.AsmConsts |
|---|
ACC_ABSTRACT, ACC_ANNOTATION, ACC_BRIDGE, ACC_ENUM, ACC_FINAL, ACC_INTERFACE, ACC_NATIVE, ACC_PRIVATE, ACC_PROTECTED, ACC_PUBLIC, ACC_STATIC, ACC_STRICT, ACC_SUPER, ACC_SYNCHRONIZED, ACC_SYNTHETIC, ACC_TRANSIENT, ACC_VARARGS, ACC_VOLATILE, TYPE_ANNOTATION, TYPE_ARRAY, TYPE_BOOLEAN, TYPE_BYTE, TYPE_CHAR, TYPE_CLASS, TYPE_DOUBLE, TYPE_ENUM, TYPE_FLOAT, TYPE_INT, TYPE_LONG, TYPE_REFERENCE, TYPE_SHORT, TYPE_STRING, TYPE_VOID |
| Fields inherited from interface org.objectweb.asm.signature.SignatureVisitor |
|---|
EXTENDS, INSTANCEOF, SUPER |
| Constructor Summary | |
|---|---|
MethodSignatureVisitor(java.lang.String description)
|
|
MethodSignatureVisitor(java.lang.String methodName,
int access,
java.lang.String classname,
java.lang.String description,
ClassInfo targetClassInfo)
|
|
| Method Summary | |
|---|---|
int |
getAccessFlags()
|
protected int |
getAllArgumentsSize()
|
AnnotationInfo[] |
getAnnotations()
Returns annotation infos, if there is any. |
protected int |
getArgumentOffset(int i)
|
int |
getArgumentOpcodeType(int index)
|
int |
getArgumentsCount()
Returns number of method arguments. |
protected java.lang.String |
getArgumentTypeName(int i)
|
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. |
int |
getHierarchyLevel()
Returns hierarchy level, starting from top class as 1. |
java.lang.String |
getMethodName()
Returns method name. |
int |
getReturnOpcodeType()
|
protected java.lang.String |
getReturnTypeName()
|
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()
|
org.objectweb.asm.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. |
org.objectweb.asm.signature.SignatureVisitor |
visitExceptionType()
|
org.objectweb.asm.signature.SignatureVisitor |
visitParameterType()
|
org.objectweb.asm.signature.SignatureVisitor |
visitReturnType()
|
void |
visitTypeVariable(java.lang.String name)
Visits a signature corresponding to a type variable. |
| Methods inherited from class jodd.asm.TraceSignatureVisitor |
|---|
getDeclaration, getExceptions, getReturnType, visitClassBound, visitEnd, visitFormalTypeParameter, visitInnerClassType, visitInterface, visitInterfaceBound, visitSuperclass, visitTypeArgument, visitTypeArgument |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jodd.proxetta.MethodInfo |
|---|
getDeclaration, getExceptions, getReturnType |
| Field Detail |
|---|
protected 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 AnnotationInfo[] annotations
protected boolean visitingArgument
protected jodd.util.collection.IntArrayList argumentsOpcodeType
protected jodd.util.collection.IntArrayList argumentsOffset
protected java.util.List<java.lang.String> argumentsTypeNames
protected java.lang.String declaredClassName
protected ClassInfo targetClassInfo
protected int hierarchyLevel
| Constructor Detail |
|---|
public MethodSignatureVisitor(java.lang.String description)
public MethodSignatureVisitor(java.lang.String methodName,
int access,
java.lang.String classname,
java.lang.String description,
ClassInfo targetClassInfo)
| Method Detail |
|---|
public org.objectweb.asm.signature.SignatureVisitor visitParameterType()
visitParameterType in interface org.objectweb.asm.signature.SignatureVisitorvisitParameterType in class TraceSignatureVisitorpublic org.objectweb.asm.signature.SignatureVisitor visitReturnType()
visitReturnType in interface org.objectweb.asm.signature.SignatureVisitorvisitReturnType in class TraceSignatureVisitorpublic org.objectweb.asm.signature.SignatureVisitor visitExceptionType()
visitExceptionType in interface org.objectweb.asm.signature.SignatureVisitorvisitExceptionType in class TraceSignatureVisitorpublic void visitBaseType(char descriptor)
visitBaseType in interface org.objectweb.asm.signature.SignatureVisitorvisitBaseType in class TraceSignatureVisitorpublic void visitTypeVariable(java.lang.String name)
visitTypeVariable in interface org.objectweb.asm.signature.SignatureVisitorvisitTypeVariable in class TraceSignatureVisitorpublic org.objectweb.asm.signature.SignatureVisitor visitArrayType()
visitArrayType in interface org.objectweb.asm.signature.SignatureVisitorvisitArrayType in class TraceSignatureVisitorpublic void visitClassType(java.lang.String name)
visitClassType in interface org.objectweb.asm.signature.SignatureVisitorvisitClassType in class TraceSignatureVisitorpublic java.lang.String getSignature()
getSignature in interface MethodInfopublic java.lang.String getMethodName()
MethodInfo
getMethodName in interface MethodInfopublic int getArgumentsCount()
MethodInfo
getArgumentsCount in interface MethodInfopublic int getArgumentOpcodeType(int index)
getArgumentOpcodeType in interface MethodInfoindex - 1-base indexprotected java.lang.String getArgumentTypeName(int i)
protected int getArgumentOffset(int i)
protected int getAllArgumentsSize()
public int getReturnOpcodeType()
getReturnOpcodeType in interface MethodInfoprotected java.lang.String getReturnTypeName()
public int getAccessFlags()
getAccessFlags in interface MethodInfopublic java.lang.String getClassname()
MethodInfo
getClassname in interface MethodInfopublic java.lang.String getDescription()
MethodInfo
getDescription in interface MethodInfopublic AnnotationInfo[] getAnnotations()
MethodInfo
getAnnotations 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 int getHierarchyLevel()
MethodInfo
getHierarchyLevel in interface MethodInfopublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||