java.lang.Object
com.sun.tools.corba.ee.idl.toJavaPortable.MethodGen
All Implemented Interfaces:
Generator, MethodGen
Direct Known Subclasses:
AttributeGen, MethodGen24

public class MethodGen extends Object implements MethodGen
  • Field Details

  • Constructor Details

    • MethodGen

      public MethodGen()
      Public zero-argument constructor.
  • Method Details

    • generate

      public void generate(Hashtable symbolTable, MethodEntry m, PrintWriter stream)
      Method generate() is not used in MethodGen. They are replaced by the more granular interfaceMethod, stub, skeleton, dispatchSkeleton.
      Specified by:
      generate in interface MethodGen
    • interfaceMethod

      protected void interfaceMethod(Hashtable symbolTable, MethodEntry m, PrintWriter stream)
    • stub

      protected void stub(String className, boolean isAbstract, Hashtable symbolTable, MethodEntry m, PrintWriter stream, int index)
    • localstub

      protected void localstub(Hashtable symbolTable, MethodEntry m, PrintWriter stream, int index, InterfaceEntry i)
    • skeleton

      protected void skeleton(Hashtable symbolTable, MethodEntry m, PrintWriter stream, int index)
    • dispatchSkeleton

      protected void dispatchSkeleton(Hashtable symbolTable, MethodEntry m, PrintWriter stream, int index)
    • isValueInitializer

      protected boolean isValueInitializer()
      Determine whether method entry m is a valuetype initializer.
      Returns:
      true if is m is valuetype initializer, false otherwise.
    • writeMethodSignature

      protected void writeMethodSignature()
    • writeParmType

      protected void writeParmType(SymtabEntry parm, int passType)
    • writeDispatchCall

      protected void writeDispatchCall()
    • writeStubBody

      protected void writeStubBody(String className)
    • writeStubBodyForLocalInvocation

      private void writeStubBodyForLocalInvocation(String className, String methodName)
      This method writes the else part of the stub method invocation to enable local invocation in case of collocation. NOTE: This will only be invoked from writeStubBody.
    • writeLocalStubBody

      protected void writeLocalStubBody(InterfaceEntry i)
    • writeInsert

      private void writeInsert(String indent, String target, String source, SymtabEntry type, PrintWriter stream)
    • writeType

      private void writeType(String indent, String name, SymtabEntry type, PrintWriter stream)
    • writeExtract

      private void writeExtract(String indent, String target, String source, SymtabEntry type, PrintWriter stream)
    • writeExtract

      private String writeExtract(String source, SymtabEntry type)
    • writeSkeletonBody

      private void writeSkeletonBody()
    • passType

      protected String passType(int passType)
    • serverMethodName

      protected void serverMethodName(String name)
      This is only used by AttributeGen. The java mapping says the names should be getXXX and setXXX, but CORBA says they should be _get_XXX and _set_XXX. this.name () will be getXXX. realName is set by AttributeGen to _get_XXX.
    • writeOutputStreamWrite

      private void writeOutputStreamWrite(String indent, String oStream, String name, SymtabEntry type, PrintWriter stream)
    • writeInputStreamRead

      private String writeInputStreamRead(String source, SymtabEntry type)
    • writeMethodCall

      protected void writeMethodCall(String indent)
    • writeCreateReply

      protected void writeCreateReply(String indent)