org.jacorb.idl

Class ValueDecl


public class ValueDecl
extends Value

Version:
$Id: ValueDecl.java,v 1.40 2004/05/06 12:39:59 nicolas Exp $

Author:
Andre Spiegel

Field Summary

Fields inherited from class org.jacorb.idl.TypeDeclaration

type_decl

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

ValueDecl(int num)
public c'tor, called by parser

Method Summary

void
accept(IDLTreeVisitor visitor)
boolean
basic()
TypeDeclaration
declaration()
org.jacorb.idl.ValueInheritanceSpec
getInheritanceSpec()
String
getTypeCodeExpression()
String
getTypeCodeExpression(Set knownTypes)
Returns a type code expression (for use in generated code) for this type.
String
holderName()
boolean
isCustomMarshalled()
void
isCustomMarshalled(boolean flag)
void
parse()
empty parse
void
print(PrintWriter ps)
String
printReadExpression(String streamname)
String
printReadStatement(String var_name, String streamname)
String
printWriteStatement(String var_name, String streamname)
void
setEnclosingSymbol(IdlSymbol s)
void
setInheritanceSpec(org.jacorb.idl.ValueInheritanceSpec spec)
void
setPackage(String s)
void
setValueElements(Definitions d)
void
set_included(boolean i)
used by the lexer to mark this symbol as included from another IDL file
String
toString()
String
typeName()

Methods inherited from class org.jacorb.idl.Value

accept, basic, clone, declaration, getTypeCodeExpression, holderName, parse, print, printReadExpression, printReadStatement, printWriteStatement, setEnclosingSymbol, setPackage, setValue, set_included, toString, typeName

Methods inherited from class org.jacorb.idl.TypeDeclaration

accept, basic, clone, declaration, getIDLTypeName, getJavaTypeName, getRecursiveTypeCodeExpression, getTypeCodeExpression, getTypeCodeExpression, holderName, markTypeDefd, parse, print, printReadExpression, printReadStatement, printWriteStatement, setEnclosingSymbol, setPackage, set_included, toString, typeName

Methods inherited from class org.jacorb.idl.Declaration

accept

Methods inherited from class org.jacorb.idl.IdlSymbol

accept, addImportedAlias, addImportedName, addImportedName, addImportedNameHolder, deEscapeName, escapeName, generateIncluded, getEnclosingSymbol, get_token, id, isEscaped, is_included, is_pseudo, name, new_num, omgPrefix, parse, print, printIdMethod, printImport, setEnclosingSymbol, setPackage, setPrintPhaseNames, set_name, set_pseudo, set_token

Constructor Details

ValueDecl

public ValueDecl(int num)
public c'tor, called by parser

Method Details

accept

public void accept(IDLTreeVisitor visitor)
Overrides:
accept in interface Value


basic

public boolean basic()
Overrides:
basic in interface Value


declaration

public TypeDeclaration declaration()
Overrides:
declaration in interface Value


getInheritanceSpec

public org.jacorb.idl.ValueInheritanceSpec getInheritanceSpec()


getTypeCodeExpression

public String getTypeCodeExpression()
Overrides:
getTypeCodeExpression in interface Value

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


getTypeCodeExpression

public String getTypeCodeExpression(Set knownTypes)
Returns a type code expression (for use in generated code) for this type. If `knownTypes' contains this type, then a recursive type code is returned.
Overrides:
getTypeCodeExpression in interface TypeDeclaration


holderName

public String holderName()
Overrides:
holderName in interface Value


isCustomMarshalled

public boolean isCustomMarshalled()


isCustomMarshalled

public void isCustomMarshalled(boolean flag)


parse

public void parse()
empty parse
Overrides:
parse in interface Value


print

public void print(PrintWriter ps)
Overrides:
print in interface Value


printReadExpression

public String printReadExpression(String streamname)
Overrides:
printReadExpression in interface Value


printReadStatement

public String printReadStatement(String var_name,
                                 String streamname)
Overrides:
printReadStatement in interface Value


printWriteStatement

public String printWriteStatement(String var_name,
                                  String streamname)
Overrides:
printWriteStatement in interface Value


setEnclosingSymbol

public void setEnclosingSymbol(IdlSymbol s)
Overrides:
setEnclosingSymbol in interface Value


setInheritanceSpec

public void setInheritanceSpec(org.jacorb.idl.ValueInheritanceSpec spec)


setPackage

public void setPackage(String s)
Overrides:
setPackage in interface Value


setValueElements

public void setValueElements(Definitions d)


set_included

public void set_included(boolean i)
used by the lexer to mark this symbol as included from another IDL file
Overrides:
set_included in interface Value


toString

public String toString()
Overrides:
toString in interface Value


typeName

public String typeName()
Overrides:
typeName in interface Value