org.jacorb.idl

Class TypeSpec

public class TypeSpec extends IdlSymbol

Version: $Id: TypeSpec.java,v 1.26 2007/02/06 22:50:35 andre.spiegel Exp $

Author: Gerald Brose

Field Summary
protected Stringalias
TypeSpectype_spec
Constructor Summary
TypeSpec(int num)
Method Summary
voidaccept(IDLTreeVisitor visitor)
booleanbasic()
Objectclone()
StringgetIDLTypeName()
get this symbol's IDL type name
StringgetJavaTypeName()
get this types's mapped Java name
intgetTCKind()
StringgetTypeCodeExpression(Set knownTypes)
StringgetTypeCodeExpression()
StringhelperName()
StringholderName()
voidparse()
voidprint(PrintWriter ps)
StringprintExtractExpression()
voidprintExtractResult(PrintWriter ps, String resultname, String anyname, String resulttype)
Prints the java-commands to extract the contents of the Any anyname into a variable resultname with the type resulttype
StringprintInsertExpression()
voidprintInsertIntoAny(PrintWriter ps, String anyname, String varname)
Prints the java-commands to insert the variable varname into the Any anyname
StringprintReadExpression(String streamname)
StringprintReadStatement(String var_name, String streamname)
StringprintWriteStatement(String var_name, String streamname)
voidsetEnclosingSymbol(IdlSymbol s)
voidsetPackage(String s)
voidset_constr(TypeDeclaration td)
StringtoString()
StringtypeName()
TypeSpectypeSpec()

Field Detail

alias

protected String alias

type_spec

public TypeSpec type_spec

Constructor Detail

TypeSpec

public TypeSpec(int num)

Method Detail

accept

public void accept(IDLTreeVisitor visitor)

basic

public boolean basic()

Returns: true if this is a basic type

clone

public Object clone()

getIDLTypeName

public String getIDLTypeName()
get this symbol's IDL type name

getJavaTypeName

public String getJavaTypeName()
get this types's mapped Java name

getTCKind

public int getTCKind()

getTypeCodeExpression

public String getTypeCodeExpression(Set knownTypes)

getTypeCodeExpression

public String getTypeCodeExpression()

Returns: a string for an expression of type TypeCode that describes this type

helperName

public String helperName()

holderName

public String holderName()

parse

public void parse()

print

public void print(PrintWriter ps)

printExtractExpression

public String printExtractExpression()

printExtractResult

public void printExtractResult(PrintWriter ps, String resultname, String anyname, String resulttype)
Prints the java-commands to extract the contents of the Any anyname into a variable resultname with the type resulttype

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

printInsertExpression

public String printInsertExpression()

printInsertIntoAny

public void printInsertIntoAny(PrintWriter ps, String anyname, String varname)
Prints the java-commands to insert the variable varname into the Any anyname

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

printReadExpression

public String printReadExpression(String streamname)

printReadStatement

public String printReadStatement(String var_name, String streamname)

printWriteStatement

public String printWriteStatement(String var_name, String streamname)

setEnclosingSymbol

public void setEnclosingSymbol(IdlSymbol s)

setPackage

public void setPackage(String s)

set_constr

public void set_constr(TypeDeclaration td)

toString

public String toString()

typeName

public String typeName()

Deprecated: use either getJavaTypeName() or getIDLTypeName()

typeSpec

public TypeSpec typeSpec()