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.LocalVariable; 24 import org.netbeans.jmi.javamodel.LocalVariableClass; 25 import org.netbeans.jmi.javamodel.TypeReference; 26 import org.netbeans.mdr.storagemodel.StorableClass; 27 28 29 33 public abstract class LocalVariableClassImpl extends MEFactory implements LocalVariableClass { 34 35 36 public LocalVariableClassImpl(StorableClass s) { 37 super(s); 38 } 39 40 44 public LocalVariable createLocalVariable() { 45 return create(null, null, false, 0, null, null); 46 } 47 48 private LocalVariableImpl create(String name, List annotations, boolean isFinal, int dimCount, InitialValue initialValue, String initialValueText) { 49 LocalVariableImpl result = (LocalVariableImpl) create(null); 50 result.setNew(); 51 result.setData(name, annotations, isFinal, dimCount, initialValue, initialValueText); 52 return result; 53 } 54 55 public LocalVariable createLocalVariable(String name, List annotations, boolean isFinal, TypeReference typeName, int dimCount, InitialValue initialValue, String initialValueText) { 56 return create(name, annotations, isFinal, dimCount, initialValue, initialValueText); 57 } 58 } 59 | Popular Tags |