org.jacorb.idl

Class NameTable

public class NameTable extends Object

A table of defined names

Version: $Id: NameTable.java,v 1.27 2006/07/11 14:16:07 nick.cross Exp $

Author: Gerald Brose

Field Summary
static Mapparsed_interfaces
Method Summary
static voiddefine(String name, String kind)
define a name.
static voidinheritFrom(String name, SymbolList ancestors)
copy names declared in an ancestor interface to the local scope
static voidinit()
static booleanisDefined(String name)
check whether name is already defined
static booleanisDefined(String name, String kind)

Field Detail

parsed_interfaces

public static final Map parsed_interfaces

Method Detail

define

public static void define(String name, String kind)
define a name. If it has already been defined in this scope, an exception is thrown

Parameters: name The name to be defined kind the type of name, e.g. "type"

Throws: NameAlreadyDefined if the name is already defined

inheritFrom

public static void inheritFrom(String name, SymbolList ancestors)
copy names declared in an ancestor interface to the local scope

Throws: NameAlreadyDefined

init

public static void init()

isDefined

public static boolean isDefined(String name)
check whether name is already defined

isDefined

public static boolean isDefined(String name, String kind)