Package com.yworks.yguard.obf.classfile
Class AbstractDynamicCpInfo
- java.lang.Object
-
- com.yworks.yguard.obf.classfile.CpInfo
-
- com.yworks.yguard.obf.classfile.AbstractDynamicCpInfo
-
- All Implemented Interfaces:
ClassConstants
- Direct Known Subclasses:
DynamicCpInfo,InvokeDynamicCpInfo
public abstract class AbstractDynamicCpInfo extends CpInfo
Representation of a 'invokedynamic' or 'dynamic' entry in the ConstantPool.
-
-
Field Summary
-
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 Modifier Constructor Description protectedAbstractDynamicCpInfo(int tag)Instantiates a new Abstract dynamic cp info.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBootstrapMethodAttrIndex()Gets bootstrap method attr index.intgetNameAndTypeIndex()Gets name and type index.protected voidmarkNTRefs(ConstantPool pool)Check for NameAndType references to constant pool and mark them; over-ride this in sub-classes.protected voidreadInfo(java.io.DataInput din)Read the 'info' data following the u1tag byte; over-ride this in sub-classes.voidsetNameAndTypeIndex(int index)Sets name and type index.protected voidwriteInfo(java.io.DataOutput dout)Write the 'info' data following the u1tag byte; over-ride this in sub-classes.-
Methods inherited from class com.yworks.yguard.obf.classfile.CpInfo
create, decRefCount, dump, getRefCount, incRefCount, markUtf8Refs, resetRefCount, write
-
-
-
-
Method Detail
-
readInfo
protected void readInfo(java.io.DataInput din) throws java.io.IOExceptionDescription copied from class:CpInfoRead the 'info' data following the u1tag byte; over-ride this in sub-classes.
-
writeInfo
protected void writeInfo(java.io.DataOutput dout) throws java.io.IOExceptionDescription copied from class:CpInfoWrite the 'info' data following the u1tag byte; over-ride this in sub-classes.
-
markNTRefs
protected void markNTRefs(ConstantPool pool)
Description copied from class:CpInfoCheck for NameAndType references to constant pool and mark them; over-ride this in sub-classes.- Overrides:
markNTRefsin classCpInfo- Parameters:
pool- the pool
-
getBootstrapMethodAttrIndex
public int getBootstrapMethodAttrIndex()
Gets bootstrap method attr index.- Returns:
- the bootstrap method attr index
-
getNameAndTypeIndex
public int getNameAndTypeIndex()
Gets name and type index.- Returns:
- the name and type index
-
setNameAndTypeIndex
public void setNameAndTypeIndex(int index)
Sets name and type index.- Parameters:
index- the index
-
-