24252627282930
{ switch (context) { case ARRAY: return new ArrayStrategy(this); } throw new UnsupportedContextException(Context.PE_INSTANCE, context); }
107108109110111112113114115
case PE_INSTANCE: return new PEInstanceStrategy(this); case VARIABLE_ID: return new VariableIDStrategy(this); default: throw new UnsupportedContextException( Context.PE_ANNOTATION, context); } }
4849505152535455
this, mAdmireRegistry, mDispelOptimiser, mExecutionState); case FOR_UPDATE: return new ForAssignmentStrategy( this, mAdmireRegistry, mDispelOptimiser, mExecutionState); default: throw new UnsupportedContextException(Context.FOR, context); } }
6263646566676869
DispelExecutionState blockExecutionState = SimpleDispelExecutionState.makeBlockScope(mExecutionState); return new RootStrategy( this, mAdmireRegistry, mDispelOptimiser, blockExecutionState); default: throw new UnsupportedContextException(Context.IF, context); } }
46474849505152
{ switch (context) { case STYPE: return new STypeStrategy(this, mExecutionState); } throw new UnsupportedContextException(Context.CONNECTION, context); }
44454647484950
case STYPE: return new STypeStrategy(this, mExecutionState); case DTYPE: return new DTypeStrategy(this, mExecutionState); } throw new UnsupportedContextException(Context.TUPLE_ELEMENT, context); }
33343536373839
} public ContextStrategy getStrategy(Context context) throws UnsupportedContextException { throw new UnsupportedContextException(Context.TUPLE, context); }
87888990919293
case SEQUENCE: return new SequenceStrategy(this, mAdmireRegistry, mDispelOptimiser, mExecutionState); case INNER_EXPRESSION: return new InnerExpressionStrategy(this, mAdmireRegistry, mDispelOptimiser, mExecutionState); } throw new UnsupportedContextException(mMyContext, context); }
47484950515253
case LIST: return new DTypeCollectionStrategy(this, mExecutionState); case TUPLE: return new DTypeTupleStrategy(this, mExecutionState); } throw new UnsupportedContextException(Context.LIST, context); }
41424344454647
case INPUT_DECLARATION: return new IOStrategy(this, mExecutionState, Context.INPUT_DECLARATION); case OUTPUT_DECLARATION: return new IOStrategy(this, mExecutionState, Context.OUTPUT_DECLARATION); } throw new UnsupportedContextException(Context.TUPLE, context); }