1 /*
2  * Copyright (C) 2009 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package signature.compare.model.impl;
18 
19 import signature.compare.model.IAnnotationDelta;
20 import signature.compare.model.IExecutableMemberDelta;
21 import signature.compare.model.IModifierDelta;
22 import signature.compare.model.IParameterDelta;
23 import signature.compare.model.ITypeReferenceDelta;
24 import signature.compare.model.ITypeVariableDefinitionDelta;
25 import signature.model.IExecutableMember;
26 
27 import java.util.Set;
28 
29 public abstract class SigExecutableMemberDelta<T extends IExecutableMember>
30         extends SigDelta<T> implements IExecutableMemberDelta<T> {
31 
32     private Set<ITypeReferenceDelta<?>> exceptionDeltas;
33     private Set<IModifierDelta> modifierDeltas;
34     private Set<ITypeVariableDefinitionDelta> typeVariableDeltas;
35     private Set<IAnnotationDelta> annotationDeltas;
36     private Set<IParameterDelta> parameterDeltas;
37 
SigExecutableMemberDelta(T from, T to)38     public SigExecutableMemberDelta(T from, T to) {
39         super(from, to);
40     }
41 
getExceptionDeltas()42     public Set<ITypeReferenceDelta<?>> getExceptionDeltas() {
43         return exceptionDeltas;
44     }
45 
setExceptionDeltas( Set<ITypeReferenceDelta<?>> exceptionDeltas)46     public void setExceptionDeltas(
47             Set<ITypeReferenceDelta<?>> exceptionDeltas) {
48         this.exceptionDeltas = exceptionDeltas;
49     }
50 
getModifierDeltas()51     public Set<IModifierDelta> getModifierDeltas() {
52         return modifierDeltas;
53     }
54 
setModifierDeltas(Set<IModifierDelta> modifierDeltas)55     public void setModifierDeltas(Set<IModifierDelta> modifierDeltas) {
56         this.modifierDeltas = modifierDeltas;
57     }
58 
getTypeVariableDeltas()59     public Set<ITypeVariableDefinitionDelta> getTypeVariableDeltas() {
60         return typeVariableDeltas;
61     }
62 
setTypeVariableDeltas( Set<ITypeVariableDefinitionDelta> typeVariableDeltas)63     public void setTypeVariableDeltas(
64             Set<ITypeVariableDefinitionDelta> typeVariableDeltas) {
65         this.typeVariableDeltas = typeVariableDeltas;
66     }
67 
getAnnotationDeltas()68     public Set<IAnnotationDelta> getAnnotationDeltas() {
69         return annotationDeltas;
70     }
71 
setAnnotationDeltas(Set<IAnnotationDelta> annotationDeltas)72     public void setAnnotationDeltas(Set<IAnnotationDelta> annotationDeltas) {
73         this.annotationDeltas = annotationDeltas;
74     }
75 
getParameterDeltas()76     public Set<IParameterDelta> getParameterDeltas() {
77         return parameterDeltas;
78     }
79 
setParameterDeltas(Set<IParameterDelta> parameterDeltas)80     public void setParameterDeltas(Set<IParameterDelta> parameterDeltas) {
81         this.parameterDeltas = parameterDeltas;
82     }
83 }
84