|
|||||||||||
| 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
org.sourceflow.visualbasic.VisualBasicClass
A class generating a Visual Basic class declaration.
| Field Summary | |
static int |
FRIEND
The internal access modifier constant. |
static int |
MUST_INHERIT
The must inherit modifier constant. |
static int |
NOT_INHERITABLE
The not inheritable modifier constant. |
static int |
PRIVATE
The private access modifier constant. |
static int |
PROTECTED
The protected access modifier constant. |
static int |
PROTECTED_FRIEND
The protected internal access modifier constant. |
static int |
PUBLIC
The public access modifier constant. |
static int |
SHADOWS
The shadows modifier constant. |
| Fields inherited from class org.sourceflow.visualbasic.VisualBasicType |
comment, extendTypes, modifiers, name |
| Constructor Summary | |
VisualBasicClass(int modifiers,
java.lang.String name)
Creates a new class code generator with the specified modifiers. |
|
VisualBasicClass(int modifiers,
java.lang.String name,
java.lang.String extendsClass)
Creates a new class code generator with the specified access modifier that extends the specified class. |
|
VisualBasicClass(int modifiers,
java.lang.String name,
java.lang.String[] extendClasses)
Creates a new class code generator with the specified access modifier that extends and implements the specified classes or interfaces. |
|
VisualBasicClass(java.lang.String name)
Creates a new class code generator with a public access modifier. |
|
| Method Summary | |
void |
addClass(VisualBasicClass member)
Adds an inner class as a member. |
void |
addConstructor(VisualBasicConstructor member)
Adds a constructor to the class. |
void |
addEnumeration(VisualBasicEnumeration member)
Adds an enumeration as a member. |
void |
addMethod(VisualBasicMethod member)
Adds a method to the class. |
int |
category()
Returns a numeric category number for the code element. |
void |
print(java.io.PrintWriter out,
CodeStyle style,
int indent)
Prints the class to the specified stream. |
| Methods inherited from class org.sourceflow.visualbasic.VisualBasicType |
addComment, print, toString |
| Methods inherited from class org.sourceflow.CodeContainer |
addElement, printContents, size |
| Methods inherited from class org.sourceflow.CodeElement |
compareTo, printSeparator |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int PUBLIC
public static final int PROTECTED_FRIEND
public static final int PROTECTED
public static final int FRIEND
public static final int PRIVATE
public static final int MUST_INHERIT
public static final int NOT_INHERITABLE
public static final int SHADOWS
| Constructor Detail |
public VisualBasicClass(java.lang.String name)
name - the class name
public VisualBasicClass(int modifiers,
java.lang.String name)
modifiers - the modifier flag constantsname - the class name
public VisualBasicClass(int modifiers,
java.lang.String name,
java.lang.String extendsClass)
modifiers - the modifier flag constantsname - the class nameextendsClass - the class to extend or implement
public VisualBasicClass(int modifiers,
java.lang.String name,
java.lang.String[] extendClasses)
modifiers - the modifier flag constantsname - the class nameextendClasses - the classes to extend or implement| Method Detail |
public int category()
category in class CodeElementpublic void addClass(VisualBasicClass member)
member - the inner class to addpublic void addEnumeration(VisualBasicEnumeration member)
member - the enumeration to addpublic void addConstructor(VisualBasicConstructor member)
member - the member to addpublic void addMethod(VisualBasicMethod member)
member - the member to add
public void print(java.io.PrintWriter out,
CodeStyle style,
int indent)
print in class CodeElementout - the output streamstyle - the code style to useindent - the indentation level
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||