1 19 package org.netbeans.modules.javacore.jmiimpl.javamodel; 20 21 import java.util.*; 22 import org.netbeans.jmi.javamodel.Element; 23 import org.netbeans.mdr.storagemodel.StorableObject; 24 25 29 public abstract class InvocationImpl extends ElementReferenceImpl { 30 protected LightAttrList parameters = null; 31 32 33 public InvocationImpl(StorableObject o) { 34 super(o); 35 } 36 37 public List getParameters() { 38 if (!childrenInited) { 39 initChildren(); 40 } 41 return parameters; 42 } 43 44 void setData(String name, List parameters) { 45 setData(name); 46 this.parameters = createChildrenList("parameters", parameters, CHANGED_PARAMETERS); } 48 49 protected void _delete() { 50 if (childrenInited) { 52 deleteChildren(parameters); 53 } 54 super._delete(); 58 } 59 60 public List getChildren() { 61 return new ArrayList(getParameters()); 62 } 63 64 public void replaceChild(Element oldElement,Element newElement) { 65 replaceObject(getParameters(),oldElement,newElement); 66 } 67 68 public String getSourceText() { 69 return getRawText(); 70 } 71 } 72 | Popular Tags |