# Uses of Class
org.apache.bcel.classfile.ElementValue

Packages that use ElementValue
Package
Description
org.apache.bcel.classfile
Classes that describe the structure of a Java class file and a class file parser.
org.apache.bcel.generic
Generic part of the Apache Byte Code Engineering Library (BCEL), classes to dynamically modify class objects and byte code instructions.

- ## Uses of ElementValue in org.apache.bcel.classfile

  Subclasses of ElementValue in org.apache.bcel.classfile
  Modifier and Type
  Class
  Description
  `class`
  `AnnotationElementValue`
  Represents an annotation element value.
  `class`
  `ArrayElementValue`
  Represents an array element value in an annotation.
  `class`
  `ClassElementValue`
  Represents a class element value in an annotation.
  `class`
  `EnumElementValue`
  Represents an enum element value in an annotation.
  `class`
  `SimpleElementValue`
  Represents a simple element value in an annotation.
  Methods in org.apache.bcel.classfile that return ElementValue
  Modifier and Type
  Method
  Description
  `final ElementValue`
  AnnotationDefault.`getDefaultValue()`
  Gets the default value.
  `ElementValue[]`
  ArrayElementValue.`getElementValuesArray()`
  Gets the element values array.
  `final ElementValue`
  ElementValuePair.`getValue()`
  Gets the value.
  `static ElementValue`
  ElementValue.`readElementValue(DataInput input, ConstantPool cpool)`
  Reads an `element_value` as an `ElementValue`.
  `static ElementValue`
  ElementValue.`readElementValue(DataInput input, ConstantPool cpool, int arrayNesting)`
  Reads an `element_value` as an `ElementValue`.
  Methods in org.apache.bcel.classfile with parameters of type ElementValue
  Modifier and Type
  Method
  Description
  `final void`
  AnnotationDefault.`setDefaultValue(ElementValue defaultValue)`
  Sets the default value of this methodinfo's annotation.
  Constructors in org.apache.bcel.classfile with parameters of type ElementValue
  Modifier
  Constructor
  Description
  ``
  `AnnotationDefault(int nameIndex, int length, ElementValue defaultValue, ConstantPool constantPool)`
  Constructs an AnnotationDefault attribute.
  ``
  `ArrayElementValue(int type, ElementValue[] elementValues, ConstantPool cpool)`
  Constructs an ArrayElementValue.
  ``
  `ElementValuePair(int elementNameIndex, ElementValue elementValue, ConstantPool constantPool)`
  Constructs an ElementValuePair.

- ## Uses of ElementValue in org.apache.bcel.generic

  Methods in org.apache.bcel.generic that return ElementValue
  Modifier and Type
  Method
  Description
  `ElementValue`
  AnnotationElementValueGen.`getElementValue()`
  Returns an immutable variant of this AnnotationElementValueGen.
  `ElementValue`
  ArrayElementValueGen.`getElementValue()`
  Return immutable variant of this ArrayElementValueGen.
  `ElementValue`
  ClassElementValueGen.`getElementValue()`
  Return immutable variant of this ClassElementValueGen.
  `abstract ElementValue`
  ElementValueGen.`getElementValue()`
  Subtypes return an immutable variant of the ElementValueGen.
  `ElementValue`
  EnumElementValueGen.`getElementValue()`
  Returns immutable variant of this EnumElementValueGen.
  `ElementValue`
  SimpleElementValueGen.`getElementValue()`
  Return immutable variant
  Methods in org.apache.bcel.generic with parameters of type ElementValue
  Modifier and Type
  Method
  Description
  `static ElementValueGen`
  ElementValueGen.`copy(ElementValue value, ConstantPoolGen cpool, boolean copyPoolEntries)`
  Creates an (modifiable) ElementValueGen copy of an (immutable) ElementValue - constant pool is assumed correct.
  Constructors in org.apache.bcel.generic with parameters of type ElementValue
  Modifier
  Constructor
  Description
  ``
  `ArrayElementValueGen(int type, ElementValue[] elementValues, ConstantPoolGen cpool)`
  Constructs an ArrayElementValueGen.