|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jacorb.idl.runtime.symbol
org.jacorb.idl.IdlSymbol
org.jacorb.idl.Declaration
org.jacorb.idl.OpDecl
public class OpDecl
| Field Summary | |
|---|---|
IdlSymbol |
myInterface
|
static int |
NO_ATTRIBUTE
|
static int |
ONEWAY
|
int |
opAttribute
|
TypeSpec |
opTypeSpec
|
java.util.Vector |
paramDecls
|
RaisesExpr |
raisesExpr
|
| 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 | |
|---|---|
OpDecl(IdlSymbol myInterface,
int opAttribute,
TypeSpec opTypeSpec,
java.lang.String name,
java.util.List paramDecls,
RaisesExpr raisesExpr)
Constructs a new OpDecl with the given characteristics. |
|
OpDecl(IdlSymbol myInterface,
java.lang.String name,
java.util.List paramDecls)
Constructs a normal (not oneway) operation with void return type and no raises-Expression. |
|
OpDecl(int num)
|
|
| Method Summary | |
|---|---|
void |
accept(IDLTreeVisitor visitor)
let the visitor pattern do its work... |
void |
getIRInfo(java.util.Hashtable irInfoTable)
collect Interface Repository information in the argument hashtable |
java.lang.String |
name()
get this symbol's name |
java.lang.String |
opName()
opName gives the mangled name in case of attributes
(_get_, _set_). |
void |
parse()
empty parse |
void |
print_sendc_Method(java.io.PrintWriter ps,
java.lang.String classname)
|
void |
print(java.io.PrintWriter ps)
|
void |
printDelegatedMethod(java.io.PrintWriter ps)
Method code for skeletons |
void |
printInvocation(java.io.PrintWriter ps)
|
void |
printMethod(java.io.PrintWriter ps,
java.lang.String classname,
boolean is_local,
boolean is_abstract)
printMethod produces the method code for stubs. |
void |
printSignature(java.io.PrintWriter ps)
|
void |
printSignature(java.io.PrintWriter ps,
boolean printModifiers)
|
void |
printStreamBody(java.io.PrintWriter ps,
java.lang.String classname,
java.lang.String idl_name,
boolean is_local,
boolean is_abstract)
Writes the Stream-based Body of the Method for the stub |
void |
setEnclosingSymbol(IdlSymbol s)
|
void |
setPackage(java.lang.String s)
|
java.lang.String |
signature()
|
| Methods inherited from class org.jacorb.idl.IdlSymbol |
|---|
addImportedAlias, addImportedName, addImportedName, addImportedNameHolder, deEscapeName, escapeName, generateIncluded, get_token, getEnclosingSymbol, getFullName, id, is_included, is_pseudo, isEscaped, new_num, omgPrefix, printClassComment, printIdMethod, printImport, set_name, set_pseudo, set_token, setPrintPhaseNames |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NO_ATTRIBUTE
public static final int ONEWAY
public int opAttribute
public TypeSpec opTypeSpec
public java.util.Vector paramDecls
public RaisesExpr raisesExpr
public IdlSymbol myInterface
| Constructor Detail |
|---|
public OpDecl(int num)
public OpDecl(IdlSymbol myInterface,
int opAttribute,
TypeSpec opTypeSpec,
java.lang.String name,
java.util.List paramDecls,
RaisesExpr raisesExpr)
public OpDecl(IdlSymbol myInterface,
java.lang.String name,
java.util.List paramDecls)
| Method Detail |
|---|
public void setPackage(java.lang.String s)
setPackage in class IdlSymbolpublic void setEnclosingSymbol(IdlSymbol s)
setEnclosingSymbol in class IdlSymbolpublic void parse()
IdlSymbol
parse in class IdlSymbolpublic void print(java.io.PrintWriter ps)
print in class IdlSymbol
public void printStreamBody(java.io.PrintWriter ps,
java.lang.String classname,
java.lang.String idl_name,
boolean is_local,
boolean is_abstract)
public void printMethod(java.io.PrintWriter ps,
java.lang.String classname,
boolean is_local,
boolean is_abstract)
OperationprintMethod produces the method code for stubs.
printMethod in interface Operationps - a PrintWriter valueclassname - a String valueis_local - a boolean valueis_abstract - a boolean value used by Interface to
denote an abstract.
public void print_sendc_Method(java.io.PrintWriter ps,
java.lang.String classname)
print_sendc_Method in interface Operationpublic void printDelegatedMethod(java.io.PrintWriter ps)
Operation
printDelegatedMethod in interface Operationps - a PrintWriter valuepublic void printInvocation(java.io.PrintWriter ps)
printInvocation in interface Operationpublic java.lang.String signature()
signature in interface Operationpublic java.lang.String name()
IdlSymbol
name in interface Operationname in class IdlSymbolString valuepublic java.lang.String opName()
OperationopName gives the mangled name in case of attributes
(_get_, _set_).
opName in interface OperationString valuepublic void printSignature(java.io.PrintWriter ps)
printSignature in interface Operation
public void printSignature(java.io.PrintWriter ps,
boolean printModifiers)
printSignature in interface OperationprintModifiers - whether "public abstract" should be addedpublic void getIRInfo(java.util.Hashtable irInfoTable)
public void accept(IDLTreeVisitor visitor)
IdlSymbol
accept in interface Operationaccept in class Declaration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||