org.jacorb.idl
public class IdlSymbol extends symbol
Version: $Id: IdlSymbol.java,v 1.45 2006/08/03 12:31:17 alphonse.bendt Exp $
Field Summary | |
---|---|
protected IdlSymbol | enclosing_symbol |
protected static char | fileSeparator |
protected boolean | included |
protected boolean | inhibitionFlag |
protected boolean | is_pseudo |
protected String | omg_package_prefix |
String | pack_name |
protected String | _id |
Constructor Summary | |
---|---|
IdlSymbol(int num)
class constructor |
Method Summary | |
---|---|
void | accept(IDLTreeVisitor visitor)
let the visitor pattern do its work... |
void | addImportedAlias(String alias)
Called by derived classes to potentially add the aliasHelper
name to the generated Java class's import list, which is
necessary in case the mapped code is in the unnamed package.
|
void | addImportedName(String name)
Called by derived classes to potentially add the name and the
nameHelper to the generated Java class's import list, which is
necessary in case the mapped code is in the unnamed package.
|
void | addImportedName(String name, TypeSpec type)
Called by derived classes to potentially add the name and the
nameHelper to the generated Java class's import list, which is
necessary in case the mapped code is in the unnamed package.
|
void | addImportedNameHolder(String name)
Called by derived classes to potentially add the name, the
nameHelper and nameHolder to the generated Java class's import
list, which is necessary in case the mapped code is in the
unnamed package.
|
String | deEscapeName() |
void | escapeName()
A number of IDL constructs need to have their names
checked for clashes with name reserved by Java or
the Java Language Mapping. |
protected boolean | generateIncluded()
access to parser state (e.g. options) |
IdlSymbol | getEnclosingSymbol() |
protected String | getFullName(String name)
this method will prepend the
specified name with the omg prefix if
necessary
|
str_token | get_token() |
String | id() |
boolean | isEscaped() |
boolean | is_included()
is this a symbol included from another IDL file?
|
boolean | is_pseudo()
is this a PIDL symbol? |
String | name()
get this symbol's name |
static int | new_num() |
String | omgPrefix() |
void | parse() empty parse |
void | print(PrintWriter ps) |
protected void | printClassComment(String type, String name, PrintWriter ps)printClassComment is used by inherited classes to print
the class comment.
|
void | printIdMethod(PrintWriter ps) |
void | printImport(PrintWriter ps) |
void | setEnclosingSymbol(IdlSymbol s) |
void | setPackage(String s) |
void | setPrintPhaseNames() |
void | set_name(String n) the name of this symbol |
void | set_pseudo() |
void | set_token(str_token i) |
Parameters: alias the name of the alias
Parameters: name
Parameters: name type
Parameters: name
Returns: the full qualified java name
Returns: this symbol's repository Id
Returns: "org.omg." if the symbol has been declared inside a scope with a pragma prefix of "omg.org".
printClassComment
is used by inherited classes to print
the class comment.
Parameters: name a String
value ps a PrintWriter
value