org.jacorb.idl

Class Method

Implemented Interfaces:
Operation, Serializable

public class Method
extends java.lang.Object
implements Operation

Version:
$Id: Method.java,v 1.19 2004/05/06 12:39:58 nicolas Exp $ This class is used to represent accessor operations

Author:
Gerald Brose

Field Summary

TypeSpec
parameterType
TypeSpec
resultType

Constructor Summary

Method(TypeSpec res, TypeSpec params, String name, boolean pseudo)

Method Summary

void
accept(IDLTreeVisitor visitor)
boolean
isGetter()
String
name()
String
opName()
void
printDelegatedMethod(PrintWriter ps)
void
printInvocation(PrintWriter ps)
void
printMethod(PrintWriter ps, String classname, boolean is_local, boolean is_abstract)
void
printSignature(PrintWriter ps)
void
printSignature(PrintWriter ps, boolean printModifiers)
void
print_sendc_Method(PrintWriter ps, String classname)
String
signature()

Field Details

parameterType

public TypeSpec parameterType


resultType

public TypeSpec resultType

Constructor Details

Method

public Method(TypeSpec res,
              TypeSpec params,
              String name,
              boolean pseudo)

Method Details

accept

public void accept(IDLTreeVisitor visitor)
Specified by:
accept in interface Operation


isGetter

public boolean isGetter()


name

public String name()
Specified by:
name in interface Operation


opName

public String opName()
Specified by:
opName in interface Operation


printDelegatedMethod

public void printDelegatedMethod(PrintWriter ps)
Specified by:
printDelegatedMethod in interface Operation


printInvocation

public void printInvocation(PrintWriter ps)
Specified by:
printInvocation in interface Operation


printMethod

public void printMethod(PrintWriter ps,
                        String classname,
                        boolean is_local,
                        boolean is_abstract)
Specified by:
printMethod in interface Operation


printSignature

public void printSignature(PrintWriter ps)
Specified by:
printSignature in interface Operation


printSignature

public void printSignature(PrintWriter ps,
                           boolean printModifiers)
Specified by:
printSignature in interface Operation

Parameters:
printModifiers - whether "public abstract" should be added


print_sendc_Method

public void print_sendc_Method(PrintWriter ps,
                               String classname)
Specified by:
print_sendc_Method in interface Operation


signature

public String signature()
Specified by:
signature in interface Operation