1 11 package org.eclipse.jdt.internal.codeassist.select; 12 13 import org.eclipse.jdt.internal.compiler.ast.LocalDeclaration; 14 import org.eclipse.jdt.internal.compiler.lookup.BlockScope; 15 16 public class SelectionOnLocalName extends LocalDeclaration{ 17 18 public SelectionOnLocalName(char[] name, int sourceStart, int sourceEnd) { 19 20 super(name, sourceStart, sourceEnd); 21 } 22 23 public void resolve(BlockScope scope) { 24 25 super.resolve(scope); 26 throw new SelectionNodeFound(binding); 27 } 28 29 public StringBuffer printAsExpression(int indent, StringBuffer output) { 30 printIndent(indent, output); 31 output.append("<SelectionOnLocalName:"); printModifiers(this.modifiers, output); 33 type.print(0, output).append(' ').append(this.name); 34 if (initialization != null) { 35 output.append(" = "); initialization.printExpression(0, output); 37 } 38 return output.append('>'); 39 } 40 41 public StringBuffer printStatement(int indent, StringBuffer output) { 42 this.printAsExpression(indent, output); 43 return output.append(';'); 44 } 45 } 46 | Popular Tags |