// Automatically generated code.  Edit at your own risk!
// Generated by bali2jak v2002.09.03.



public class RegexBlockNode extends RegexBlock {

    final public static int ARG_LENGTH = 3 ;
    final public static int TOK_LENGTH = 1 /* Kludge! */ ;

    public Block getBlock () {
        
        AstNode node = arg[1].arg [0] ;
        return (node != null) ? (Block) node : null ;
    }

    public NextState getNextState () {
        
        AstNode node = arg[2].arg [0] ;
        return (node != null) ? (NextState) node : null ;
    }

    public Regex getRegex () {
        
        return (Regex) arg [0] ;
    }

    public boolean[] printorder () {
        
        return new boolean[] {false, false, false} ;
    }

    public RegexBlockNode setParms (Regex arg0, AstOptNode arg1, AstOptNode arg2)
    {
        
        arg = new AstNode [ARG_LENGTH] ;
        tok = new AstTokenInterface [TOK_LENGTH] ;
        
        arg [0] = arg0 ;            /* Regex */
        arg [1] = arg1 ;            /* [Block] */
        arg [2] = arg2 ;            /* [NextState] */
        
        InitChildren () ;
        return (RegexBlockNode) this ;
    }

}
