Package org.rascalmpl.interpreter.staticErrors

Examples of org.rascalmpl.interpreter.staticErrors.InvalidDateTimeComparison


  }

  private void checkDateTimeComparison(DateTimeResult that) {
    if (that.getValue().isDate()) {
      if (this.getValue().isTime()) {
        throw new InvalidDateTimeComparison("date","time",ctx.getCurrentAST());
      } else if (this.getValue().isDateTime()) {
        throw new InvalidDateTimeComparison("date","datetime",ctx.getCurrentAST());       
      }
    } else if (that.getValue().isTime()) {
      if (this.getValue().isDate()) {
        throw new InvalidDateTimeComparison("time","date",ctx.getCurrentAST());       
      } else if (this.getValue().isDateTime()) {
        throw new InvalidDateTimeComparison("time","datetime",ctx.getCurrentAST());       
      }
    } else {
      if (this.getValue().isDate()) {
        throw new InvalidDateTimeComparison("datetime","date",ctx.getCurrentAST());
      } else if (this.getValue().isTime()) {
        throw new InvalidDateTimeComparison("datetime","time",ctx.getCurrentAST());       
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.rascalmpl.interpreter.staticErrors.InvalidDateTimeComparison

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.