KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > codehaus > dna > tools > metaclass > MockJavaClass


1 /*
2  * Copyright (C) The Spice Group. All rights reserved.
3  *
4  * This software is published under the terms of the Spice
5  * Software License version 1.1, a copy of which has been included
6  * with this distribution in the LICENSE.txt file.
7  */

8 package org.codehaus.dna.tools.metaclass;
9
10 import com.thoughtworks.qdox.model.JavaClass;
11 import com.thoughtworks.qdox.model.JavaSource;
12
13 /**
14  *
15  * @author Peter Donald
16  * @version $Revision: 1.1 $ $Date: 2004/04/18 20:13:48 $
17  */

18 class MockJavaClass
19     extends JavaClass
20 {
21     public MockJavaClass()
22     {
23         super( new MockJavaSource() );
24     }
25
26     public String JavaDoc getFullyQualifiedName()
27     {
28         return getName();
29     }
30
31     public JavaSource getParentSource()
32     {
33         return new MockJavaSource();
34     }
35 }
36
Popular Tags