org.jacorb.idl

Class OpDecl

public class OpDecl extends Declaration implements Operation

Version: $Id: OpDecl.java,v 1.43 2006/08/03 08:01:14 alphonse.bendt Exp $

Author: Gerald Brose

Field Summary
IdlSymbolmyInterface
static intNO_ATTRIBUTE
intopAttribute
TypeSpecopTypeSpec
static intONEWAY
VectorparamDecls
RaisesExprraisesExpr
Constructor Summary
OpDecl(int num)
OpDecl(IdlSymbol myInterface, int opAttribute, TypeSpec opTypeSpec, String name, List paramDecls, RaisesExpr raisesExpr)
Constructs a new OpDecl with the given characteristics.
OpDecl(IdlSymbol myInterface, String name, List paramDecls)
Constructs a normal (not oneway) operation with void return type and no raises-Expression.
Method Summary
voidaccept(IDLTreeVisitor visitor)
voidgetIRInfo(Hashtable irInfoTable)
collect Interface Repository information in the argument hashtable
Stringname()
StringopName()
voidparse()
voidprint(PrintWriter ps)
voidprintDelegatedMethod(PrintWriter ps)
voidprintInvocation(PrintWriter ps)
voidprintMethod(PrintWriter ps, String classname, boolean is_local, boolean is_abstract)
voidprintSignature(PrintWriter ps)
voidprintSignature(PrintWriter ps, boolean printModifiers)
voidprintStreamBody(PrintWriter ps, String classname, String idl_name, boolean is_local, boolean is_abstract)
Writes the Stream-based Body of the Method for the stub
voidprint_sendc_Method(PrintWriter ps, String classname)
voidsetEnclosingSymbol(IdlSymbol s)
voidsetPackage(String s)
Stringsignature()

Field Detail

myInterface

public IdlSymbol myInterface

NO_ATTRIBUTE

public static final int NO_ATTRIBUTE

opAttribute

public int opAttribute

opTypeSpec

public TypeSpec opTypeSpec

ONEWAY

public static final int ONEWAY

paramDecls

public Vector paramDecls

raisesExpr

public RaisesExpr raisesExpr

Constructor Detail

OpDecl

public OpDecl(int num)

OpDecl

public OpDecl(IdlSymbol myInterface, int opAttribute, TypeSpec opTypeSpec, String name, List paramDecls, RaisesExpr raisesExpr)
Constructs a new OpDecl with the given characteristics.

OpDecl

public OpDecl(IdlSymbol myInterface, String name, List paramDecls)
Constructs a normal (not oneway) operation with void return type and no raises-Expression.

Method Detail

accept

public void accept(IDLTreeVisitor visitor)

getIRInfo

public void getIRInfo(Hashtable irInfoTable)
collect Interface Repository information in the argument hashtable

name

public String name()

opName

public String opName()

parse

public void parse()

print

public void print(PrintWriter ps)

printDelegatedMethod

public void printDelegatedMethod(PrintWriter ps)

printInvocation

public void printInvocation(PrintWriter ps)

printMethod

public void printMethod(PrintWriter ps, String classname, boolean is_local, boolean is_abstract)

printSignature

public void printSignature(PrintWriter ps)

printSignature

public void printSignature(PrintWriter ps, boolean printModifiers)

Parameters: printModifiers whether "public abstract" should be added

printStreamBody

public void printStreamBody(PrintWriter ps, String classname, String idl_name, boolean is_local, boolean is_abstract)
Writes the Stream-based Body of the Method for the stub

print_sendc_Method

public void print_sendc_Method(PrintWriter ps, String classname)

setEnclosingSymbol

public void setEnclosingSymbol(IdlSymbol s)

setPackage

public void setPackage(String s)

signature

public String signature()