1 19 package org.netbeans.modules.javacore.jmiimpl.javamodel; 20 21 import org.netbeans.jmi.javamodel.ArrayAccess; 22 import org.netbeans.jmi.javamodel.ArrayAccessClass; 23 import org.netbeans.jmi.javamodel.Expression; 24 import org.netbeans.jmi.javamodel.PrimaryExpression; 25 import org.netbeans.mdr.storagemodel.StorableClass; 26 27 28 29 33 public abstract class ArrayAccessClassImpl extends MEFactory implements ArrayAccessClass { 34 35 36 public ArrayAccessClassImpl(StorableClass s) { 37 super(s); 38 } 39 40 44 public ArrayAccess createArrayAccess() { 45 return create(null, null); 46 } 47 48 private ArrayAccessImpl create(PrimaryExpression array, Expression index) { 49 ArrayAccessImpl result = (ArrayAccessImpl) create(null); 50 result.setNew(); 51 result.setData(array, index); 52 return result; 53 } 54 55 public ArrayAccess createArrayAccess(PrimaryExpression array, Expression index) { 56 return create(array, index); 57 } 58 } 59 | Popular Tags |