Package org.apache.bcel.classfile

Examples of org.apache.bcel.classfile.EnumElementValue


        CheckReturnValueAnnotation n;

        if (annotationClassName.equals(javax.annotation.CheckReturnValue.class.getName())) {
            ElementValue v = map.get("when");
            if (v instanceof EnumElementValue) {
                EnumElementValue when = (EnumElementValue) v;
                String w = simpleClassName(when.getEnumValueString());
                if (w.equals("NEVER") || w.equals("UNKNOWN")) {
                    n = CheckReturnValueAnnotation.CHECK_RETURN_VALUE_IGNORE;
                } else if (w.equals("MAYBE")) {
                    n = CheckReturnValueAnnotation.CHECK_RETURN_VALUE_MEDIUM_BAD_PRACTICE;
                } else if (w.equals("ALWAYS")) {
View Full Code Here


    public void visitAnnotation(String annotationClass, Map<String, ElementValue> map, boolean runtimeVisible) {

        if (!annotationClass.equals("java.lang.annotation.Retention")) {
            return;
        }
        EnumElementValue v = (EnumElementValue) map.get("value");

        if ("RUNTIME".equals(v.getEnumValueString())) {
            runtimeRetention = true;
        }
    }
View Full Code Here

  @Override
    public ElementValue getElementValue()
  {
    System.err.println("Duplicating value: " + getEnumTypeString() + ":"
        + getEnumValueString());
    return new EnumElementValue(type, typeIdx, valueIdx, cpGen
        .getConstantPool());
  }
View Full Code Here

TOP

Related Classes of org.apache.bcel.classfile.EnumElementValue

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.