X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.spreadsheet.graph%2Fsrc%2Forg%2Fsimantics%2Fspreadsheet%2Fgraph%2Fparser%2Fast%2FAstRelation.java;h=a86ea7f7b5c5acb846d0d4d88e4bb5160f906e23;hb=9a37dabc6c0212ed3e14499c88df3208cd06f9b0;hp=14483ba5a09a7cff0211b0ac0a86b6f077c39814;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.spreadsheet.graph/src/org/simantics/spreadsheet/graph/parser/ast/AstRelation.java b/bundles/org.simantics.spreadsheet.graph/src/org/simantics/spreadsheet/graph/parser/ast/AstRelation.java index 14483ba5a..a86ea7f7b 100644 --- a/bundles/org.simantics.spreadsheet.graph/src/org/simantics/spreadsheet/graph/parser/ast/AstRelation.java +++ b/bundles/org.simantics.spreadsheet.graph/src/org/simantics/spreadsheet/graph/parser/ast/AstRelation.java @@ -1,29 +1,29 @@ -/******************************************************************************* - * 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 - *******************************************************************************/ +/******************************************************************************* + * 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 { - - public AstValue left; - public String op; - public AstValue right; + + public AstValue left; + public String op; + public AstValue right; public AstRelation(AstValue left) { - this.left = left; - } - - public void setRight(String op, AstValue right) { - this.op = op.trim(); - this.right = right; + this.left = left; + } + + public void setRight(String op, AstValue right) { + this.op = op.trim(); + this.right = right; } @Override @@ -31,9 +31,9 @@ public class AstRelation implements AstValue { return v.visit(this); } - public AstValue simplify() { - if(right == null) return left; - else return this; - } + public AstValue simplify() { + if(right == null) return left; + else return this; + } }