public int modifiers;
public TypeReference type;
+
public Expression initialization;
public char[] name;
+
public int declarationEnd;
+
public int declarationSourceStart;
+
public int declarationSourceEnd;
+
public int modifiersSourceStart;
-
- public AbstractVariableDeclaration() {}
- public FlowInfo analyseCode(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) {
+ public AbstractVariableDeclaration() {
+ }
+
+ public FlowInfo analyseCode(BlockScope currentScope,
+ FlowContext flowContext, FlowInfo flowInfo) {
return flowInfo;
}
public abstract String name();
+
public StringBuffer printStatement(int indent, StringBuffer output) {
printIndent(indent, output);
printModifiers(this.modifiers, output);
- type.print(0, output).append(' ').append(this.name);
+ type.print(0, output).append(' ').append(this.name);
if (initialization != null) {
output.append(" = "); //$NON-NLS-1$
initialization.printExpression(indent, output);
return output.append(';');
}
- public void resolve(BlockScope scope) {}
-
+ public void resolve(BlockScope scope) {
+ }
+
public String toString(int tab) {
String s = tabString(tab);