org.jacorb.idl
public class Interface extends TypeDeclaration implements Scope
Version: $Id: Interface.java,v 1.76 2006/10/14 12:25:25 andre.spiegel Exp $
Field Summary | |
---|---|
protected static HashSet | abstractInterfacesabstractInterfaces is to keep a record of those interfaces
that are abstract so any inheriting interface know what to inherit from. |
InterfaceBody | body |
SymbolList | inheritanceSpec |
Constructor Summary | |
---|---|
Interface(int num) |
Method Summary | |
---|---|
void | accept(IDLTreeVisitor visitor) |
boolean | basic() |
Object | clone() |
TypeDeclaration | declaration() override methods from superclass TypeDeclaration |
ScopeData | getScopeData() |
String | getTypeCodeExpression()getTypeCodeExpression produces a string for an expression
of type TypeCode that describes this type. |
String | getTypeCodeExpression(Set knownTypes) |
String[] | get_ids() |
protected boolean | hasAbstractBase()
Returns true if this interface has at least one abstract base type. |
String | helperName() |
String | holderName() |
protected PrintWriter | openOutput(String typeName)
Open a PrintWriter to write to the .java file for typeName. |
void | parse() |
void | print(PrintWriter _ps) |
protected void | printElseNarrowFailed(PrintWriter ps)
Prints the else clause of a narrow method that signals general failure. |
void | printExtractResult(PrintWriter ps, String resultname, String anyname, String resulttype) |
protected void | printHelper()
Generate the helper class for an interface |
protected void | printHolder()
Print the holder class for the interface. |
protected void | printImplSkeleton() |
void | printInsertIntoAny(PrintWriter ps, String anyname, String varname) |
protected void | printInterface()
generate the signature interface |
protected void | printIRHelper() |
protected void | printLocalBase() |
protected void | printLocalTie() |
protected void | printNarrow(PrintWriter ps, boolean checked, boolean forCorbaObject)
Generates a narrow method for the Helper class. |
protected void | printOperations()
generate the operations Java interface (not for pseudo interfaces) |
protected void | printPackage(PrintWriter ps) |
String | printReadExpression(String Streamname) |
protected void | printStub()
Generates a stub class for this Interface |
protected void | printStubInterposition(PrintWriter ps)
Generates the code for a narrow method with which a stub is inserted
between an object implementation and the client. |
protected void | printSuperclassImports(PrintWriter ps)
If this interface inherits from classes in the unnamed package,
generate explicit import statements for them. |
protected void | printTieSkeleton()
print the stream-based skeleton class |
String | printWriteStatement(String var_name, String Streamname) |
void | setEnclosingSymbol(IdlSymbol s) |
void | setPackage(String s) |
void | setScopeData(ScopeData data) |
void | set_abstract() |
void | set_included(boolean i) |
void | set_locality(boolean local)
set by the parser after creating this object depending
on the presence of the "local" modifier. |
String | toString() |
String | typeName() |
abstractInterfaces
is to keep a record of those interfaces
that are abstract so any inheriting interface know what to inherit from.getTypeCodeExpression
produces a string for an expression
of type TypeCode that describes this type.Returns: a string value.
Returns: null, if the output file already exists and is more recent than the input IDL file.
Parameters: ps the PrintWriter to which the method will be written checked determines whether an ordinary narrow() method or an unchecked_narrow() method should be generated forCorbaObject determines whether the parameter type of the narrow method is org.omg.CORBA.Object or java.lang.Object