org.jacorb.idl
Class VectorType

java.lang.Object
  extended byorg.jacorb.idl.runtime.symbol
      extended byorg.jacorb.idl.IdlSymbol
          extended byorg.jacorb.idl.TypeSpec
              extended byorg.jacorb.idl.SimpleTypeSpec
                  extended byorg.jacorb.idl.TemplateTypeSpec
                      extended byorg.jacorb.idl.VectorType
Direct Known Subclasses:
ArrayTypeSpec, SequenceType

public abstract class VectorType
extends org.jacorb.idl.TemplateTypeSpec

Common super class for arrays and sequences

Version:
$Id: VectorType.java,v 1.12 2004/01/15 11:12:13 nick.cross Exp $
Author:
Gerald Brose

Field Summary
protected  boolean typedefd
           
 
Fields inherited from class org.jacorb.idl.TypeSpec
alias
 
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
VectorType(int num)
           
 
Method Summary
 boolean basic()
           
protected  java.lang.String elementTypeExpression()
           
 java.lang.String elementTypeName()
           
 TypeSpec elementTypeSpec()
           
abstract  java.lang.String helperName()
           
abstract  java.lang.String holderName()
           
abstract  int length()
           
 void markTypeDefd()
          we have to be able to distinguish between explicitly typedef'd type names and anonymously defined type names
 void parse()
          empty parse
 java.lang.String printReadExpression(java.lang.String streamname)
           
 void setTypeSpec(org.jacorb.idl.SimpleTypeSpec sts)
           
 java.lang.String toString()
           
 java.lang.String typeName()
           
 
Methods inherited from class org.jacorb.idl.TypeSpec
clone, getIDLTypeName, getJavaTypeName, getTypeCodeExpression, getTypeCodeExpression, print, printExtractExpression, printInsertExpression, printReadStatement, printWriteStatement, set_constr, setEnclosingSymbol, setPackage, typeSpec
 
Methods inherited from class org.jacorb.idl.IdlSymbol
accept, addImportedAlias, addImportedName, addImportedName, addImportedNameHolder, deEscapeName, escapeName, generateIncluded, get_token, getEnclosingSymbol, id, is_included, is_pseudo, isEscaped, name, new_num, omgPrefix, 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
 

Field Detail

typedefd

protected boolean typedefd
Constructor Detail

VectorType

public VectorType(int num)
Method Detail

elementTypeSpec

public TypeSpec elementTypeSpec()
Returns:
the TypeSpec for the sequence's element type

setTypeSpec

public void setTypeSpec(org.jacorb.idl.SimpleTypeSpec sts)

typeName

public java.lang.String typeName()
Overrides:
typeName in class TypeSpec
Returns:
this sequences Java type name, i.e., the element type with "[]" appended.

printReadExpression

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

elementTypeExpression

protected java.lang.String elementTypeExpression()

elementTypeName

public java.lang.String elementTypeName()

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.

holderName

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

helperName

public abstract java.lang.String helperName()

toString

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

parse

public void parse()
           throws ParseException
Description copied from class: IdlSymbol
empty parse

Overrides:
parse in class TypeSpec
Throws:
ParseException

markTypeDefd

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


basic

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