01: /*
02: * $Id: TypeRef.java,v 1.2 2002/09/16 08:05:03 jkl Exp $
03: *
04: * Copyright (c) 2002 Njet Communications Ltd. All Rights Reserved.
05: *
06: * Use is subject to license terms, as defined in
07: * Anvil Sofware License, Version 1.1. See LICENSE
08: * file, or http://njet.org/license-1.1.txt
09: */
10: package anvil.script;
11:
12: import anvil.Location;
13: import anvil.ErrorListener;
14:
15: /**
16: * class TypeRef
17: *
18: * @author: Jani Lehtimäki
19: */
20: public class TypeRef extends Ref {
21:
22: protected Type _type = null;
23:
24: public TypeRef(ReferenceResolver resolver) {
25: super (resolver);
26: }
27:
28: public Type getType() {
29: return _type;
30: }
31:
32: public boolean resolve(ErrorListener context) {
33: _type = _resolver.resolveReference(context);
34: _resolved = true;
35: return (_type != null);
36: }
37:
38: }
|