/* JJT: 0.2.2 */
package agg.attribute.parser.javaExpr;
/**
* @version $Id: ASTStringConstNode.java,v 1.4 2010/08/23 07:31:25 olga Exp $
* @author $Author: olga $
*/
public class ASTStringConstNode extends SimpleNode {
static final long serialVersionUID = 1L;
String val;
ASTStringConstNode(String id) {
super(id);
}
public static Node jjtCreate(String id) {
return new ASTStringConstNode(id);
}
public void checkContext() {
setNodeClass(this.val.getClass());
}
public void interpret() {
stack.add(++top, this.val.substring(1, this.val.length() - 1));
}
public String getString() {
return this.val;
}
public Node copy() {
Node copy = super.copy();
((ASTStringConstNode) copy).val = new String(this.val);
return copy;
}
}
/*
* $Log: ASTStringConstNode.java,v $
* Revision 1.4 2010/08/23 07:31:25 olga
* tuning
*
* Revision 1.3 2010/07/29 10:09:19 olga
* Array stack changed to Vector stack
*
* Revision 1.2 2007/09/10 13:05:46 olga
* In this update:
* - package xerces2.5.0 is not used anymore;
* - class com.objectspace.jgl.Pair is replaced by the agg own generic class agg.util.Pair;
* - bugs fixed in: usage of PACs in rules; match completion;
* usage of static method calls in attr. conditions
* - graph editing: added some new features
* Revision 1.1 2005/08/25 11:56:52 enrico ***
* empty log message ***
*
* Revision 1.1 2005/05/30 12:58:01 olga Version with Eclipse
*
* Revision 1.2 2003/03/05 18:24:15 komm sorted/optimized import statements
*
* Revision 1.1.1.1 2002/07/11 12:17:04 olga Imported sources
*
* Revision 1.6 2000/04/05 12:10:37 shultzke serialVersionUID aus V1.0.0
* generiert
*
* Revision 1.5 2000/03/14 10:59:29 shultzke Transformieren von Variablen auf
* Variablen sollte jetzt funktionieren Ueber das Design der Copy-Methode des
* abstrakten Syntaxbaumes sollte unbedingt diskutiert werden.
*
* Revision 1.4 2000/03/03 11:32:40 shultzke Alphaversion von Variablen auf
* Variablen matchen
*/