Package org.antlr.misc

Examples of org.antlr.misc.MutableInteger


    }
   
    @Override
    public AuraContext pushSystemContext() {
        AuraContext context = systemContext.get();
        MutableInteger count = systemDepth.get();
       
        if (count == null) {
            count = new MutableInteger(1);
            systemDepth.set(count);
        } else {
            count.value += 1;
        }
        if (context == null) {
View Full Code Here


        return context;
    }

    @Override
    public void popSystemContext() {
        MutableInteger count = systemDepth.get();

        if (count == null || count.value == 0) {
            throw new AuraRuntimeException("unmatched pop");
        }
        count.value -= 1;
View Full Code Here

        count.value -= 1;
    }
   
    @Override
    public AuraContext getCurrentContext() {
        MutableInteger count = systemDepth.get();

        if (count != null && count.value > 0) {
            return systemContext.get();
        }
        return currentContext.get();
View Full Code Here

    @Override
    public void release() {
        currentContext.set(null);
        systemContext.set(null);

        MutableInteger count = systemDepth.get();
        if (count != null && count.value != 0) {
            throw new AuraRuntimeException("unmatched push");
        }
    }
View Full Code Here

TOP

Related Classes of org.antlr.misc.MutableInteger

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.