|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.sourceflow.CodeElement
org.sourceflow.CodeContainer
org.sourceflow.visualbasic.VisualBasicType
An abstract superclass for the various Visual Basic type code generators.
| Field Summary | |
protected VisualBasicComment |
comment
The type comment. |
protected java.lang.String[] |
extendTypes
The names of the types that this type extends and/or implements. |
protected int |
modifiers
The type modifier flags. |
protected java.lang.String |
name
The type name. |
| Constructor Summary | |
protected |
VisualBasicType(int modifiers,
java.lang.String name,
java.lang.String extendType)
Creates a new type code generator with the specified access modifier that extends a specified type. |
protected |
VisualBasicType(int modifiers,
java.lang.String name,
java.lang.String[] extendTypes)
Creates a new type code generator with the specified access modifier that extends a specified type. |
| Method Summary | |
void |
addComment(VisualBasicComment comment)
Sets the type comment. |
protected void |
print(java.io.PrintWriter out,
CodeStyle style,
int indent,
java.lang.String type,
boolean compact)
Prints the type to the specified stream. |
java.lang.String |
toString()
Returns the type name. |
| Methods inherited from class org.sourceflow.CodeContainer |
addElement, printContents, size |
| Methods inherited from class org.sourceflow.CodeElement |
category, compareTo, print, printSeparator |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected int modifiers
protected java.lang.String name
protected java.lang.String[] extendTypes
protected VisualBasicComment comment
| Constructor Detail |
protected VisualBasicType(int modifiers,
java.lang.String name,
java.lang.String extendType)
modifiers - the modifier flag constantsname - the type nameextendType - the type to extend and/or implement
protected VisualBasicType(int modifiers,
java.lang.String name,
java.lang.String[] extendTypes)
modifiers - the modifier flag constantsname - the type nameextendTypes - the types to extend and/or implement| Method Detail |
public java.lang.String toString()
public void addComment(VisualBasicComment comment)
comment - the new type comment
protected void print(java.io.PrintWriter out,
CodeStyle style,
int indent,
java.lang.String type,
boolean compact)
out - the output streamstyle - the code style to useindent - the indentation leveltype - the type namecompact - the compact printing flag
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||