Class MethodGen
java.lang.Object
com.sun.tools.corba.ee.idl.toJavaPortable.MethodGen
- Direct Known Subclasses:
AttributeGen,MethodGen24
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected MethodEntryprotected intprotected Stringprotected PrintWriterprotected Hashtable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddispatchSkeleton(Hashtable symbolTable, MethodEntry m, PrintWriter stream, int index) voidgenerate(Hashtable symbolTable, MethodEntry m, PrintWriter stream) Method generate() is not used in MethodGen.protected voidinterfaceMethod(Hashtable symbolTable, MethodEntry m, PrintWriter stream) protected booleanDetermine whether method entry m is a valuetype initializer.protected voidlocalstub(Hashtable symbolTable, MethodEntry m, PrintWriter stream, int index, InterfaceEntry i) protected StringpassType(int passType) protected voidserverMethodName(String name) This is only used by AttributeGen.protected voidskeleton(Hashtable symbolTable, MethodEntry m, PrintWriter stream, int index) protected voidstub(String className, boolean isAbstract, Hashtable symbolTable, MethodEntry m, PrintWriter stream, int index) protected voidwriteCreateReply(String indent) protected voidprotected voidprotected voidwriteMethodCall(String indent) protected voidprotected voidwriteParmType(SymtabEntry parm, int passType) protected voidwriteStubBody(String className)
-
Field Details
-
methodIndex
protected int methodIndex -
realName
-
symbolTable
-
m
-
stream
-
localOptimization
protected boolean localOptimization -
isAbstract
protected boolean isAbstract
-
-
Constructor Details
-
MethodGen
public MethodGen()Public zero-argument constructor.
-
-
Method Details
-
generate
Method generate() is not used in MethodGen. They are replaced by the more granular interfaceMethod, stub, skeleton, dispatchSkeleton. -
interfaceMethod
-
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
-
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
-
writeDispatchCall
protected void writeDispatchCall() -
writeStubBody
-
writeLocalStubBody
-
passType
-
serverMethodName
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. -
writeMethodCall
-
writeCreateReply
-