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

com.github.uscexp.blockformatpropertyfile.parser.AstStringLiteralTreeNode Maven / Gradle / Ivy

There is a newer version: 0.2.0-Beta
Show newest version
/*
 * Copyright (C) 2014 by haui - all rights reserved
 */
package com.github.uscexp.blockformatpropertyfile.parser;

/**
 * Command implementation for the PropertyFileParser rule: stringLiteral.
 */
public class AstStringLiteralTreeNode extends AstBaseCommandTreeNode {

	public AstStringLiteralTreeNode(String rule, String value) {
		super(rule, value);
	}

	@Override
	protected void interpretAfterChilds(Long id)
		throws Exception {
		super.interpretAfterChilds(id);
		value = value.trim();
		String realValue = value.substring(1, value.length() - 1);
		processStore.getStack().push(realValue);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy