1 6 7 package com.hp.hpl.jena.graph.query; 8 9 14 15 public class SlotValuator implements Valuator 16 { 17 21 private int index; 22 23 26 public SlotValuator( int index ) 27 { this.index = index; } 28 29 33 public Object evalObject( IndexValues iv ) 34 { return iv.get( index ); } 35 36 41 public boolean evalBool( IndexValues iv ) 42 { return ((Boolean ) evalObject( iv )).booleanValue(); } 43 } 44 45 | Popular Tags |