You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

EnumAnnotationValue.java 1.1KB

15 years ago
15 years ago
14 years ago
15 years ago
15 years ago
14 years ago
15 years ago
15 years ago
14 years ago
15 years ago
15 years ago
14 years ago
15 years ago
15 years ago
14 years ago
15 years ago
15 years ago
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 v 2.0
  6. * which accompanies this distribution and is available at
  7. * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
  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. }