class ClassMetadataReadingVisitor extends org.objectweb.asm.ClassVisitor implements ClassMetadata
org.springframework.core.type.ClassMetadata
interface.| 构造器和说明 |
|---|
ClassMetadataReadingVisitor() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getClassName()
Return the name of the underlying class.
|
String |
getEnclosingClassName()
Return the name of the enclosing class of the underlying class,
or
null if the underlying class is a top-level class. |
String[] |
getInterfaceNames()
Return the names of all interfaces that the underlying class
implements, or an empty array if there are none.
|
String[] |
getMemberClassNames()
Return the names of all classes declared as members of the class represented by
this ClassMetadata object.
|
String |
getSuperClassName()
Return the name of the super class of the underlying class,
or
null if there is no super class defined. |
boolean |
hasEnclosingClass()
Return whether the underlying class is declared within an enclosing
class (i.e. the underlying class is an inner/nested class or a
local class within a method).
|
boolean |
hasSuperClass()
Return whether the underlying class has a super class.
|
boolean |
isAbstract()
Return whether the underlying class is marked as abstract.
|
boolean |
isAnnotation()
Return whether the underlying class represents an annotation.
|
boolean |
isConcrete()
Return whether the underlying class represents a concrete class,
i.e. neither an interface nor an abstract class.
|
boolean |
isFinal()
Return whether the underlying class is marked as 'final'.
|
boolean |
isIndependent()
Determine whether the underlying class is independent, i.e. whether
it is a top-level class or a nested class (static inner class) that
can be constructed independently from an enclosing class.
|
boolean |
isInterface()
Return whether the underlying class represents an interface.
|
void |
visit(int version,
int access,
String name,
String signature,
String supername,
String[] interfaces) |
org.objectweb.asm.AnnotationVisitor |
visitAnnotation(String desc,
boolean visible) |
void |
visitAttribute(org.objectweb.asm.Attribute attr) |
void |
visitEnd() |
org.objectweb.asm.FieldVisitor |
visitField(int access,
String name,
String desc,
String signature,
Object value) |
void |
visitInnerClass(String name,
String outerName,
String innerName,
int access) |
org.objectweb.asm.MethodVisitor |
visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions) |
void |
visitOuterClass(String owner,
String name,
String desc) |
void |
visitSource(String source,
String debug) |
public void visit(int version,
int access,
String name,
String signature,
String supername,
String[] interfaces)
visit 在类中 org.objectweb.asm.ClassVisitorpublic void visitOuterClass(String owner, String name, String desc)
visitOuterClass 在类中 org.objectweb.asm.ClassVisitorpublic void visitInnerClass(String name, String outerName, String innerName, int access)
visitInnerClass 在类中 org.objectweb.asm.ClassVisitorpublic void visitSource(String source, String debug)
visitSource 在类中 org.objectweb.asm.ClassVisitorpublic org.objectweb.asm.AnnotationVisitor visitAnnotation(String desc, boolean visible)
visitAnnotation 在类中 org.objectweb.asm.ClassVisitorpublic void visitAttribute(org.objectweb.asm.Attribute attr)
visitAttribute 在类中 org.objectweb.asm.ClassVisitorpublic org.objectweb.asm.FieldVisitor visitField(int access,
String name,
String desc,
String signature,
Object value)
visitField 在类中 org.objectweb.asm.ClassVisitorpublic org.objectweb.asm.MethodVisitor visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions)
visitMethod 在类中 org.objectweb.asm.ClassVisitorpublic void visitEnd()
visitEnd 在类中 org.objectweb.asm.ClassVisitorpublic String getClassName()
ClassMetadatagetClassName 在接口中 ClassMetadatapublic boolean isInterface()
ClassMetadataisInterface 在接口中 ClassMetadatapublic boolean isAnnotation()
ClassMetadataisAnnotation 在接口中 ClassMetadatapublic boolean isAbstract()
ClassMetadataisAbstract 在接口中 ClassMetadatapublic boolean isConcrete()
ClassMetadataisConcrete 在接口中 ClassMetadatapublic boolean isFinal()
ClassMetadataisFinal 在接口中 ClassMetadatapublic boolean isIndependent()
ClassMetadataisIndependent 在接口中 ClassMetadatapublic boolean hasEnclosingClass()
ClassMetadataIf this method returns false, then the underlying
class is a top-level class.
hasEnclosingClass 在接口中 ClassMetadatapublic String getEnclosingClassName()
ClassMetadatanull if the underlying class is a top-level class.getEnclosingClassName 在接口中 ClassMetadatapublic boolean hasSuperClass()
ClassMetadatahasSuperClass 在接口中 ClassMetadatapublic String getSuperClassName()
ClassMetadatanull if there is no super class defined.getSuperClassName 在接口中 ClassMetadatapublic String[] getInterfaceNames()
ClassMetadatagetInterfaceNames 在接口中 ClassMetadatapublic String[] getMemberClassNames()
ClassMetadatagetMemberClassNames 在接口中 ClassMetadataCopyright © 2020. All rights reserved.