All Downloads are FREE. Search and download functionalities are using the official Maven repository.

js.prompto.literal.DateLiteral.js Maven / Gradle / Ivy

var Literal = require("./Literal").Literal;
var DateType = require("../type/DateType").DateType;
var LocalDate = require("../value/LocalDate").LocalDate;

function DateLiteral(text) {
	Literal.call(this, text, LocalDate.Parse(text.substring(1,text.length-1)));
	return this;
}

DateLiteral.prototype = Object.create(Literal.prototype);
DateLiteral.prototype.constructor = DateLiteral;

DateLiteral.prototype.check = function(context) {
	return DateType.instance;
};

exports.DateLiteral = DateLiteral;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy