|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.sourceflow.CodeElement
org.sourceflow.visualbasic.VisualBasicVariable
A class generating a Visual Basic variable 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 |
READONLY
The readonly modifier constant. |
static int |
SHADOWS
The shadows modifier constant. |
static int |
SHARED
The shared modifier constant. |
| Constructor Summary | |
VisualBasicVariable(int modifiers,
java.lang.String type,
java.lang.String name)
Creates a new variable with the specified modifiers, type and name. |
|
VisualBasicVariable(int modifiers,
java.lang.String type,
java.lang.String name,
java.lang.String initValue)
Creates a new variable with the specified modifiers, type, name and initializer. |
|
VisualBasicVariable(java.lang.String type,
java.lang.String name)
Creates a new variable with the specified type and name. |
|
VisualBasicVariable(java.lang.String type,
java.lang.String name,
java.lang.String initValue)
Creates a new variable with the specified type, name and initializer. |
|
| Method Summary | |
void |
addArrayInit(java.lang.String elementValue)
Adds initialization code for an array element value. |
void |
addComment(VisualBasicComment comment)
Adds a comment to this variable. |
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. |
java.lang.String |
toString()
Returns the variable name. |
| 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 SHARED
public static final int SHADOWS
public static final int READONLY
| Constructor Detail |
public VisualBasicVariable(java.lang.String type,
java.lang.String name)
type - the variable typename - the variable name
public VisualBasicVariable(int modifiers,
java.lang.String type,
java.lang.String name)
modifiers - the modifier flags to usetype - the variable typename - the variable name
public VisualBasicVariable(java.lang.String type,
java.lang.String name,
java.lang.String initValue)
type - the variable typename - the variable nameinitValue - the initialize value
public VisualBasicVariable(int modifiers,
java.lang.String type,
java.lang.String name,
java.lang.String initValue)
modifiers - the modifier flags to usetype - the variable typename - the variable nameinitValue - the initialize value| Method Detail |
public java.lang.String toString()
public void addComment(VisualBasicComment comment)
comment - the comment to addpublic void addArrayInit(java.lang.String elementValue)
elementValue - the array element valuepublic int category()
category in class CodeElement
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 | ||||||||||