public class OpDecl extends Declaration implements Operation
Modifier and Type | Field and Description |
---|---|
IdlSymbol |
myInterface |
static int |
NO_ATTRIBUTE |
static int |
ONEWAY |
int |
opAttribute |
TypeSpec |
opTypeSpec |
Vector |
paramDecls |
RaisesExpr |
raisesExpr |
_id, enclosing_symbol, fileSeparator, included, inhibitionFlag, is_pseudo, omg_package_prefix, pack_name
parse_state, sym
Constructor and Description |
---|
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.
|
OpDecl(int num) |
Modifier and Type | Method and Description |
---|---|
void |
accept(IDLTreeVisitor visitor)
let the visitor pattern do its work...
|
void |
getIRInfo(Hashtable irInfoTable)
collect Interface Repository information in the argument hashtable
|
String |
name()
get this symbol's name
|
String |
opName()
opName gives the mangled name in case of attributes
(_get_, _set_). |
void |
parse()
empty parse
|
void |
print_sendc_Method(PrintWriter ps,
String classname) |
void |
print(PrintWriter ps) |
void |
printDelegatedMethod(PrintWriter ps)
Method code for skeletons
|
void |
printInvocation(PrintWriter ps) |
void |
printMethod(PrintWriter ps,
String classname,
boolean is_local,
boolean is_abstract)
printMethod produces the method code for stubs. |
void |
printSignature(PrintWriter ps) |
void |
printSignature(PrintWriter ps,
boolean printModifiers) |
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
|
void |
setEnclosingSymbol(IdlSymbol s) |
void |
setPackage(String s) |
String |
signature() |
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
public static final int NO_ATTRIBUTE
public static final int ONEWAY
public int opAttribute
public TypeSpec opTypeSpec
public Vector paramDecls
public RaisesExpr raisesExpr
public IdlSymbol myInterface
public OpDecl(int num)
public OpDecl(IdlSymbol myInterface, int opAttribute, TypeSpec opTypeSpec, String name, List paramDecls, RaisesExpr raisesExpr)
public void setPackage(String s)
setPackage
in class IdlSymbol
public void setEnclosingSymbol(IdlSymbol s)
setEnclosingSymbol
in class IdlSymbol
public void parse()
IdlSymbol
public void print(PrintWriter ps)
public void printStreamBody(PrintWriter ps, String classname, String idl_name, boolean is_local, boolean is_abstract)
public void printMethod(PrintWriter ps, String classname, boolean is_local, boolean is_abstract)
Operation
printMethod
produces the method code for stubs.printMethod
in interface Operation
ps
- 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(PrintWriter ps, String classname)
print_sendc_Method
in interface Operation
public void printDelegatedMethod(PrintWriter ps)
Operation
printDelegatedMethod
in interface Operation
ps
- a PrintWriter
valuepublic void printInvocation(PrintWriter ps)
printInvocation
in interface Operation
public String opName()
Operation
opName
gives the mangled name in case of attributes
(_get_, _set_).public void printSignature(PrintWriter ps)
printSignature
in interface Operation
public void printSignature(PrintWriter ps, boolean printModifiers)
printSignature
in interface Operation
printModifiers
- whether "public abstract" should be addedpublic void getIRInfo(Hashtable irInfoTable)
public void accept(IDLTreeVisitor visitor)
IdlSymbol
accept
in interface Operation
accept
in class Declaration
Copyright © 2016 JacORB. All rights reserved.