public class InterfaceGen extends Object implements InterfaceGen, JavaGenerator
Modifier and Type | Field and Description |
---|---|
protected int |
emit |
protected Factories |
factories |
protected InterfaceEntry |
i |
protected int |
intfType |
protected static int |
OPERATIONS |
protected static int |
SIGNATURE |
protected PrintWriter |
stream |
protected Hashtable |
symbolTable |
Constructor and Description |
---|
InterfaceGen()
Public zero-argument constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
closeStream() |
void |
generate(Hashtable symbolTable,
InterfaceEntry i,
PrintWriter stream)
Generate the interface and all the files associated with it.
|
protected void |
generateHelper()
Generate a Helper when the user does not want just the server-side code.
|
protected void |
generateHolder()
Generate a Holder when the user does not want just the server-side code.
|
protected void |
generateInterface()
Generate the interface.
|
protected void |
generateSkeleton()
Generate a Skeleton when the user does not want just the client-side code.
|
protected void |
generateStub()
Generate a Stub when the user does not want just the server-side code.
|
void |
helperRead(String entryName,
SymtabEntry entry,
PrintWriter stream) |
int |
helperType(int index,
String indent,
TCOffsets tcoffsets,
String name,
SymtabEntry entry,
PrintWriter stream) |
void |
helperWrite(SymtabEntry entry,
PrintWriter stream) |
protected void |
init()
Initialize members unique to this generator.
|
protected void |
openStream() |
int |
read(int index,
String indent,
String name,
SymtabEntry entry,
PrintWriter stream) |
int |
type(int index,
String indent,
TCOffsets tcoffsets,
String name,
SymtabEntry entry,
PrintWriter stream) |
int |
write(int index,
String indent,
String name,
SymtabEntry entry,
PrintWriter stream) |
protected void |
writeClosing() |
protected void |
writeHeading() |
protected void |
writeOperationsBody() |
protected void |
writeOperationsHeading() |
protected void |
writeSignatureBody() |
protected void |
writeSignatureHeading() |
protected int emit
protected Factories factories
protected Hashtable symbolTable
protected InterfaceEntry i
protected PrintWriter stream
protected static final int SIGNATURE
protected static final int OPERATIONS
protected int intfType
public void generate(Hashtable symbolTable, InterfaceEntry i, PrintWriter stream)
generate
in interface InterfaceGen
protected void init()
protected void generateSkeleton()
protected void generateStub()
protected void generateHelper()
protected void generateHolder()
protected void generateInterface()
protected void openStream()
protected void writeHeading()
protected void writeSignatureHeading()
protected void writeOperationsHeading()
protected void writeOperationsBody()
protected void writeSignatureBody()
protected void writeClosing()
protected void closeStream()
public int helperType(int index, String indent, TCOffsets tcoffsets, String name, SymtabEntry entry, PrintWriter stream)
helperType
in interface JavaGenerator
public int type(int index, String indent, TCOffsets tcoffsets, String name, SymtabEntry entry, PrintWriter stream)
type
in interface JavaGenerator
public void helperRead(String entryName, SymtabEntry entry, PrintWriter stream)
helperRead
in interface JavaGenerator
public void helperWrite(SymtabEntry entry, PrintWriter stream)
helperWrite
in interface JavaGenerator
public int read(int index, String indent, String name, SymtabEntry entry, PrintWriter stream)
read
in interface JavaGenerator
public int write(int index, String indent, String name, SymtabEntry entry, PrintWriter stream)
write
in interface JavaGenerator
Copyright © 2016 JBoss by Red Hat. All rights reserved.