org.jacorb.idl

Class ArrayTypeSpec

public class ArrayTypeSpec extends VectorType

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

Author: Gerald Brose

Field Summary
int[]dims
Constructor Summary
ArrayTypeSpec(int num, TypeSpec elem, ArrayDeclarator ad, String pack_name)
Method Summary
StringclassName()
Objectclone()
clone this ArrayTypeSpec.
intgetTCKind()
StringgetTypeCodeExpression()
StringhelperName()
StringholderName()
intlength()
voidmarkTypeDefd()
we have to be able to distinguish between explicitly typedef'd type names and anonymously defined type names
voidparse()
voidprint(PrintWriter _ps)
voidprintExtractResult(PrintWriter ps, String resultname, String anyname, String resulttype)
voidprintInsertIntoAny(PrintWriter ps, String anyname, String varname)
StringprintReadStatement(String var_name, String streamname)
StringprintWriteStatement(String var_name, String streamname)
voidsetEnclosingSymbol(IdlSymbol s)
voidsetPackage(String s)
TypeSpectypeSpec()

Field Detail

dims

public int[] dims

Constructor Detail

ArrayTypeSpec

public ArrayTypeSpec(int num, TypeSpec elem, ArrayDeclarator ad, String pack_name)

Method Detail

className

public String className()

clone

public Object clone()
clone this ArrayTypeSpec. The cloned object will not be parsed again.

getTCKind

public int getTCKind()

getTypeCodeExpression

public String getTypeCodeExpression()

Returns: a string for an expression of type TypeCode that describes this type Array and sequence types always have this expression inlined in their containing classes because arrays and sequences can be locally defined (e,g, in a struct) without there being helper classes (so Helper.type() is not an option)

helperName

public String helperName()

holderName

public String holderName()

length

public int length()

markTypeDefd

public void markTypeDefd()
we have to be able to distinguish between explicitly typedef'd type names and anonymously defined type names

parse

public void parse()

print

public void print(PrintWriter _ps)

printExtractResult

public void printExtractResult(PrintWriter ps, String resultname, String anyname, String resulttype)

printInsertIntoAny

public void printInsertIntoAny(PrintWriter ps, String anyname, String varname)

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)

typeSpec

public TypeSpec typeSpec()