Package com.yworks.yguard.obf.classfile
Class RuntimeVisibleAnnotationsAttrInfo
- java.lang.Object
-
- com.yworks.yguard.obf.classfile.AttrInfo
-
- com.yworks.yguard.obf.classfile.RuntimeVisibleAnnotationsAttrInfo
-
- All Implemented Interfaces:
ClassConstants
- Direct Known Subclasses:
RuntimeInvisibleAnnotationsAttrInfo
public class RuntimeVisibleAnnotationsAttrInfo extends AttrInfo
The type Runtime visible annotations attr info.
-
-
Field Summary
-
Fields inherited from class com.yworks.yguard.obf.classfile.AttrInfo
CONSTANT_FIELD_SIZE, owner, u4attrLength
-
Fields inherited from interface com.yworks.yguard.obf.classfile.ClassConstants
ACC_ABSTRACT, ACC_ANNOTATION, ACC_BRIDGE, ACC_ENUM, ACC_FINAL, ACC_INTERFACE, ACC_NATIVE, ACC_PRIVATE, ACC_PROTECTED, ACC_PUBLIC, ACC_STATIC, ACC_SUPER, ACC_SYNCHRONIZED, ACC_SYNTHETIC, ACC_TRANSIENT, ACC_VARARGS, ACC_VOLATILE, ATTR_AnnotationDefault, ATTR_BootstrapMethods, ATTR_Bridge, ATTR_Code, ATTR_ConstantValue, ATTR_Deprecated, ATTR_EnclosingMethod, ATTR_Enum, ATTR_Exceptions, ATTR_InnerClasses, ATTR_LineNumberTable, ATTR_LocalVariableTable, ATTR_LocalVariableTypeTable, ATTR_MethodParameters, ATTR_Module, ATTR_ModuleMainClass, ATTR_ModulePackages, ATTR_NestHost, ATTR_NestMembers, ATTR_PermittedSubclasses, ATTR_Record, ATTR_RuntimeInvisibleAnnotations, ATTR_RuntimeInvisibleParameterAnnotations, ATTR_RuntimeInvisibleTypeAnnotations, ATTR_RuntimeVisibleAnnotations, ATTR_RuntimeVisibleParameterAnnotations, ATTR_RuntimeVisibleTypeAnnotations, ATTR_Signature, ATTR_SourceDebug, ATTR_SourceDebugExtension, ATTR_SourceFile, ATTR_StackMapTable, ATTR_Synthetic, ATTR_Unknown, ATTR_Varargs, CONSTANT_Class, CONSTANT_Double, CONSTANT_Dynamic, CONSTANT_Fieldref, CONSTANT_Float, CONSTANT_Integer, CONSTANT_InterfaceMethodref, CONSTANT_InvokeDynamic, CONSTANT_Long, CONSTANT_MethodHandle, CONSTANT_Methodref, CONSTANT_MethodType, CONSTANT_Module, CONSTANT_NameAndType, CONSTANT_Package, CONSTANT_String, CONSTANT_Utf8, KNOWN_ATTRS, MAGIC, MAJOR_VERSION, MINOR_VERSION_MAX, REF_getField, REF_getStatic, REF_invokeInterface, REF_invokeSpecial, REF_invokeStatic, REF_invokeVirtual, REF_newInvokeSpecial, REF_putField, REF_putStatic, REQUIRED_ATTRS
-
-
Constructor Summary
Constructors Constructor Description RuntimeVisibleAnnotationsAttrInfo(ClassFile cf, int attrNameIndex, int attrLength)Creates a new instance of RuntimeVisibleAnnotationsAttrInfo
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotationInfo[]getAnnotations()Get annotations annotation info [ ].protected java.lang.StringgetAttrName()Return the String name of the attribute; over-ride this in sub-classes.ClassFilegetOwner()Get owner class file.intgetU2TypeIndex(int annotationIndex)Get u 2 type index int.protected voidmarkUtf8RefsInInfo(ConstantPool pool)Check for Utf8 references in the 'info' data to the constant pool and mark them; over-ride this in sub-classes.protected voidreadInfo(java.io.DataInput din)Read the data following the header; over-ride this in sub-classes.voidwriteInfo(java.io.DataOutput dout)Export data following the header to a DataOutput stream; over-ride this in sub-classes.-
Methods inherited from class com.yworks.yguard.obf.classfile.AttrInfo
create, getAttrInfoLength, getAttrNameIndex, markUtf8Refs, toString, trimAttrsExcept, write
-
-
-
-
Constructor Detail
-
RuntimeVisibleAnnotationsAttrInfo
public RuntimeVisibleAnnotationsAttrInfo(ClassFile cf, int attrNameIndex, int attrLength)
Creates a new instance of RuntimeVisibleAnnotationsAttrInfo- Parameters:
cf- the cfattrNameIndex- the attr name indexattrLength- the attr length
-
-
Method Detail
-
getAttrName
protected java.lang.String getAttrName()
Description copied from class:AttrInfoReturn the String name of the attribute; over-ride this in sub-classes.- Overrides:
getAttrNamein classAttrInfo- Returns:
- the attr name
-
getAnnotations
public AnnotationInfo[] getAnnotations()
Get annotations annotation info [ ].- Returns:
- the annotation info [ ]
-
getOwner
public ClassFile getOwner()
Get owner class file.- Returns:
- the class file
-
getU2TypeIndex
public int getU2TypeIndex(int annotationIndex)
Get u 2 type index int.- Parameters:
annotationIndex- the annotation index- Returns:
- the int
-
writeInfo
public void writeInfo(java.io.DataOutput dout) throws java.io.IOExceptionDescription copied from class:AttrInfoExport data following the header to a DataOutput stream; over-ride this in sub-classes.
-
readInfo
protected void readInfo(java.io.DataInput din) throws java.io.IOExceptionDescription copied from class:AttrInfoRead the data following the header; over-ride this in sub-classes.
-
markUtf8RefsInInfo
protected void markUtf8RefsInInfo(ConstantPool pool)
Description copied from class:AttrInfoCheck for Utf8 references in the 'info' data to the constant pool and mark them; over-ride this in sub-classes.- Overrides:
markUtf8RefsInInfoin classAttrInfo- Parameters:
pool- the pool
-
-