APIdia Launch Partner
Top Description Inners Constructors Methods
jdk.internal.reflect

public Class ConstantPool

extends Object
Class Inheritance
Imports
java.lang.reflect.*, java.util.Set

Provides reflective access to the constant pools of classes. Currently this is needed to provide reflective access to annotations but may be used by other internal subsystems in the future.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Class<?>
getClassAt(int index)

private native Class<?>
getClassAt0(int index)

public Class<?>
getClassAtIfLoaded(int index)

private native Class<?>
public int
getClassRefIndexAt(int index)

private native int
public double
getDoubleAt(int index)

private native double
getDoubleAt0(int index)

public Field
getFieldAt(int index)

private native Field
getFieldAt0(int index)

public Field
getFieldAtIfLoaded(int index)

private native Field
public float
getFloatAt(int index)

private native float
getFloatAt0(int index)

public int
getIntAt(int index)

private native int
getIntAt0(int index)

public long
getLongAt(int index)

private native long
getLongAt0(int index)

public String[]
getMemberRefInfoAt(int index)

private native String[]
public Member
getMethodAt(int index)

private native Member
getMethodAt0(int index)

public Member
private native Member
public int
private native int
public String[]
private native String[]
public int
private native int
public String
getStringAt(int index)

private native String
getStringAt0(int index)

public ConstantPool.Tag
getTagAt(int index)

private native byte
getTagAt0(int index)

public String
getUTF8At(int index)

private native String
getUTF8At0(int index)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ConstantPoolback to summary
public ConstantPool()

Method Detail

getClassAtback to summary
public Class<?> getClassAt(int index)
getClassAt0back to summary
private native Class<?> getClassAt0(int index)
getClassAtIfLoadedback to summary
public Class<?> getClassAtIfLoaded(int index)
getClassAtIfLoaded0back to summary
private native Class<?> getClassAtIfLoaded0(int index)
getClassRefIndexAtback to summary
public int getClassRefIndexAt(int index)
getClassRefIndexAt0back to summary
private native int getClassRefIndexAt0(int index)
getDoubleAtback to summary
public double getDoubleAt(int index)
getDoubleAt0back to summary
private native double getDoubleAt0(int index)
getFieldAtback to summary
public Field getFieldAt(int index)
getFieldAt0back to summary
private native Field getFieldAt0(int index)
getFieldAtIfLoadedback to summary
public Field getFieldAtIfLoaded(int index)
getFieldAtIfLoaded0back to summary
private native Field getFieldAtIfLoaded0(int index)
getFloatAtback to summary
public float getFloatAt(int index)
getFloatAt0back to summary
private native float getFloatAt0(int index)
getIntAtback to summary
public int getIntAt(int index)
getIntAt0back to summary
private native int getIntAt0(int index)
getLongAtback to summary
public long getLongAt(int index)
getLongAt0back to summary
private native long getLongAt0(int index)
getMemberRefInfoAtback to summary
public String[] getMemberRefInfoAt(int index)
getMemberRefInfoAt0back to summary
private native String[] getMemberRefInfoAt0(int index)
getMethodAtback to summary
public Member getMethodAt(int index)
getMethodAt0back to summary
private native Member getMethodAt0(int index)
getMethodAtIfLoadedback to summary
public Member getMethodAtIfLoaded(int index)
getMethodAtIfLoaded0back to summary
private native Member getMethodAtIfLoaded0(int index)
getNameAndTypeRefIndexAtback to summary
public int getNameAndTypeRefIndexAt(int index)
getNameAndTypeRefIndexAt0back to summary
private native int getNameAndTypeRefIndexAt0(int index)
getNameAndTypeRefInfoAtback to summary
public String[] getNameAndTypeRefInfoAt(int index)
getNameAndTypeRefInfoAt0back to summary
private native String[] getNameAndTypeRefInfoAt0(int index)
getSizeback to summary
public int getSize()
getSize0back to summary
private native int getSize0()
getStringAtback to summary
public String getStringAt(int index)
getStringAt0back to summary
private native String getStringAt0(int index)
getTagAtback to summary
public ConstantPool.Tag getTagAt(int index)
getTagAt0back to summary
private native byte getTagAt0(int index)
getUTF8Atback to summary
public String getUTF8At(int index)
getUTF8At0back to summary
private native String getUTF8At0(int index)
jdk.internal.reflect back to summary

public final Enum ConstantPool.Tag

extends Enum<ConstantPool.Tag>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final ConstantPool.Tag
public static final ConstantPool.Tag
public static final ConstantPool.Tag
public static final ConstantPool.Tag
public static final ConstantPool.Tag
public static final ConstantPool.Tag
public static final ConstantPool.Tag
public static final ConstantPool.Tag
public static final ConstantPool.Tag
public static final ConstantPool.Tag
public static final ConstantPool.Tag
public static final ConstantPool.Tag
public static final ConstantPool.Tag
public static final ConstantPool.Tag
public static final ConstantPool.Tag
private final int
public static final ConstantPool.Tag

Constructor Summary

AccessConstructor and Description
private
Tag(int tagCode)

Method Summary

Modifier and TypeMethod and Description
public static ConstantPool.Tag
private static ConstantPool.Tag
valueOf(byte v)

public static ConstantPool.Tag[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CLASSback to summary
public static final ConstantPool.Tag CLASS
DOUBLEback to summary
public static final ConstantPool.Tag DOUBLE
DYNAMICback to summary
public static final ConstantPool.Tag DYNAMIC
FIELDREFback to summary
public static final ConstantPool.Tag FIELDREF
FLOATback to summary
public static final ConstantPool.Tag FLOAT
INTEGERback to summary
public static final ConstantPool.Tag INTEGER
INTERFACEMETHODREFback to summary
public static final ConstantPool.Tag INTERFACEMETHODREF
INVALIDback to summary
public static final ConstantPool.Tag INVALID
INVOKEDYNAMICback to summary
public static final ConstantPool.Tag INVOKEDYNAMIC
LONGback to summary
public static final ConstantPool.Tag LONG
METHODHANDLEback to summary
public static final ConstantPool.Tag METHODHANDLE
METHODREFback to summary
public static final ConstantPool.Tag METHODREF
METHODTYPEback to summary
public static final ConstantPool.Tag METHODTYPE
NAMEANDTYPEback to summary
public static final ConstantPool.Tag NAMEANDTYPE
STRINGback to summary
public static final ConstantPool.Tag STRING
tagCodeback to summary
private final int tagCode
UTF8back to summary
public static final ConstantPool.Tag UTF8

Constructor Detail

Tagback to summary
private Tag(int tagCode)

Method Detail

valueOfback to summary
public static ConstantPool.Tag valueOf(String name)
valueOfback to summary
private static ConstantPool.Tag valueOf(byte v)
valuesback to summary
public static ConstantPool.Tag[] values()