1 11 package org.eclipse.jdt.internal.codeassist.complete; 12 13 33 34 import org.eclipse.jdt.core.compiler.CharOperation; 35 import org.eclipse.jdt.internal.compiler.ast.*; 36 37 public class CompletionOnFieldType extends FieldDeclaration { 38 public boolean isLocalVariable; 39 40 public CompletionOnFieldType(TypeReference type, boolean isLocalVariable){ 41 super(); 42 this.sourceStart = type.sourceStart; 43 this.sourceEnd = type.sourceEnd; 44 this.type = type; 45 this.name = CharOperation.NO_CHAR; 46 this.isLocalVariable = isLocalVariable; 47 if (type instanceof CompletionOnSingleTypeReference) { 48 ((CompletionOnSingleTypeReference) type).fieldTypeCompletionNode = this; 49 } 50 } 51 52 public StringBuffer printStatement(int tab, StringBuffer output) { 53 return type.print(tab, output).append(';'); 54 } 55 } 56 | Popular Tags |