-/*******************************************************************************\r
- * Copyright (c) 2010 Association for Decentralized Information Management in\r
- * Industry THTH ry.\r
- * All rights reserved. This program and the accompanying materials\r
- * are made available under the terms of the Eclipse Public License v1.0\r
- * which accompanies this distribution, and is available at\r
- * http://www.eclipse.org/legal/epl-v10.html\r
- *\r
- * Contributors:\r
- * VTT Technical Research Centre of Finland - initial API and implementation\r
- *******************************************************************************/\r
+/*******************************************************************************
+ * Copyright (c) 2010 Association for Decentralized Information Management in
+ * Industry THTH ry.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * VTT Technical Research Centre of Finland - initial API and implementation
+ *******************************************************************************/
package org.simantics.spreadsheet.graph.parser.ast;
public class AstRelation implements AstValue {
-\r
- public AstValue left;\r
- public String op;\r
- public AstValue right;\r
+
+ public AstValue left;
+ public String op;
+ public AstValue right;
public AstRelation(AstValue left) {
- this.left = left;\r
- }\r
- \r
- public void setRight(String op, AstValue right) {\r
- this.op = op.trim();\r
- this.right = right;\r
+ this.left = left;
+ }
+
+ public void setRight(String op, AstValue right) {
+ this.op = op.trim();
+ this.right = right;
}
@Override
return v.visit(this);
}
- public AstValue simplify() {\r
- if(right == null) return left;\r
- else return this;\r
- }\r
+ public AstValue simplify() {
+ if(right == null) return left;
+ else return this;
+ }
}