aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.matcher/src/main/java/org/aspectj/weaver/EnumAnnotationValue.java
blob: 533b3c78ae501819d52825ded3ba4f9b8d8433db (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 v 2.0
 * which accompanies this distribution and is available at
 * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
 *
 * 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 + ")";
	}

}