/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package stanhebben.zenscript.parser.expression; import stanhebben.zenscript.compiler.IEnvironmentMethod; import stanhebben.zenscript.expression.ExpressionBool; import stanhebben.zenscript.expression.partial.IPartialExpression; import stanhebben.zenscript.type.ZenType; import stanhebben.zenscript.util.ZenPosition; /** * * @author Stanneke */ public class ParsedExpressionBool extends ParsedExpression { private final boolean value; public ParsedExpressionBool(ZenPosition position, boolean value) { super(position); this.value = value; } @Override public IPartialExpression compile(IEnvironmentMethod environment, ZenType predictedType) { return new ExpressionBool(getPosition(), value); } }