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