SimpleAnnotationAccessor.java
01 /*
02  *  Copyright (c) 1995-2010, The University of Sheffield. See the file
03  *  COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
04  *
05  *  This file is part of GATE (see http://gate.ac.uk/), and is free
06  *  software, licenced under the GNU Library General Public License,
07  *  Version 2, June 1991 (in the distribution as file licence.html,
08  *  and also available at http://gate.ac.uk/gate/licence.html).
09  *
10  *  Eric Sword, 09/03/08
11  *
12  *  $Id$
13  */
14 package gate.jape.constraint;
15 
16 import gate.*;
17 
18 /**
19  * Accessor that returns the annotation itself
20  *
21  @version $Revision$
22  @author esword
23  */
24 public class SimpleAnnotationAccessor extends MetaPropertyAccessor {
25 
26   public Object getValue(Annotation annot, AnnotationSet context) {
27     return annot;
28   }
29 
30   @Override
31   public Object getKey() {
32     return null;
33   }
34 }