org.aspectj.org.eclipse.jdt.internal.core.util
Class ConstantPoolEntry2

java.lang.Object
  extended by org.aspectj.org.eclipse.jdt.internal.core.util.ConstantPoolEntry
      extended by org.aspectj.org.eclipse.jdt.internal.core.util.ConstantPoolEntry2
All Implemented Interfaces:
IConstantPoolEntry, IConstantPoolEntry2

public class ConstantPoolEntry2
extends ConstantPoolEntry
implements IConstantPoolEntry2

Default implementation of IConstantPoolEntry

Since:
2.0

Constructor Summary
ConstantPoolEntry2()
           
 
Method Summary
 int getBootstrapMethodAttributeIndex()
          Returns the bootstrap method attribute index.
 int getDescriptorIndex()
          Returns the descriptor index.
 int getReferenceIndex()
          Returns the reference index.
 int getReferenceKind()
          Returns the reference kind.
 void reset()
           
 void setBootstrapMethodAttributeIndex(int bootstrapMethodAttributeIndex)
           
 void setDescriptorIndex(int descriptorIndex)
           
 void setReferenceIndex(int referenceIndex)
           
 void setReferenceKind(int referenceKind)
           
 
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.util.ConstantPoolEntry
getClassIndex, getClassInfoName, getClassInfoNameIndex, getClassName, getDoubleValue, getFieldDescriptor, getFieldName, getFloatValue, getIntegerValue, getKind, getLongValue, getMethodDescriptor, getMethodName, getNameAndTypeDescriptorIndex, getNameAndTypeIndex, getNameAndTypeInfoDescriptorIndex, getNameAndTypeInfoNameIndex, getNameAndTypeNameIndex, getStringIndex, getStringValue, getUtf8Length, getUtf8Value, setClassIndex, setClassInfoName, setClassInfoNameIndex, setClassName, setDoubleValue, setFieldDescriptor, setFieldName, setFloatValue, setIntegerValue, setKind, setLongValue, setMethodDescriptor, setMethodName, setNameAndTypeDescriptorIndex, setNameAndTypeIndex, setNameAndTypeNameIndex, setStringIndex, setStringValue, setUtf8Length, setUtf8Value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.aspectj.org.eclipse.jdt.core.util.IConstantPoolEntry
getClassIndex, getClassInfoName, getClassInfoNameIndex, getClassName, getDoubleValue, getFieldDescriptor, getFieldName, getFloatValue, getIntegerValue, getKind, getLongValue, getMethodDescriptor, getMethodName, getNameAndTypeIndex, getNameAndTypeInfoDescriptorIndex, getNameAndTypeInfoNameIndex, getStringIndex, getStringValue, getUtf8Length, getUtf8Value
 

Constructor Detail

ConstantPoolEntry2

public ConstantPoolEntry2()
Method Detail

getDescriptorIndex

public int getDescriptorIndex()
Description copied from interface: IConstantPoolEntry2
Returns the descriptor index. This value is set only when decoding a MethodType entry. The value is unspecified otherwise. The corresponding UTF8 value can be retrieved by using IConstantPoolEntry.getMethodDescriptor().

Specified by:
getDescriptorIndex in interface IConstantPoolEntry2
Returns:
the descriptor index. This value is set only when decoding a MethodType entry.
See Also:
IConstantPoolConstant.CONSTANT_MethodType

getReferenceKind

public int getReferenceKind()
Description copied from interface: IConstantPoolEntry2
Returns the reference kind. This value is set only when decoding a MethodHandle entry. The value is unspecified otherwise.

Specified by:
getReferenceKind in interface IConstantPoolEntry2
Returns:
the reference kind. This value is set only when decoding a MethodHandle entry.
See Also:
IConstantPoolConstant.CONSTANT_MethodHandle

getReferenceIndex

public int getReferenceIndex()
Description copied from interface: IConstantPoolEntry2
Returns the reference index. This value is set only when decoding a MethodHandle entry. The value is unspecified otherwise.

Specified by:
getReferenceIndex in interface IConstantPoolEntry2
Returns:
the reference kind. This value is set only when decoding a MethodHandle entry.
See Also:
IConstantPoolConstant.CONSTANT_MethodHandle

getBootstrapMethodAttributeIndex

public int getBootstrapMethodAttributeIndex()
Description copied from interface: IConstantPoolEntry2
Returns the bootstrap method attribute index. This value is set only when decoding a InvokeDynamic entry. The value is unspecified otherwise.

Specified by:
getBootstrapMethodAttributeIndex in interface IConstantPoolEntry2
Returns:
the reference kind. This value is set only when decoding a MethodHandle entry.
See Also:
IConstantPoolConstant.CONSTANT_InvokeDynamic

setDescriptorIndex

public void setDescriptorIndex(int descriptorIndex)

setReferenceKind

public void setReferenceKind(int referenceKind)

setReferenceIndex

public void setReferenceIndex(int referenceIndex)

setBootstrapMethodAttributeIndex

public void setBootstrapMethodAttributeIndex(int bootstrapMethodAttributeIndex)

reset

public void reset()
Overrides:
reset in class ConstantPoolEntry