public void setStrategy(IASTNodeAdapter<? extends SimpleNode> adapter, int strategy,
AbstractScopeNode<?> scopeAdapter) {
switch (strategy) {
case IOffsetStrategy.AFTERINIT:
this.offsetStrategy = new InitOffset(adapter, this.doc, this.getAdapterPrefs());
break;
case IOffsetStrategy.BEFORECURRENT:
this.offsetStrategy = new BeforeCurrentOffset(adapter, this.doc, this.getAdapterPrefs(), scopeAdapter);
break;
case IOffsetStrategy.BEGIN: