1   /*
2    * Copyright (c) 2003-2008, by Henrik Arro and Contributors
3    *
4    * This file is part of JSeq, a tool to automatically create
5    * sequence diagrams by tracing program execution.
6    *
7    * See <http://jseq.sourceforge.net> for more information.
8    *
9    * JSeq is free software: you can redistribute it and/or modify
10   * it under the terms of the GNU Lesser General Public License as
11   * published by the Free Software Foundation, either version 3 of
12   * the License, or (at your option) any later version.
13   *
14   * JSeq is distributed in the hope that it will be useful,
15   * but WITHOUT ANY WARRANTY; without even the implied warranty of
16   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17   * GNU Lesser General Public License for more details.
18   *
19   * You should have received a copy of the GNU Lesser General Public License
20   * along with JSeq. If not, see <http://www.gnu.org/licenses/>.
21   */
22  
23  package th.co.edge.jseq;
24  
25  import java.util.List;
26  
27  import com.sun.jdi.AbsentInformationException;
28  import com.sun.jdi.ClassNotLoadedException;
29  import com.sun.jdi.LocalVariable;
30  import com.sun.jdi.Location;
31  import com.sun.jdi.Method;
32  import com.sun.jdi.ReferenceType;
33  import com.sun.jdi.Type;
34  import com.sun.jdi.VirtualMachine;
35  
36  public class TestMethodImpl implements Method {
37      private String name;
38      private boolean isConstructor;
39      
40      public TestMethodImpl(String name) {
41          this(name, false);
42      }
43      
44      public TestMethodImpl(String name, boolean isConstructor) {
45          this.name = name;
46          this.isConstructor = isConstructor;
47      }
48      
49      @Override
50      public List<Location> allLineLocations() throws AbsentInformationException {
51          return null;
52      }
53  
54      @Override
55      public List<Location> allLineLocations(String arg0, String arg1)
56              throws AbsentInformationException {
57          return null;
58      }
59  
60      @Override
61      public List<String> argumentTypeNames() {
62          return null;
63      }
64  
65      @Override
66      public List<Type> argumentTypes() throws ClassNotLoadedException {
67          return null;
68      }
69  
70      @Override
71      public List<LocalVariable> arguments() throws AbsentInformationException {
72          return null;
73      }
74  
75      @Override
76      public byte[] bytecodes() {
77          return null;
78      }
79  
80      @Override
81      public boolean isAbstract() {
82          return false;
83      }
84  
85      @Override
86      public boolean isBridge() {
87          return false;
88      }
89  
90      @Override
91      public boolean isConstructor() {
92          return isConstructor;
93      }
94  
95      @Override
96      public boolean isNative() {
97          return false;
98      }
99  
100     @Override
101     public boolean isObsolete() {
102         return false;
103     }
104 
105     @Override
106     public boolean isStaticInitializer() {
107         return false;
108     }
109 
110     @Override
111     public boolean isSynchronized() {
112         return false;
113     }
114 
115     @Override
116     public boolean isVarArgs() {
117         return false;
118     }
119 
120     @Override
121     public Location location() {
122         return null;
123     }
124 
125     @Override
126     public Location locationOfCodeIndex(long arg0) {
127         return null;
128     }
129 
130     @Override
131     public List<Location> locationsOfLine(int arg0)
132             throws AbsentInformationException {
133         return null;
134     }
135 
136     @Override
137     public List<Location> locationsOfLine(String arg0, String arg1, int arg2)
138             throws AbsentInformationException {
139         return null;
140     }
141 
142     @Override
143     public Type returnType() throws ClassNotLoadedException {
144         return null;
145     }
146 
147     @Override
148     public String returnTypeName() {
149         return null;
150     }
151 
152     @Override
153     public List<LocalVariable> variables() throws AbsentInformationException {
154         return null;
155     }
156 
157     @Override
158     public List<LocalVariable> variablesByName(String arg0)
159             throws AbsentInformationException {
160         return null;
161     }
162 
163     @Override
164     public ReferenceType declaringType() {
165         return null;
166     }
167 
168     @Override
169     public String genericSignature() {
170         return null;
171     }
172 
173     @Override
174     public boolean isFinal() {
175         return false;
176     }
177 
178     @Override
179     public boolean isStatic() {
180         return false;
181     }
182 
183     @Override
184     public boolean isSynthetic() {
185         return false;
186     }
187 
188     @Override
189     public String name() {
190         return name;
191     }
192 
193     @Override
194     public String signature() {
195         return null;
196     }
197 
198     @Override
199     public VirtualMachine virtualMachine() {
200         return null;
201     }
202 
203     @Override
204     public boolean isPackagePrivate() {
205         return false;
206     }
207 
208     @Override
209     public boolean isPrivate() {
210         return false;
211     }
212 
213     @Override
214     public boolean isProtected() {
215         return false;
216     }
217 
218     @Override
219     public boolean isPublic() {
220         return false;
221     }
222 
223     @Override
224     public int modifiers() {
225         return 0;
226     }
227 
228     @Override
229     public int compareTo(Method o) {
230         return 0;
231     }
232 
233 }