public class IdlSymbol extends symbol
Modifier and Type | Field and Description |
---|---|
protected String |
_id |
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 |
parse_state, sym
Constructor and Description |
---|
IdlSymbol(int num)
class constructor
|
Modifier and Type | Method and Description |
---|---|
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.
|
str_token |
get_token() |
IdlSymbol |
getEnclosingSymbol() |
protected String |
getFullName(String name)
this method will prepend the
specified name with the omg prefix if
necessary
|
String |
id() |
boolean |
is_included()
is this a symbol included from another IDL file?
Used to determine if code should be generated or not.
|
boolean |
is_pseudo()
is this a PIDL symbol?
|
boolean |
isEscaped() |
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 |
set_name(String n)
the name of this symbol
|
void |
set_pseudo() |
void |
set_token(str_token i) |
void |
setEnclosingSymbol(IdlSymbol s) |
void |
setPackage(String s) |
void |
setPrintPhaseNames() |
public String pack_name
protected boolean is_pseudo
protected boolean included
protected boolean inhibitionFlag
protected String _id
protected IdlSymbol enclosing_symbol
protected String omg_package_prefix
protected static final char fileSeparator
public boolean is_included()
public void set_pseudo()
public boolean is_pseudo()
public void set_token(str_token i)
public str_token get_token()
public String name()
public void escapeName()
public boolean isEscaped()
public String deEscapeName()
public void setPackage(String s)
public void setEnclosingSymbol(IdlSymbol s)
public IdlSymbol getEnclosingSymbol()
public static int new_num()
public void set_name(String n)
public String omgPrefix()
public void parse() throws ParseException
ParseException
public void print(PrintWriter ps)
public void printImport(PrintWriter ps)
public void addImportedAlias(String alias)
alias
- the name of the aliaspublic void addImportedName(String name)
name
- public void addImportedName(String name, TypeSpec type)
name
- type
- public void addImportedNameHolder(String name)
name
- public void setPrintPhaseNames()
public void printIdMethod(PrintWriter ps)
public String id()
protected boolean generateIncluded()
protected String getFullName(String name)
public void accept(IDLTreeVisitor visitor)
protected final void printClassComment(String type, String name, PrintWriter ps)
printClassComment
is used by inherited classes to print
the class comment.name
- a String
valueps
- a PrintWriter
valueCopyright © 2016 JacORB. All rights reserved.