01: /*
02: * $Id: Type.java,v 1.7 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.doc.Doc;
13: import anvil.codec.ConstantPool;
14:
15: /**
16: * interface Type
17: *
18: * @author: Jani Lehtimäki
19: */
20: public interface Type {
21:
22: public static final String[] TYPE_NAMES = { "", "module",
23: "namespace", "class", "interface", "namespace",
24: "namespace", "function", "method", "prototype",
25: "constructor", "constant", "variable", "member",
26: "variable", "variable", "import", };
27:
28: public static final int MODULE = 1;
29: public static final int NAMESPACE = 2;
30: public static final int CLASS = 3;
31: public static final int INTERFACE = 4;
32: public static final int GLOBAL_NAMESPACE = 5;
33: public static final int SYSTEM_NAMESPACE = 6;
34: public static final int FUNCTION = 7;
35: public static final int METHOD = 8;
36: public static final int INTERFACE_METHOD = 9;
37: public static final int CONSTRUCTOR = 10;
38: public static final int CONSTANT_VARIABLE = 11;
39: public static final int STATIC_VARIABLE = 12;
40: public static final int MEMBER_VARIABLE = 13;
41: public static final int FUNCTION_PARAMETER = 14;
42: public static final int LOCAL_VARIABLE = 15;
43: public static final int IMPORT = 16;
44:
45: public String getName();
46:
47: public String getQualifiedName();
48:
49: public int getType();
50:
51: public Scope getParent();
52:
53: public Doc getDocument();
54:
55: public int getTypeRef(ConstantPool pool);
56:
57: }
|