1 19 package org.netbeans.modules.javacore.jmiimpl.javamodel; 20 21 import java.util.List ; 22 import org.netbeans.jmi.javamodel.ConstructorInvocation; 23 import org.netbeans.jmi.javamodel.ConstructorInvocationClass; 24 import org.netbeans.jmi.javamodel.PrimaryExpression; 25 import org.netbeans.mdr.storagemodel.StorableClass; 26 27 31 public abstract class ConstructorInvocationClassImpl extends MEFactory implements ConstructorInvocationClass { 32 33 34 public ConstructorInvocationClassImpl(StorableClass s) { 35 super(s); 36 } 37 38 42 public ConstructorInvocation createConstructorInvocation() { 43 return create(false, null, null); 44 } 45 46 private ConstructorInvocationImpl create(boolean hasSuper, PrimaryExpression parentClass, List parameters) { 47 ConstructorInvocationImpl result = (ConstructorInvocationImpl) create(null); 48 result.setNew(); 49 result.setData(hasSuper, parentClass, parameters); 50 return result; 51 } 52 53 public ConstructorInvocation createConstructorInvocation(String name, List parameters, boolean hasSuper, PrimaryExpression parentClass) { 54 return create(hasSuper, parentClass, parameters); 55 } 56 } 57 | Popular Tags |