1 19 package org.netbeans.modules.javacore.jmiimpl.javamodel; 20 21 import java.util.List ; 22 import org.netbeans.jmi.javamodel.MethodInvocation; 23 import org.netbeans.jmi.javamodel.MethodInvocationClass; 24 import org.netbeans.jmi.javamodel.PrimaryExpression; 25 import org.netbeans.mdr.storagemodel.StorableClass; 26 27 28 29 30 34 public abstract class MethodInvocationClassImpl extends MEFactory implements MethodInvocationClass { 35 36 37 public MethodInvocationClassImpl(StorableClass s) { 38 super(s); 39 } 40 41 45 public MethodInvocation createMethodInvocation() { 46 return create(null, null, null, false); 47 } 48 49 private MethodInvocationImpl create(String name, List parameters, PrimaryExpression parentClass, boolean hasSuper) { 50 MethodInvocationImpl result = (MethodInvocationImpl) create(null); 51 result.setNew(); 52 result.setData(name, parameters, parentClass, hasSuper); 53 return result; 54 } 55 56 public MethodInvocation createMethodInvocation(String name, List parameters, PrimaryExpression parentClass, boolean hasSuper) { 57 return create(name, parameters, parentClass, hasSuper); 58 } 59 } 60 | Popular Tags |