|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.sourceflow.CodeElement
org.sourceflow.visualbasic.VisualBasicMethod
A class generating a Visual Basic method declaration.
| Field Summary | |
static int |
FRIEND
The friend access modifier constant. |
static int |
MUST_OVERRIDE
The must override modifier constant. |
static int |
NOT_OVERRIDABLE
The not overridable modifier constant. |
static int |
OVERLOADS
The overloads modifier constant. |
static int |
OVERRIDABLE
The overridable modifier constant. |
static int |
OVERRIDES
The overrides 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. |
static int |
SHARED
The shared modifier constant. |
| Constructor Summary | |
VisualBasicMethod(int modifiers,
java.lang.String name,
java.lang.String args,
java.lang.String returnType)
Creates a new method with the specified arguments. |
|
VisualBasicMethod(java.lang.String name)
Creates a new method with the specified name. |
|
VisualBasicMethod(java.lang.String name,
java.lang.String args)
Creates a new method with the specified name and arguments. |
|
VisualBasicMethod(java.lang.String name,
java.lang.String args,
java.lang.String returnType)
Creates a new method with the specified arguments. |
|
| Method Summary | |
void |
addCode(java.lang.String codeLines)
Adds one or more lines of actual code. |
void |
addComment(VisualBasicComment comment)
Sets a comment for this method. |
boolean |
canPrintCode()
Checks if the method source code can the printed. |
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. |
void |
setPrintCode(boolean value)
Sets the print code flag. |
java.lang.String |
toString()
Returns the method 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 OVERRIDABLE
public static final int NOT_OVERRIDABLE
public static final int OVERRIDES
public static final int MUST_OVERRIDE
public static final int OVERLOADS
| Constructor Detail |
public VisualBasicMethod(java.lang.String name)
name - the method name
public VisualBasicMethod(java.lang.String name,
java.lang.String args)
name - the method nameargs - the argument list, excluding parenthesis
public VisualBasicMethod(java.lang.String name,
java.lang.String args,
java.lang.String returnType)
name - the method nameargs - the argument list, excluding parenthesisreturnType - the return type
public VisualBasicMethod(int modifiers,
java.lang.String name,
java.lang.String args,
java.lang.String returnType)
modifiers - the modifier flags to usename - the method nameargs - the argument list, excluding parenthesisreturnType - the return type| Method Detail |
public java.lang.String toString()
public void addCode(java.lang.String codeLines)
codeLines - the lines of Java code to addpublic void addComment(VisualBasicComment comment)
comment - the new method commentpublic int category()
category in class CodeElementpublic boolean canPrintCode()
public void setPrintCode(boolean value)
value - the new print code flag value
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 | ||||||||||