@SuppressWarnings("deprecation") static StaticScope decodeScope(ThreadContext context, StaticScope parent, String scopeString) { String[][] decodedScope = decodeScopeDescriptor(scopeString); String scopeTypeName = decodedScope[0][0]; String[] names = decodedScope[1]; StaticScope scope = null; switch (StaticScope.Type.valueOf(scopeTypeName)) { case BLOCK: scope = context.runtime.getStaticScopeFactory().newBlockScope(parent, names); break; case EVAL: scope = context.runtime.getStaticScopeFactory().newEvalScope(parent, names); break; case LOCAL: scope = context.runtime.getStaticScopeFactory().newLocalScope(parent, names); break; } setAritiesFromDecodedScope(scope, decodedScope[0][2]); scope.setScopeType(IRScopeType.valueOf(decodedScope[0][3])); return scope; }
@SuppressWarnings("deprecation") static StaticScope decodeScope(ThreadContext context, StaticScope parent, String scopeString) { String[][] decodedScope = decodeScopeDescriptor(scopeString); String scopeTypeName = decodedScope[0][0]; String[] names = decodedScope[1]; StaticScope scope = null; switch (StaticScope.Type.valueOf(scopeTypeName)) { case BLOCK: scope = context.runtime.getStaticScopeFactory().newBlockScope(parent, names); break; case EVAL: scope = context.runtime.getStaticScopeFactory().newEvalScope(parent, names); break; case LOCAL: scope = context.runtime.getStaticScopeFactory().newLocalScope(parent, names); break; } setAritiesFromDecodedScope(scope, decodedScope[0][2]); scope.setScopeType(IRScopeType.valueOf(decodedScope[0][3])); return scope; }
public static StaticScope decodeScope(ThreadContext context, StaticScope parent, String scopeString) { String[][] decodedScope = decodeScopeDescriptor(scopeString); StaticScope scope = null; switch (StaticScope.Type.valueOf(decodedScope[0][0])) { case BLOCK: scope = context.runtime.getStaticScopeFactory().newBlockScope(parent, decodedScope[1]); break; case EVAL: scope = context.runtime.getStaticScopeFactory().newEvalScope(parent, decodedScope[1]); break; case LOCAL: scope = context.runtime.getStaticScopeFactory().newLocalScope(parent, decodedScope[1]); break; } setAritiesFromDecodedScope(scope, decodedScope[0]); return scope; }
public static StaticScope decodeScope(ThreadContext context, StaticScope parent, String scopeString) { String[][] decodedScope = decodeScopeDescriptor(scopeString); StaticScope scope = null; switch (StaticScope.Type.valueOf(decodedScope[0][0])) { case BLOCK: scope = context.runtime.getStaticScopeFactory().newBlockScope(parent, decodedScope[1]); break; case EVAL: scope = context.runtime.getStaticScopeFactory().newEvalScope(parent, decodedScope[1]); break; case LOCAL: scope = context.runtime.getStaticScopeFactory().newLocalScope(parent, decodedScope[1]); break; } setAritiesFromDecodedScope(scope, decodedScope[0]); return scope; }