public class AcsInterfacePrinter
extends java.lang.Object
Interface in the ACS-xml way.
It assumes that the interface is already renamed to end in "J".
We (re-)use the jacorb package org.jacorb.idl to access protected methods,
which is an attempt to not duplicate even more jacorb code.
It is a pity that JacORB does not use a level of indirection when instantiating
the Interface objects in CUP$actions, which would allow us to use a custom Interface type.
| Constructor and Description |
|---|
AcsInterfacePrinter(Interface interfce,
java.util.Set<AliasTypeSpec> entityTypes,
java.util.Set<StructType> xmlAwareStructs,
java.util.Set<Interface> xmlAwareIFs,
AcsXmlNamingExpert namingExpert) |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
java_name(Interface interfce)
Exposes
Interface#javaName() to other packages,
to be used by AcsXmlNamingExpert. |
void |
printAcsJInterface()
Todo:
- Substitute types in operations parameters and returns
The code was copied from
Interface#printOperations()
and then modified to not append "Operations"
(plus "interfce." scope resolution to fix compile errors) |
void |
printSignature(java.io.PrintWriter ps,
boolean printModifiers,
OpDecl opdecl) |
void |
printSignature(java.io.PrintWriter ps,
OpDecl opdecl) |
public AcsInterfacePrinter(Interface interfce,
java.util.Set<AliasTypeSpec> entityTypes,
java.util.Set<StructType> xmlAwareStructs,
java.util.Set<Interface> xmlAwareIFs,
AcsXmlNamingExpert namingExpert)
public void printAcsJInterface()
Interface#printOperations()
and then modified to not append "Operations"
(plus "interfce." scope resolution to fix compile errors)public void printSignature(java.io.PrintWriter ps,
OpDecl opdecl)
public void printSignature(java.io.PrintWriter ps,
boolean printModifiers,
OpDecl opdecl)
printModifiers - whether "public abstract" should be addedpublic static java.lang.String java_name(Interface interfce)
Interface#javaName() to other packages,
to be used by AcsXmlNamingExpert.