1 5 6 package com.hp.hpl.jena.rdql.parser; 7 8 import com.hp.hpl.jena.rdql.*; 9 10 public class Q_StringNotEqual extends Q_StringEqual implements Expr, ExprBoolean 11 { 12 static { 13 printName = "str!=" ; 14 opSymbol = "ne" ; 15 } 16 17 Q_StringNotEqual(int id) { super(id); } 18 19 Q_StringNotEqual(RDQLParser p, int id) { super(p, id); } 20 21 protected boolean rawEval(NodeValue x, NodeValue y) 22 { 23 return ! super.rawEval(x, y) ; 24 } 25 26 public void jjtClose() 27 { 28 int n = jjtGetNumChildren() ; 29 if ( n != 2 ) 30 throw new QueryException("Q_StringNotEqual: Wrong number of children: "+n) ; 31 super.jjtClose() ; 32 } 33 } 34 35 61 | Popular Tags |