org.jacorb.idl
Class AnyType

java.lang.Object
  extended by org.jacorb.idl.runtime.symbol
      extended by org.jacorb.idl.IdlSymbol
          extended by org.jacorb.idl.TypeSpec
              extended by org.jacorb.idl.SimpleTypeSpec
                  extended by org.jacorb.idl.BaseType
                      extended by org.jacorb.idl.AnyType

public class AnyType
extends BaseType

Version:
$Id: AnyType.java,v 1.16 2005-10-03 21:13:22 andre.spiegel Exp $
Author:
Gerald Brose

Field Summary
 
Fields inherited from class org.jacorb.idl.TypeSpec
alias, type_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
AnyType(int num)
           
 
Method Summary
 boolean basic()
           
 java.lang.Object clone()
           
 java.lang.String getIDLTypeName()
          get this symbol's IDL type name
 int getTCKind()
          the "kind of TypeCode" for this type
 java.lang.String holderName()
           
 void parse()
          does nothing, will be overwritten in subclasses
 void printExtractResult(java.io.PrintWriter ps, java.lang.String resultname, java.lang.String anyname, java.lang.String resulttype)
          Prints the java-commands to extract the contents of the Any anyname into a variable resultname with the type resulttype
 void printInsertIntoAny(java.io.PrintWriter ps, java.lang.String anyname, java.lang.String varname)
          Prints the java-commands to insert the variable varname into the Any anyname
 java.lang.String printReadExpression(java.lang.String strname)
           
 java.lang.String printWriteStatement(java.lang.String var_name, java.lang.String strname)
           
 java.lang.String toString()
           
 java.lang.String typeName()
           
 TypeSpec typeSpec()
           
 
Methods inherited from class org.jacorb.idl.BaseType
getTypeCodeExpression, id, isBasicName, isSwitchType, print, setEnclosingSymbol, setPackage, typeCodeExpressionSkeleton
 
Methods inherited from class org.jacorb.idl.SimpleTypeSpec
accept
 
Methods inherited from class org.jacorb.idl.TypeSpec
getJavaTypeName, getTypeCodeExpression, helperName, printExtractExpression, printInsertExpression, printReadStatement, set_constr
 
Methods inherited from class org.jacorb.idl.IdlSymbol
addImportedAlias, addImportedName, addImportedName, addImportedNameHolder, deEscapeName, escapeName, generateIncluded, get_token, getEnclosingSymbol, getFullName, 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
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnyType

public AnyType(int num)
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class TypeSpec

typeName

public java.lang.String typeName()
Overrides:
typeName in class BaseType

getIDLTypeName

public java.lang.String getIDLTypeName()
Description copied from class: TypeSpec
get this symbol's IDL type name

Overrides:
getIDLTypeName in class TypeSpec
Returns:
the string "any".

typeSpec

public TypeSpec typeSpec()
Overrides:
typeSpec in class BaseType

basic

public boolean basic()
Overrides:
basic in class BaseType
Returns:
true if this is a basic type

toString

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

holderName

public java.lang.String holderName()
Overrides:
holderName in class TypeSpec

parse

public void parse()
Description copied from class: BaseType
does nothing, will be overwritten in subclasses

Overrides:
parse in class BaseType

getTCKind

public int getTCKind()
Description copied from class: BaseType
the "kind of TypeCode" for this type

Overrides:
getTCKind in class BaseType

printReadExpression

public java.lang.String printReadExpression(java.lang.String strname)
Overrides:
printReadExpression in class TypeSpec

printWriteStatement

public java.lang.String printWriteStatement(java.lang.String var_name,
                                            java.lang.String strname)
Overrides:
printWriteStatement in class TypeSpec

printInsertIntoAny

public void printInsertIntoAny(java.io.PrintWriter ps,
                               java.lang.String anyname,
                               java.lang.String varname)
Description copied from class: TypeSpec
Prints the java-commands to insert the variable varname into the Any anyname

Overrides:
printInsertIntoAny in class TypeSpec
Parameters:
ps - Stream, the commands shall be written to
anyname - Name of the Any into which the variable shall be inserted
varname - Name of the variable which shall be inserted

printExtractResult

public void printExtractResult(java.io.PrintWriter ps,
                               java.lang.String resultname,
                               java.lang.String anyname,
                               java.lang.String resulttype)
Description copied from class: TypeSpec
Prints the java-commands to extract the contents of the Any anyname into a variable resultname with the type resulttype

Overrides:
printExtractResult in class TypeSpec
Parameters:
ps - Stream, the commands shall be written to
resultname - Name of the result variable
anyname - Name of the Any holding the result
resulttype - Type of the result variable