org.jacorb.idl
Class Module

java.lang.Object
  extended by org.jacorb.idl.runtime.symbol
      extended by org.jacorb.idl.IdlSymbol
          extended by org.jacorb.idl.Declaration
              extended by org.jacorb.idl.Module
All Implemented Interfaces:
Scope

public class Module
extends Declaration
implements Scope

Note: a module's name is its package name!


Field Summary
 Definitions spec
           
 
Fields inherited from class org.jacorb.idl.IdlSymbol
_id, enclosing_symbol, fileSeparator, included, inhibitionFlag, is_pseudo, omg_package_prefix, pack_name
 
Fields inherited from class org.jacorb.idl.runtime.symbol
parse_state, sym
 
Constructor Summary
Module(int num)
           
 
Method Summary
 void accept(IDLTreeVisitor visitor)
          let the visitor pattern do its work...
 Definitions getDefinitions()
           
 ScopeData getScopeData()
           
 java.lang.String originalModuleName()
           
 void parse()
          empty parse
 void print(java.io.PrintWriter ps)
           
 void set_included(boolean i)
          used by the lexer to mark this symbol as included from another IDL file
 void setEnclosingSymbol(IdlSymbol s)
           
 void setPackage(java.lang.String s)
           
 void setScopeData(ScopeData data)
           
 java.lang.String toString()
           
 
Methods inherited from class org.jacorb.idl.IdlSymbol
addImportedAlias, addImportedName, addImportedName, addImportedNameHolder, deEscapeName, escapeName, generateIncluded, get_token, getEnclosingSymbol, getFullName, id, is_included, is_pseudo, isEscaped, name, new_num, omgPrefix, printClassComment, printIdMethod, printImport, set_name, set_pseudo, set_token, setPrintPhaseNames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jacorb.idl.Scope
get_token, name
 

Field Detail

spec

public Definitions spec
Constructor Detail

Module

public Module(int num)
Method Detail

setScopeData

public void setScopeData(ScopeData data)
Specified by:
setScopeData in interface Scope

getScopeData

public ScopeData getScopeData()
Specified by:
getScopeData in interface Scope

setPackage

public void setPackage(java.lang.String s)
Overrides:
setPackage in class IdlSymbol

set_included

public void set_included(boolean i)
Description copied from class: IdlSymbol
used by the lexer to mark this symbol as included from another IDL file


setEnclosingSymbol

public void setEnclosingSymbol(IdlSymbol s)
Overrides:
setEnclosingSymbol in class IdlSymbol

parse

public void parse()
Description copied from class: IdlSymbol
empty parse

Overrides:
parse in class IdlSymbol

print

public void print(java.io.PrintWriter ps)
Overrides:
print in class IdlSymbol

originalModuleName

public java.lang.String originalModuleName()
Returns:
the original, unreplaced module name (needed to build a repositoryID that is untouched by the compiler option -i2jpackage

getDefinitions

public Definitions getDefinitions()

accept

public void accept(IDLTreeVisitor visitor)
Description copied from class: IdlSymbol
let the visitor pattern do its work...

Overrides:
accept in class Declaration

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object