Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jruby.parser;
 
Simple struct to hold values until they can be inserted into the AST.
public class ArgsTailHolder {
    private ISourcePosition position;
    private BlockArgNode blockArg;
    private ListNode keywordArgs;
    
    public ArgsTailHolder(ISourcePosition positionListNode keywordArgs,
            KeywordRestArgNode keywordRestArgBlockArgNode blockArg) {
        this. = position;
        this. = blockArg;
        this. = keywordArgs;
        this. = keywordRestArg;
    }
    
    public ISourcePosition getPosition() {
        return ;
    }
    
    public BlockArgNode getBlockArg() {
        return ;
    }
    
    public ListNode getKeywordArgs() {
        return ;
    }
    
        return ;
    }
    
    
Does this holder support either keyword argument types
    public boolean hasKeywordArgs() {
        return  != null ||  != null;
    }
New to GrepCode? Check out our FAQ X