~ubuntu-branches/ubuntu/wily/aspectj/wily-proposed

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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
/* *******************************************************************
 * Copyright (c) 2008 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://eclipse.org/legal/epl-v10.html 
 *
 * ******************************************************************/
package org.aspectj.weaver;

import java.util.Collection;

import org.aspectj.weaver.patterns.Declare;
import org.aspectj.weaver.patterns.PerClause;

/**
 * A delegate that can sit in the ReferenceType instance created for an aspect generated from aop.xml. Only answers the minimal set
 * of information required as the type is processed.
 * 
 * @author Andy Clement
 */
public class GeneratedReferenceTypeDelegate extends AbstractReferenceTypeDelegate {

	private ResolvedType superclass;

	public GeneratedReferenceTypeDelegate(ReferenceType backing) {
		super(backing, false);
	}

	public boolean isAspect() {
		throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
	}

	public boolean isAnnotationStyleAspect() {
		throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
	}

	public boolean isInterface() {
		throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
	}

	public boolean isEnum() {
		throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
	}

	public boolean isAnnotation() {
		throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
	}

	public boolean isAnnotationWithRuntimeRetention() {
		throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
	}

	public boolean isAnonymous() {
		throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
	}

	public boolean isNested() {
		throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
	}

	public ResolvedType getOuterClass() {
		throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
	}

	public String getRetentionPolicy() {
		throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
	}

	public boolean canAnnotationTargetType() {
		throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
	}

	public AnnotationTargetKind[] getAnnotationTargetKinds() {
		throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
	}

	public boolean isGeneric() {
		throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
	}

	public String getDeclaredGenericSignature() {
		throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
	}

	public boolean hasAnnotation(UnresolvedType ofType) {
		throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
	}

	public AnnotationAJ[] getAnnotations() {
		throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
	}

	public ResolvedType[] getAnnotationTypes() {
		throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
	}

	public ResolvedMember[] getDeclaredFields() {
		throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
	}

	public ResolvedType[] getDeclaredInterfaces() {
		return ResolvedType.NONE;
	}

	public ResolvedMember[] getDeclaredMethods() {
		throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
	}

	public ResolvedMember[] getDeclaredPointcuts() {
		throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
	}

	public PerClause getPerClause() {
		throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
	}

	public Collection<Declare> getDeclares() {
		throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
	}

	public Collection<ConcreteTypeMunger> getTypeMungers() {
		throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
	}

	public Collection<ResolvedMember> getPrivilegedAccesses() {
		throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
	}

	public int getModifiers() {
		throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
	}

	public void setSuperclass(ResolvedType superclass) {
		this.superclass = superclass;
	}

	public ResolvedType getSuperclass() {
		return this.superclass;
	}

	public WeaverStateInfo getWeaverState() {
		throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
	}

	public TypeVariable[] getTypeVariables() {
		throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
	}

}