Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

EnumAnnotationValue.java 1.0KB

před 15 roky
před 14 roky
před 15 roky
před 15 roky
před 14 roky
před 15 roky
před 15 roky
před 14 roky
před 15 roky
před 15 roky
před 14 roky
před 15 roky
před 15 roky
před 14 roky
před 15 roky
před 15 roky
1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* *******************************************************************
  2. * Copyright (c) 2006 Contributors
  3. * All rights reserved.
  4. * This program and the accompanying materials are made available
  5. * under the terms of the Eclipse Public License v1.0
  6. * which accompanies this distribution and is available at
  7. * http://www.eclipse.org/legal/epl-v10.html
  8. *
  9. * Contributors:
  10. * Andy Clement IBM initial implementation
  11. * ******************************************************************/
  12. package org.aspectj.weaver;
  13. public class EnumAnnotationValue extends AnnotationValue {
  14. private String typeSignature;
  15. private String value;
  16. public EnumAnnotationValue(String typeSignature, String value) {
  17. super(AnnotationValue.ENUM_CONSTANT);
  18. this.typeSignature = typeSignature;
  19. this.value = value;
  20. }
  21. public String getType() {
  22. return typeSignature;
  23. }
  24. public String stringify() {
  25. return typeSignature+value;
  26. }
  27. public String getValue() {
  28. return value;
  29. }
  30. public String toString() {
  31. return "E(" + typeSignature + " " + value + ")";
  32. }
  33. }