blob: c9521cae6dbda94a01e70e0c7e86191c8e2e38bc [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2005, 2016 IBM Corporation and others.
* 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
*
*******************************************************************************/
package org.eclipse.dltk.ruby.ast;
import org.eclipse.dltk.ast.ASTNode;
import org.eclipse.dltk.ast.ASTVisitor;
public class RubyNotExpression extends ASTNode {
private final ASTNode value;
public RubyNotExpression(int start, int end, ASTNode value) {
super(start, end);
this.value = value;
}
public ASTNode getValue() {
return value;
}
@Override
public void traverse(ASTVisitor visitor) throws Exception {
if (visitor.visit(this)) {
if (value != null)
value.traverse(visitor);
visitor.endvisit(this);
}
}
}