org.jacorb.idl

Class ParamDecl


public class ParamDecl
extends IdlSymbol

Version:
$Id: ParamDecl.java,v 1.20 2004/05/06 12:39:58 nicolas Exp $

Author:
Gerald Brose

Field Summary

static int
MODE_IN
static int
MODE_INOUT
static int
MODE_OUT
int
paramAttribute
TypeSpec
paramTypeSpec
SimpleDeclarator
simple_declarator

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

ParamDecl(int num)
class constructor
ParamDecl(int paramAttribute, TypeSpec paramTypeSpec, String name)
Constructs a new parameter declaration with the given characteristics.
ParamDecl(int paramAttribute, TypeSpec paramTypeSpec, SimpleDeclarator simple_declarator)
Constructs a new parameter declaration with the given characteristics.

Method Summary

void
accept(IDLTreeVisitor visitor)
let the visitor pattern do its work...
ParamDecl
asIn()
Returns a new ParamDecl with the same characteristics as this one, except that its mode is changed to 'in'.
void
parse()
empty parse
void
print(PrintWriter ps)
String
printReadExpression(String ps)
String
printWriteStatement(String ps)
String
printWriteStatement(String name, String ps)
void
setPackage(String s)

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

Field Details

MODE_IN

public static final int MODE_IN

Field Value:
1


MODE_INOUT

public static final int MODE_INOUT

Field Value:
3


MODE_OUT

public static final int MODE_OUT

Field Value:
2


paramAttribute

public int paramAttribute


paramTypeSpec

public TypeSpec paramTypeSpec


simple_declarator

public SimpleDeclarator simple_declarator

Constructor Details

ParamDecl

public ParamDecl(int num)
class constructor


ParamDecl

public ParamDecl(int paramAttribute,
                 TypeSpec paramTypeSpec,
                 String name)
Constructs a new parameter declaration with the given characteristics.


ParamDecl

public ParamDecl(int paramAttribute,
                 TypeSpec paramTypeSpec,
                 SimpleDeclarator simple_declarator)
Constructs a new parameter declaration with the given characteristics.

Method Details

accept

public void accept(IDLTreeVisitor visitor)
let the visitor pattern do its work...
Overrides:
accept in interface IdlSymbol


asIn

public ParamDecl asIn()
Returns a new ParamDecl with the same characteristics as this one, except that its mode is changed to 'in'.


parse

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


print

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


printReadExpression

public String printReadExpression(String ps)


printWriteStatement

public String printWriteStatement(String ps)


printWriteStatement

public String printWriteStatement(String name,
                                  String ps)


setPackage

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