org.jacorb.idl
Class ValueAbsDecl
java.lang.Object
org.jacorb.idl.runtime.symbol
org.jacorb.idl.IdlSymbol
org.jacorb.idl.Declaration
org.jacorb.idl.TypeDeclaration
org.jacorb.idl.Value
org.jacorb.idl.ValueAbsDecl
- public class ValueAbsDecl
- extends Value
- Version:
- $Id: ValueAbsDecl.java,v 1.19 2004/01/15 12:38:18 nick.cross Exp $
This class is basically the same as Interface.java, but we can't extend
that one because we have to extend Value, and delegating some parts and
not others is a nuisance...
- Author:
- Andre Spiegel, Gerald Brose
Methods inherited from class org.jacorb.idl.IdlSymbol |
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 |
ValueAbsDecl
public ValueAbsDecl(int num)
setPackage
public void setPackage(java.lang.String s)
- Overrides:
setPackage
in class Value
setInheritanceSpec
public void setInheritanceSpec(org.jacorb.idl.ValueInheritanceSpec spec)
setInheritanceSpec
public org.jacorb.idl.ValueInheritanceSpec setInheritanceSpec()
declaration
public TypeDeclaration declaration()
- Overrides:
declaration
in class Value
typeName
public java.lang.String typeName()
- Overrides:
typeName
in class Value
clone
public java.lang.Object clone()
- Overrides:
clone
in class Value
setEnclosingSymbol
public void setEnclosingSymbol(IdlSymbol s)
- Overrides:
setEnclosingSymbol
in class Value
basic
public boolean basic()
- Overrides:
basic
in class Value
holderName
public java.lang.String holderName()
- Overrides:
holderName
in class Value
toString
public java.lang.String toString()
- Overrides:
toString
in class Value
set_included
public void set_included(boolean i)
- Overrides:
set_included
in class Value
parse
public void parse()
- Description copied from class:
IdlSymbol
- empty parse
- Overrides:
parse
in class Value
getTypeCodeExpression
public java.lang.String getTypeCodeExpression()
- Overrides:
getTypeCodeExpression
in class Value
- Returns:
- a string for an expression of type TypeCode
that describes this type
getTypeCodeExpression
public java.lang.String getTypeCodeExpression(java.util.Set knownTypes)
- Description copied from class:
TypeDeclaration
- 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 class TypeDeclaration
printReadExpression
public java.lang.String printReadExpression(java.lang.String streamname)
- Overrides:
printReadExpression
in class Value
printReadStatement
public java.lang.String printReadStatement(java.lang.String var_name,
java.lang.String streamname)
- Overrides:
printReadStatement
in class Value
printWriteStatement
public java.lang.String printWriteStatement(java.lang.String var_name,
java.lang.String streamname)
- Overrides:
printWriteStatement
in class Value
print
public void print(java.io.PrintWriter unused)
- generate the mapped class that extends ValueBase and has the
operations and attributes
- Overrides:
print
in class Value
accept
public void accept(IDLTreeVisitor visitor)
- Description copied from class:
IdlSymbol
- let the visitor pattern do its work...
- Overrides:
accept
in class Value