All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jruby.ast.KeywordRestArgNode Maven / Gradle / Ivy

There is a newer version: 0.8.14
Show newest version
package org.jruby.ast;

import java.util.List;
import org.jruby.ast.visitor.NodeVisitor;
import org.jruby.lexer.yacc.ISourcePosition;

/**
 *
 */
public class KeywordRestArgNode extends Node {
    private Node variable;
    
    public KeywordRestArgNode(ISourcePosition position, Node variable) {
        super(position);
        
        this.variable = variable;
    }
    
    @Override
    public Object accept(NodeVisitor visitor) {
        return visitor.visitKeywordRestArgNode(this);
    }
    
    @Override
    public List childNodes() {
        return Node.createList(variable);
    }

    @Override
    public NodeType getNodeType() {
        return NodeType.KEYWORDRESTARGNODE;
    }
    
    public Node getVariable() {
        return variable;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy