Class AnnotationEntryGen

java.lang.Object
org.apache.bcel.generic.AnnotationEntryGen

public class AnnotationEntryGen extends Object
Since:
6.0
  • Constructor Details

    • AnnotationEntryGen

      public AnnotationEntryGen(AnnotationEntry a, ConstantPoolGen cpool, boolean copyPoolEntries)
      Here we are taking a fixed annotation of type Annotation and building a modifiable AnnotationGen object. If the pool passed in is for a different class file, then copyPoolEntries should have been passed as true as that will force us to do a deep copy of the annotation and move the cpool entries across. We need to copy the type and the element name value pairs and the visibility.
    • AnnotationEntryGen

      public AnnotationEntryGen(ObjectType type, List<ElementValuePairGen> elements, boolean vis, ConstantPoolGen cpool)
  • Method Details