1 19 package org.netbeans.modules.javacore.jmiimpl.javamodel; 20 21 import org.netbeans.jmi.javamodel.Expression; 22 import org.netbeans.jmi.javamodel.SynchronizedStatement; 23 import org.netbeans.jmi.javamodel.SynchronizedStatementClass; 24 import org.netbeans.jmi.javamodel.Statement; 25 import org.netbeans.jmi.javamodel.StatementBlock; 26 import org.netbeans.mdr.storagemodel.StorableClass; 27 28 32 public abstract class SynchronizedStatementClassImpl extends MEFactory implements SynchronizedStatementClass { 33 34 35 public SynchronizedStatementClassImpl(StorableClass s) { 36 super(s); 37 } 38 39 43 public SynchronizedStatement createSynchronizedStatement() { 44 return create(null, null); 45 } 46 47 private SynchronizedStatementImpl create(Expression expression, StatementBlock body) { 48 SynchronizedStatementImpl result = (SynchronizedStatementImpl) create(null); 49 result.setNew(); 50 result.setData(expression, body); 51 return result; 52 } 53 54 public SynchronizedStatement createSynchronizedStatement(Expression expression, StatementBlock body) { 55 return create(expression, body); 56 } 57 } 58 | Popular Tags |