KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > spoon > support > reflect > reference > CtPackageReferenceImpl


1 package spoon.support.reflect.reference;
2
3 import spoon.reflect.Factory;
4 import spoon.reflect.declaration.CtPackage;
5 import spoon.reflect.reference.CtPackageReference;
6 import spoon.reflect.visitor.CtVisitor;
7
8 public class CtPackageReferenceImpl extends CtReferenceImpl
9         implements CtPackageReference {
10     private static final long serialVersionUID = 1L;
11     public CtPackageReferenceImpl() {
12         super();
13     }
14
15     public CtPackage getDeclaration() {
16         return getFactory().Package().get(getSimpleName());
17     }
18
19     public void accept(CtVisitor visitor) {
20         visitor.visitCtPackageReference(this);
21     }
22
23     Factory factory;
24
25     public Factory getFactory() {
26         return factory;
27     }
28
29     public void setFactory(Factory factory) {
30         this.factory = factory;
31     }
32     
33
34 }
35
Popular Tags