01: /*
02: * This file or a portion of this file is licensed under the terms of
03: * the Globus Toolkit Public License, found in file GTPL, or at
04: * http://www.globus.org/toolkit/download/license.html. This notice must
05: * appear in redistributions of this file, with or without modification.
06: *
07: * Redistributions of this Software, with or without modification, must
08: * reproduce the GTPL in: (1) the Software, or (2) the Documentation or
09: * some other similar material which is provided with the Software (if
10: * any).
11: *
12: * Copyright 1999-2004 University of Chicago and The University of
13: * Southern California. All rights reserved.
14: */
15: package org.griphyn.vdl.parser;
16:
17: /**
18: * Class to pass the name of a regular identifier from scanner to parser.
19: * This class is module-local on purpose.
20: *
21: * @author Jens-S. Vöckler
22: * @version $Revision: 50 $
23: *
24: */
25: class VDLtIdentifier implements VDLtToken {
26: /**
27: * The name of the identifier
28: */
29: private String m_value;
30:
31: /**
32: * Contructs a new identifiert to pass.
33: * @param value is the name of the identifier
34: */
35: public VDLtIdentifier(String value) {
36: this .m_value = value == null ? null : new String(value);
37: }
38:
39: /**
40: * Obtains the current name of the identifier passed.
41: * @return the name of the identifer
42: */
43: public String getValue() {
44: return this.m_value;
45: }
46: }
|