001/* 002 * Copyright (c) 2012-2017 Institut National des Sciences Appliquées de Lyon (INSA-Lyon) 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the Eclipse Public License v1.0 006 * which accompanies this distribution, and is available at 007 * http://www.eclipse.org/legal/epl-v10.html 008 */ 009 010package org.eclipse.golo.compiler.parser; 011 012public class ASTAndExpression extends GoloASTNode { 013 014 public ASTAndExpression(int id) { 015 super(id); 016 } 017 018 public ASTAndExpression(GoloParser p, int id) { 019 super(p, id); 020 } 021 022 private int count = 0; 023 024 public int count() { 025 return count; 026 } 027 028 public void increaseCount() { 029 count = count + 1; 030 } 031 032 @Override 033 public Object jjtAccept(GoloParserVisitor visitor, Object data) { 034 return visitor.visit(this, data); 035 } 036 037 @Override 038 public String toString() { 039 return "ASTAndExpression{}"; 040 } 041}