org.jacorb.idl

Class VectorType

public abstract class VectorType extends TemplateTypeSpec

Common super class for arrays and sequences

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

Author: Gerald Brose

Constructor Summary
VectorType(int num)
Method Summary
voidaccept(IDLTreeVisitor visitor)
protected StringelementTypeExpression()
StringelementTypeName()
TypeSpecelementTypeSpec()
intgetTCKind()
abstract StringhelperName()
abstract StringholderName()
abstract intlength()
voidprintExtractResult(PrintWriter ps, String resultname, String anyname, String resulttype)
voidprintInsertIntoAny(PrintWriter ps, String anyname, String varname)
StringprintReadExpression(String streamname)
voidsetTypeSpec(SimpleTypeSpec sts)
StringtoString()
StringtypeName()

Constructor Detail

VectorType

public VectorType(int num)

Method Detail

accept

public void accept(IDLTreeVisitor visitor)

elementTypeExpression

protected String elementTypeExpression()

elementTypeName

public String elementTypeName()

elementTypeSpec

public TypeSpec elementTypeSpec()

Returns: the TypeSpec for the sequence's element type

getTCKind

public int getTCKind()

helperName

public abstract String helperName()

holderName

public abstract String holderName()

length

public abstract int length()

Returns: the length of this array or sequence. For multi-dimensional vectors, this is the outermost dimension. For open sequences, this length is 0.

printExtractResult

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

printInsertIntoAny

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

printReadExpression

public String printReadExpression(String streamname)

setTypeSpec

public void setTypeSpec(SimpleTypeSpec sts)

toString

public String toString()

typeName

public String typeName()

Returns: this sequences Java type name, i.e., the element type with "[]" appended.