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.model.impl; 18 19 import signature.model.IClassDefinition; 20 import signature.model.IExecutableMember; 21 import signature.model.IParameter; 22 import signature.model.ITypeReference; 23 import signature.model.ITypeVariableDefinition; 24 import signature.model.Modifier; 25 26 import java.io.Serializable; 27 import java.util.List; 28 import java.util.Set; 29 30 @SuppressWarnings("serial") 31 public abstract class SigExecutableMember extends SigAnnotatableElement 32 implements IExecutableMember, Serializable { 33 34 private String name; 35 private List<IParameter> parameters = Uninitialized.unset(); 36 private Set<ITypeReference> exceptions = Uninitialized.unset(); 37 private Set<Modifier> modifiers = Uninitialized.unset(); 38 private List<ITypeVariableDefinition> typeParameters = Uninitialized 39 .unset(); 40 private IClassDefinition declaringClass = Uninitialized.unset(); 41 42 public SigExecutableMember(String name) { 43 this.name = name; 44 } 45 46 public String getName() { 47 return name; 48 } 49 50 public List<IParameter> getParameters() { 51 return parameters; 52 } 53 54 public void setParameters(List<IParameter> parameters) { 55 this.parameters = parameters; 56 } 57 58 public Set<ITypeReference> getExceptions() { 59 return exceptions; 60 } 61 62 public void setExceptions(Set<ITypeReference> exceptions) { 63 this.exceptions = exceptions; 64 } 65 66 public Set<Modifier> getModifiers() { 67 return modifiers; 68 } 69 70 public void setModifiers(Set<Modifier> modifiers) { 71 this.modifiers = modifiers; 72 } 73 74 public List<ITypeVariableDefinition> getTypeParameters() { 75 return typeParameters; 76 } 77 78 public void setTypeParameters( 79 List<ITypeVariableDefinition> typeParameters) { 80 this.typeParameters = typeParameters; 81 } 82 83 public IClassDefinition getDeclaringClass() { 84 return declaringClass; 85 } 86 87 public void setDeclaringClass(IClassDefinition declaringClass) { 88 this.declaringClass = declaringClass; 89 } 90 } 91