public class Method extends Object implements Operation
Modifier and Type | Field and Description |
---|---|
TypeSpec |
parameterType |
TypeSpec |
resultType |
Constructor and Description |
---|
Method(TypeSpec res,
TypeSpec params,
String name,
RaisesExpr raisesExpr,
boolean pseudo) |
Modifier and Type | Method and Description |
---|---|
void |
accept(IDLTreeVisitor visitor) |
boolean |
isGetter() |
String |
name()
name gives the plain name of the operation |
String |
opName()
opName gives the mangled name in case of attributes
(_get_, _set_). |
void |
print_sendc_Method(PrintWriter ps,
String classname) |
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) |
String |
signature() |
public Method(TypeSpec res, TypeSpec params, String name, RaisesExpr raisesExpr, boolean pseudo)
public boolean isGetter()
public String name()
Operation
name
gives the plain name of the operationpublic 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 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 void accept(IDLTreeVisitor visitor)
Copyright © 2016 JacORB. All rights reserved.