Package com.asakusafw.dmdl.model

Examples of com.asakusafw.dmdl.model.AstAttributeElement


            LiteralKind kind) {
        assert environment != null;
        assert elements != null;
        assert elementName != null;
        assert kind != null;
        AstAttributeElement element = elements.remove(elementName);
        if (element == null) {
            return null;
        } else if ((element.value instanceof AstLiteral) == false) {
            environment.report(new Diagnostic(
                    Level.ERROR,
View Full Code Here


            LiteralKind kind) {
        assert environment != null;
        assert elements != null;
        assert elementName != null;
        assert kind != null;
        AstAttributeElement element = elements.remove(elementName);
        if (element == null) {
            return null;
        } else if ((element.value instanceof AstLiteral) == false) {
            environment.report(new Diagnostic(
                    Level.ERROR,
View Full Code Here

            LiteralKind kind) {
        assert environment != null;
        assert elements != null;
        assert elementName != null;
        assert kind != null;
        AstAttributeElement element = elements.remove(elementName);
        if (element == null) {
            return null;
        } else if ((element.value instanceof AstLiteral) == false) {
            environment.report(new Diagnostic(
                    Level.ERROR,
View Full Code Here

    private String getString(DmdlSemantics environment, AstAttribute attribute) {
        assert environment != null;
        assert attribute != null;
        Map<String, AstAttributeElement> elements = AttributeUtil.getElementMap(attribute);
        AstAttributeElement target = elements.remove(ELEMENT_NAME);
        environment.reportAll(AttributeUtil.reportInvalidElements(attribute, elements.values()));
        if (target == null) {
            environment.report(new Diagnostic(
                    Level.ERROR,
                    attribute.name,
View Full Code Here

            AstAttribute attribute) {
        assert environment != null;
        assert declaration != null;
        assert attribute != null;
        Map<String, AstAttributeElement> elements = AttributeUtil.getElementMap(attribute);
        AstAttributeElement nameElement = elements.remove(ELEMENT_NAME);
        environment.reportAll(AttributeUtil.reportInvalidElements(attribute, elements.values()));
        if (nameElement == null) {
            environment.report(new Diagnostic(
                    Level.ERROR,
                    attribute.name,
View Full Code Here

    private String getString(DmdlSemantics environment, AstAttribute attribute) {
        assert environment != null;
        assert attribute != null;
        Map<String, AstAttributeElement> elements = AttributeUtil.getElementMap(attribute);
        AstAttributeElement target = elements.remove(ELEMENT_NAME);
        environment.reportAll(AttributeUtil.reportInvalidElements(attribute, elements.values()));
        if (target == null) {
            environment.report(new Diagnostic(
                    Level.ERROR,
                    attribute.name,
View Full Code Here

            }
        }

        PropertySymbol takeProperty(String elementName) {
            assert elementName != null;
            AstAttributeElement nameElement = elements.remove(elementName);
            if (nameElement == null) {
                return null;
            } else if ((nameElement.value instanceof AstSimpleName) == false) {
                error(
                        nameElement,
View Full Code Here

            return property;
        }

        AstLiteral takeLiteral(String elementName) {
            assert elementName != null;
            AstAttributeElement nameElement = elements.remove(elementName);
            if (nameElement == null) {
                return null;
            } else if ((nameElement.value instanceof AstLiteral) == false) {
                error(
                        nameElement,
View Full Code Here

            throw new IllegalArgumentException("name must not be null"); //$NON-NLS-1$
        }
        return new AstAttribute(
                null,
                toName(NamespaceDriver.TARGET_NAME),
                new AstAttributeElement(
                        null,
                        toSimpleName(NamespaceDriver.ELEMENT_NAME),
                        name));
    }
View Full Code Here

     */
    public static AstAttribute getOriginalName(String name) {
        return new AstAttribute(
                null,
                toName(OriginalNameDriver.TARGET_NAME),
                new AstAttributeElement(
                        null,
                        toSimpleName(OriginalNameDriver.ELEMENT_NAME),
                        new AstLiteral(
                                null,
                                AstLiteral.quote(name),
View Full Code Here

TOP

Related Classes of com.asakusafw.dmdl.model.AstAttributeElement

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.