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

build.lombok.ast_generatedSource.lombok.ast.CharLiteral Maven / Gradle / Ivy

Go to download

This is a very small fork of lombok.ast as some Android tools needed a few modifications. The normal repository for lombok.ast is here https://github.com/rzwitserloot/lombok.ast and our changes for 0.2.3 are in this pull request: https://github.com/rzwitserloot/lombok.ast/pull/8

The newest version!
//Generated by lombok.ast.template.TemplateProcessor. DO NOT EDIT, DO NOT CHECK IN!

package lombok.ast;

public class CharLiteral extends lombok.ast.AbstractNode implements lombok.ast.Expression, lombok.ast.Literal, lombok.ast.DescribedNode {
	private java.util.List parensPositions = new java.util.ArrayList();
	private java.lang.Character value = null;
	private java.lang.String rawValue;
	private java.lang.String errorReasonForValue = "missing value";
	
	public java.util.List astParensPositions() {
		return this.parensPositions;
	}
	
	public java.lang.Character astValue() {
		if (this.errorReasonForValue != null) return null;
		return this.value;
	}
	
	public lombok.ast.CharLiteral astValue(java.lang.Character value) {
		if (value == null) throw new java.lang.NullPointerException("value is mandatory");
		this.errorReasonForValue = null;
		this.value = value;
		this.rawValue = lombok.ast.CharLiteralTemplate.generateChar(value);
		return this;
	}
	
	public java.lang.String rawValue() {
		return this.rawValue;
	}
	
	public java.lang.String getErrorReasonForValue() {
		return this.errorReasonForValue;
	}
	
	public lombok.ast.CharLiteral rawValue(java.lang.String value) {
		this.rawValue = value;
		this.value = null;
		this.errorReasonForValue = null;
		try {
			this.value = lombok.ast.CharLiteralTemplate.parseChar(value);
		} catch (java.lang.IllegalArgumentException e) {
			this.errorReasonForValue = e.getMessage() == null ? e.toString() : e.getMessage();
		} catch (Exception e) {
			this.errorReasonForValue = e.toString();
		}
		return this;
	}
	@java.lang.Override public java.util.List getChildren() {
		java.util.List result = new java.util.ArrayList();
		return result;
	}
	
	@java.lang.Override public boolean replaceChild(Node original, Node replacement) throws lombok.ast.AstException {
		return false;
	}
	
	@java.lang.Override public boolean detach(Node child) {
		return false;
	}
	
	@java.lang.Override public void accept(lombok.ast.AstVisitor visitor) {
		if (visitor.visitCharLiteral(this)) return;
		visitor.afterVisitCharLiteral(this);
		visitor.endVisit(this);
	}
	
	@java.lang.Override public CharLiteral copy() {
		CharLiteral result = new CharLiteral();
		result.parensPositions = new java.util.ArrayList(this.parensPositions);
		result.value = this.value;
		result.rawValue = this.rawValue;
		result.errorReasonForValue = this.errorReasonForValue;
		return result;
	}
	
	public java.lang.String getDescription() {
		return lombok.ast.CharLiteralTemplate.getDescription(this);
	}
	
	public int getParens() {
		return lombok.ast.ExpressionMixin.getParens(this);
	}
	
	public int getIntendedParens() {
		return lombok.ast.ExpressionMixin.getIntendedParens(this);
	}
	
	public boolean needsParentheses() {
		return lombok.ast.ExpressionMixin.needsParentheses(this);
	}
	
	public boolean isStatementExpression() {
		return lombok.ast.ExpressionMixin.isStatementExpression(this);
	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy