1 19 package org.netbeans.modules.javacore.jmiimpl.javamodel; 20 21 import java.util.List ; 22 import org.netbeans.jmi.javamodel.*; 23 import org.netbeans.mdr.storagemodel.StorableClass; 24 25 29 public abstract class NewClassExpressionClassImpl extends MEFactory implements NewClassExpressionClass { 30 31 32 public NewClassExpressionClassImpl(StorableClass s) { 33 super(s); 34 } 35 36 40 public NewClassExpression createNewClassExpression() { 41 return create(null, null, null, null, null); 42 } 43 44 private NewClassExpressionImpl create(String name, List parameters, PrimaryExpression enclosingClass, ClassDefinition classDefinition, MultipartId className) { 45 NewClassExpressionImpl result = (NewClassExpressionImpl) create(null); 46 result.setNew(); 47 result.setData(name, parameters, enclosingClass, classDefinition, className); 48 return result; 49 } 50 51 public NewClassExpression createNewClassExpression(String name, List parameters, PrimaryExpression enclosingClass, MultipartId className, ClassDefinition classDefinition) { 52 return create(name, parameters, enclosingClass, classDefinition, className); 53 } 54 } 55 | Popular Tags |