Package org.sablecc.sablecc.core.transformation.ProductionTransformationElement

Examples of org.sablecc.sablecc.core.transformation.ProductionTransformationElement.ExplicitSingleElement


        if (!(transformationElements.get(0) instanceof ProductionTransformationElement.ImplicitSingleElement)) {
            return true;
        }

        ExplicitSingleElement firstElement = (ExplicitSingleElement) transformationElements
                .get(0);

        if (firstElement.getDeclaration().getUnaryOperator() != null) {
            PUnaryOperator operator = firstElement.getDeclaration()
                    .getUnaryOperator();

            if (!(operator instanceof AZeroOrOneUnaryOperator)) {
                return false;
            }
        }

        if (firstElement.getReference() == null) {
            return false;
        }

        if (!(firstElement.getReference() instanceof Tree.TreeProduction)) {
            return false;
        }

        return true;
    }
View Full Code Here

TOP

Related Classes of org.sablecc.sablecc.core.transformation.ProductionTransformationElement.ExplicitSingleElement

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.