getCachedContext() public method

public getCachedContext ( PredictionContext context ) : PredictionContext
context PredictionContext
return PredictionContext
Ejemplo n.º 1
0
        public void OptimizeConfigs(ATNSimulator interpreter)
        {
            if (readOnly)
            {
                throw new Exception("This set is readonly");
            }
            if (configLookup.Count == 0)
            {
                return;
            }

            foreach (ATNConfig config in configs)
            {
                //			int before = PredictionContext.getAllContextNodes(config.context).size();
                config.context = interpreter.getCachedContext(config.context);
                //			int after = PredictionContext.getAllContextNodes(config.context).size();
                //			System.out.println("configs "+before+"->"+after);
            }
        }