Package org.aspectj.apache.bcel.classfile.annotation

Examples of org.aspectj.apache.bcel.classfile.annotation.ElementValue


          if (countOfType > 1) {
            if (!nvp.getNameString().equals(name)) {
              continue;
            }
          }
          ElementValue o = nvp.getValue();
          if (o.getElementValueType() != elementValueType) {
            continue;
          }
          if (o instanceof EnumElementValue) {
            EnumElementValue v = (EnumElementValue) o;
            String s = v.getEnumTypeString();
View Full Code Here


              if (a.getTypeName().equals(UnresolvedType.AT_RETENTION.getName())) {
                  List values = a.getValues();
                  boolean isRuntime = false;
                  for (Iterator it = values.iterator(); it.hasNext();) {
                        ElementNameValuePair element = (ElementNameValuePair) it.next();
                        ElementValue v = element.getValue();
                        retentionPolicy = v.stringifyValue();
                        return retentionPolicy;
                    }
              }
          }
    }
View Full Code Here

              Annotation a = annotationsOnThisType[i];
              if (a.getTypeName().equals(UnresolvedType.AT_TARGET.getName())) {
                  List values = a.getValues();
                  for (Iterator it = values.iterator(); it.hasNext();) {
                        ElementNameValuePair element = (ElementNameValuePair) it.next();
                        ElementValue v = element.getValue();
                        String targetKind = v.stringifyValue();
                        if (targetKind.equals("ANNOTATION_TYPE")) {
              targetKinds.add(AnnotationTargetKind.ANNOTATION_TYPE);
                        } else if (targetKind.equals("CONSTRUCTOR")) {
              targetKinds.add(AnnotationTargetKind.CONSTRUCTOR);
            } else if (targetKind.equals("FIELD")) {
View Full Code Here

 
  /**
   * Retrieve an immutable version of this ElementNameValuePairGen
   */
  public ElementNameValuePair getElementNameValuePair() {
    ElementValue immutableValue = value.getElementValue();
    return new ElementNameValuePair(nameIdx,immutableValue,cpool.getConstantPool());
  }
View Full Code Here

TOP

Related Classes of org.aspectj.apache.bcel.classfile.annotation.ElementValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.