1 19 package org.netbeans.modules.javacore.jmiimpl.javamodel; 20 21 import java.util.List ; 22 import org.netbeans.jmi.javamodel.InitialValue; 23 import org.netbeans.jmi.javamodel.LocalVarDeclaration; 24 import org.netbeans.jmi.javamodel.LocalVarDeclarationClass; 25 import org.netbeans.jmi.javamodel.TypeReference; 26 import org.netbeans.mdr.storagemodel.StorableClass; 27 28 29 33 public abstract class LocalVarDeclarationClassImpl extends MEFactory implements LocalVarDeclarationClass { 34 35 36 public LocalVarDeclarationClassImpl(StorableClass s) { 37 super(s); 38 } 39 40 44 public LocalVarDeclaration createLocalVarDeclaration() { 45 return create(false, null, null); 46 } 47 48 private LocalVarDeclarationImpl create(boolean isFinal, TypeReference typeName, List variables) { 49 LocalVarDeclarationImpl result = (LocalVarDeclarationImpl) create(null); 50 result.setNew(); 51 result.setData(variables, isFinal, typeName); 52 return result; 53 } 54 55 public LocalVarDeclaration createLocalVarDeclaration(boolean isFinal, TypeReference typeName, List variables) { 56 return create(isFinal, typeName, variables); 57 } 58 } 59 | Popular Tags |