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 int
access
private java.util.Map<java.lang.String,AnnotationInvocationHandler>
annotations
private ASMClassInfo
declaringClass
private java.lang.String
name
private ClassInfo
type
-
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)
ClassInfo
getDeclaringClass()
java.lang.String
getName()
ClassInfo
getType()
boolean
isFinal()
boolean
isPublic()
boolean
isStatic()
java.lang.String
toString()
org.objectweb.asm.AnnotationVisitor
visitAnnotation(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:
getAnnotation
in 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:
visitAnnotation
in classorg.objectweb.asm.FieldVisitor
-
getDeclaringClass
public ClassInfo getDeclaringClass()
- Specified by:
getDeclaringClass
in interfaceFieldInfo
- Returns:
- reference to syntactically-enclosing class
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-