org.jacorb.idl
Class Method
java.lang.Object
org.jacorb.idl.Method
- All Implemented Interfaces:
- java.io.Serializable, Operation
public class Method
- extends java.lang.Object
- implements Operation
- See Also:
- Serialized Form
|
Method Summary |
void |
accept(IDLTreeVisitor visitor)
|
boolean |
isGetter()
|
java.lang.String |
name()
name gives the plain name of the operation |
java.lang.String |
opName()
opName gives the mangled name in case of attributes
(_get_, _set_). |
void |
print_sendc_Method(java.io.PrintWriter ps,
java.lang.String classname)
|
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)
|
java.lang.String |
signature()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
resultType
public TypeSpec resultType
parameterType
public TypeSpec parameterType
Method
public Method(TypeSpec res,
TypeSpec params,
java.lang.String name,
RaisesExpr raisesExpr,
boolean pseudo)
isGetter
public boolean isGetter()
name
public java.lang.String name()
- Description copied from interface:
Operation
name gives the plain name of the operation
- Specified by:
name in interface Operation
- Returns:
- a
String value
opName
public java.lang.String opName()
- Description copied from interface:
Operation
opName gives the mangled name in case of attributes
(_get_, _set_).
- Specified by:
opName in interface Operation
- Returns:
- a
String value
signature
public java.lang.String signature()
- Specified by:
signature in interface Operation
printSignature
public void printSignature(java.io.PrintWriter ps)
- Specified by:
printSignature in interface Operation
printSignature
public void printSignature(java.io.PrintWriter ps,
boolean printModifiers)
- Specified by:
printSignature in interface Operation
- Parameters:
printModifiers - whether "public abstract" should be added
printMethod
public void printMethod(java.io.PrintWriter ps,
java.lang.String classname,
boolean is_local,
boolean is_abstract)
- Description copied from interface:
Operation
printMethod produces the method code for stubs.
- Specified by:
printMethod in interface Operation
- Parameters:
ps - a PrintWriter valueclassname - a String valueis_local - a boolean valueis_abstract - a boolean value used by Interface to
denote an abstract.
print_sendc_Method
public void print_sendc_Method(java.io.PrintWriter ps,
java.lang.String classname)
- Specified by:
print_sendc_Method in interface Operation
printDelegatedMethod
public void printDelegatedMethod(java.io.PrintWriter ps)
- Description copied from interface:
Operation
- Method code for skeletons
- Specified by:
printDelegatedMethod in interface Operation
- Parameters:
ps - a PrintWriter value
printInvocation
public void printInvocation(java.io.PrintWriter ps)
- Specified by:
printInvocation in interface Operation
accept
public void accept(IDLTreeVisitor visitor)
- Specified by:
accept in interface Operation