Examples of LiteralKind


Examples of com.asakusafw.dmdl.model.LiteralKind

    }

    private boolean acceptsLiteral(PropertyType type, AstLiteral value) {
        assert type != null;
        assert value != null;
        LiteralKind literalKind = value.getKind();
        switch (type.getKind()) {
        case BOOLEAN:
            return literalKind == LiteralKind.BOOLEAN;
        case BYTE:
        case SHORT:
View Full Code Here

Examples of com.asakusafw.utils.java.model.syntax.LiteralKind

     * @throws IllegalArgumentException
     *     {@code token}に空が指定された場合
     */
    public void setToken(String token) {
        Util.notNull(token, "token"); //$NON-NLS-1$
        LiteralKind kind = computeLiteralKind(token);
        if (kind == null) {
            throw new IllegalArgumentException(MessageFormat.format(
                "Invalid literal token: {0}", //$NON-NLS-1$
                LiteralAnalyzer.stringLiteralOf(token)));
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.