org.jacorb.idl
Class ScopedName
java.lang.Object
org.jacorb.idl.runtime.symbol
org.jacorb.idl.IdlSymbol
org.jacorb.idl.TypeSpec
org.jacorb.idl.SimpleTypeSpec
org.jacorb.idl.ScopedName
public class ScopedName
- extends SimpleTypeSpec
| Methods inherited from class org.jacorb.idl.IdlSymbol |
addImportedAlias, addImportedName, addImportedName, addImportedNameHolder, deEscapeName, generateIncluded, get_token, getEnclosingSymbol, getFullName, is_included, isEscaped, name, new_num, omgPrefix, printClassComment, printIdMethod, printImport, set_name, set_pseudo, set_token, setPrintPhaseNames |
typeName
public String typeName
ScopedName
public ScopedName(int num)
definePseudoScope
public static void definePseudoScope(String name)
- Interfaces define a new scope, but since we can't do that
in Java, this kind of scope is called a 'pseudo scope' and
is just prepended to the interface name
isPseudoScope
public static boolean isPseudoScope(String name)
unPseudoName
public static String unPseudoName(String name)
- unPseudo transforms scoped names like
module.Interface1.Interface2.Type_name to
module.Interface1Package.Interface2Package.Type_name
enumMap
public static void enumMap(String n,
String m)
- enumerations don't define new scopes in IDL, but their
mapping to Java introduces a new scope by generating
a new class for the enum's type. Thus, enumeration values
have to be additionally scoped in Java.
clone
public Object clone()
- Overrides:
clone in class TypeSpec
setId
public void setId(String _id)
escapeName
public void escapeName()
- Description copied from class:
IdlSymbol
- A number of IDL constructs need to have their names
checked for clashes with name reserved by Java or
the Java Language Mapping.
- Overrides:
escapeName in class IdlSymbol
setEnclosingSymbol
public void setEnclosingSymbol(IdlSymbol s)
- Overrides:
setEnclosingSymbol in class TypeSpec
parse
public void parse()
- Description copied from class:
IdlSymbol
- empty parse
- Overrides:
parse in class TypeSpec
resolved
public boolean resolved()
basic
public boolean basic()
- Overrides:
basic in class TypeSpec
- Returns:
- true if this is a basic type
is_pseudo
public boolean is_pseudo()
- Description copied from class:
IdlSymbol
- is this a PIDL symbol?
- Overrides:
is_pseudo in class IdlSymbol
resolvedTypeSpec
public TypeSpec resolvedTypeSpec()
isEscaped
public boolean isEscaped(String name)
resolvedName
public String resolvedName()
typeSpec
public TypeSpec typeSpec()
- Overrides:
typeSpec in class TypeSpec
setPackage
public void setPackage(String s)
- Overrides:
setPackage in class TypeSpec
typeName
public String typeName()
- Overrides:
typeName in class TypeSpec
- Returns:
- the fully qualified and resolved name in an intermediate
format, i.e. with "Package" suffixes but without potential "omg.org"
scopes
holderName
public String holderName()
- Overrides:
holderName in class TypeSpec
printReadExpression
public String printReadExpression(String streamname)
- Overrides:
printReadExpression in class TypeSpec
printWriteStatement
public String printWriteStatement(String var_name,
String streamname)
- Overrides:
printWriteStatement in class TypeSpec
printInsertExpression
public String printInsertExpression()
- Overrides:
printInsertExpression in class TypeSpec
printExtractExpression
public String printExtractExpression()
- Overrides:
printExtractExpression in class TypeSpec
getTypeCodeExpression
public String getTypeCodeExpression()
- Overrides:
getTypeCodeExpression in class TypeSpec
- Returns:
- a string for an expression of type TypeCode that describes this type
getTypeCodeExpression
public String getTypeCodeExpression(Set knownTypes)
- Overrides:
getTypeCodeExpression in class TypeSpec
id
public String id()
- Overrides:
id in class IdlSymbol
- Returns:
- this symbol's repository Id
toString
public String toString()
- Overrides:
toString in class TypeSpec
print
public void print(PrintWriter ps)
- Overrides:
print in class TypeSpec
IDLName
public String IDLName()
addRecursionScope
public static void addRecursionScope(String typeName)
removeRecursionScope
public static void removeRecursionScope(String typeName)
isRecursionScope
public static boolean isRecursionScope(String typeName)
isSwitchable
public boolean isSwitchable()
Copyright © 2012 JacORB. All Rights Reserved.