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

com.alibaba.simpleEL.dialect.tiny.ast.TinyELNumberLiteralExpr Maven / Gradle / Ivy

The newest version!
package com.alibaba.simpleEL.dialect.tiny.ast;

import com.alibaba.simpleEL.dialect.tiny.visitor.TinyELAstVisitor;


public class TinyELNumberLiteralExpr extends TinyELLiteralExpr {
	private Number value;
	
	public TinyELNumberLiteralExpr() {
		
	}
	
	public TinyELNumberLiteralExpr(Number value) {
		this.value = value;
	}
	
	public Number getValue() {
		return value;
	}
	
    public void output(StringBuffer buf) {
    	if (value == null) {
    		buf.append("NULL");
    	} else {
    		buf.append(value.toString());
    	}
    }

    protected void accept0(TinyELAstVisitor visitor) {
        visitor.visit(this);

        visitor.endVisit(this);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy