Package org.openjdk.jmh.generators.asm
Class ASMFieldInfo
- java.lang.Object
-
- org.objectweb.asm.FieldVisitor
-
- org.openjdk.jmh.generators.asm.ASMFieldInfo
-
- All Implemented Interfaces:
FieldInfo,MetadataInfo
class ASMFieldInfo extends org.objectweb.asm.FieldVisitor implements FieldInfo
-
-
Field Summary
Fields Modifier and Type Field Description private intaccessprivate java.util.Map<java.lang.String,AnnotationInvocationHandler>annotationsprivate ASMClassInfodeclaringClassprivate java.lang.Stringnameprivate ClassInfotype
-
Constructor Summary
Constructors Constructor Description ASMFieldInfo(org.objectweb.asm.FieldVisitor fieldVisitor, ASMClassInfo declaringClass, int access, java.lang.String name, ClassInfo type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends java.lang.annotation.Annotation>
TgetAnnotation(java.lang.Class<T> annClass)ClassInfogetDeclaringClass()java.lang.StringgetName()ClassInfogetType()booleanisFinal()booleanisPublic()booleanisStatic()java.lang.StringtoString()org.objectweb.asm.AnnotationVisitorvisitAnnotation(java.lang.String desc, boolean visible)
-
-
-
Field Detail
-
type
private final ClassInfo type
-
declaringClass
private final ASMClassInfo declaringClass
-
access
private final int access
-
name
private final java.lang.String name
-
annotations
private final java.util.Map<java.lang.String,AnnotationInvocationHandler> annotations
-
-
Constructor Detail
-
ASMFieldInfo
public ASMFieldInfo(org.objectweb.asm.FieldVisitor fieldVisitor, ASMClassInfo declaringClass, int access, java.lang.String name, ClassInfo type)
-
-
Method Detail
-
getName
public java.lang.String getName()
-
getType
public ClassInfo getType()
-
isPublic
public boolean isPublic()
-
isStatic
public boolean isStatic()
-
isFinal
public boolean isFinal()
-
getAnnotation
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annClass)
- Specified by:
getAnnotationin interfaceFieldInfo- Type Parameters:
T- annotation type- Parameters:
annClass- annotation class- Returns:
- field-level annotation, if any; null otherwise
-
visitAnnotation
public org.objectweb.asm.AnnotationVisitor visitAnnotation(java.lang.String desc, boolean visible)- Overrides:
visitAnnotationin classorg.objectweb.asm.FieldVisitor
-
getDeclaringClass
public ClassInfo getDeclaringClass()
- Specified by:
getDeclaringClassin interfaceFieldInfo- Returns:
- reference to syntactically-enclosing class
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-