|
|||||||||||
| 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.VisualBasicEnumeration
A class generating a Visual Basic enumeration declaration.
| Field Summary | |
static int |
FRIEND
The friend access modifier constant. |
static int |
PRIVATE
The private access modifier constant. |
static int |
PROTECTED
The protected access modifier constant. |
static int |
PROTECTED_FRIEND
The protected friend 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 | |
VisualBasicEnumeration(int modifiers,
java.lang.String name)
Creates a new enumeration code generator with the specified modifiers. |
|
VisualBasicEnumeration(java.lang.String name)
Creates a new enumeration code generator with public access. |
|
| Method Summary | |
void |
addConstant(java.lang.String name)
Adds a constant to the enumeration. |
void |
addConstant(java.lang.String name,
java.lang.String value)
Adds a constant to the enumeration. |
void |
addConstant(java.lang.String name,
java.lang.String value,
VisualBasicComment comment)
Adds a constant to the enumeration. |
int |
category()
Returns a numeric category number for the code element. |
void |
print(java.io.PrintWriter out,
CodeStyle style,
int indent)
Prints the code element to the specified output 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 SHADOWS
| Constructor Detail |
public VisualBasicEnumeration(java.lang.String name)
name - the enumeration name
public VisualBasicEnumeration(int modifiers,
java.lang.String name)
modifiers - the modifier flag constantsname - the enumeration name| Method Detail |
public int category()
category in class CodeElementpublic void addConstant(java.lang.String name)
name - the constant name
public void addConstant(java.lang.String name,
java.lang.String value)
name - the constant namevalue - the constant value
public void addConstant(java.lang.String name,
java.lang.String value,
VisualBasicComment comment)
name - the constant namevalue - the constant value, or nullcomment - the constant comment
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 | ||||||||||