@Test public void testNonAscii() throws VisibilityParseException { VisibilityEvaluator ct = new VisibilityEvaluator(new Authorizations("五", "六", "八", "九", "五十")); assertTrue(ct.evaluate(new ColumnVisibility(quote("五") + "|" + quote("四")))); assertFalse(ct.evaluate(new ColumnVisibility(quote("五") + "&" + quote("四")))); assertTrue( ct.evaluate(new ColumnVisibility(quote("五") + "&(" + quote("四") + "|" + quote("九") + ")"))); assertTrue(ct.evaluate(new ColumnVisibility("\"五\"&(\"四\"|\"五十\")"))); assertFalse( ct.evaluate(new ColumnVisibility(quote("五") + "&(" + quote("四") + "|" + quote("三") + ")"))); assertFalse(ct.evaluate(new ColumnVisibility("\"五\"&(\"四\"|\"三\")"))); }
public boolean evaluate(ColumnVisibility visibility) throws VisibilityParseException { return evaluate(visibility.getExpression(), visibility.getParseTree()); }
VisibilityEvaluator { public boolean evaluate(ColumnVisibility visibility) throws VisibilityParseException { return evaluate(visibility.getExpression(), visibility.getParseTree()); } }
VisibilityEvaluator { public boolean evaluate(ColumnVisibility visibility) throws VisibilityParseException { return evaluate(visibility.getExpression(), visibility.getParseTree()); } VisibilityEvaluator(AuthorizationContainer authsContainer);  VisibilityEvaluator(Authorizations authorizations); }
VisibilityEvaluator { public boolean evaluate(ColumnVisibility visibility) throws VisibilityParseException { return evaluate(visibility.getExpression(), visibility.getParseTree()); } VisibilityEvaluator(AuthorizationContainer authsContainer);  VisibilityEvaluator(Authorizations authorizations); static byte[] escape(byte[] auth, boolean quote); boolean evaluate(ColumnVisibility visibility); }
VisibilityEvaluator { public boolean evaluate(ColumnVisibility visibility) throws VisibilityParseException { return evaluate(visibility.getExpression(), visibility.getParseTree()); } VisibilityEvaluator(AuthorizationContainer authsContainer);  VisibilityEvaluator(Authorizations authorizations); static byte[] escape(byte[] auth, boolean quote); boolean evaluate(ColumnVisibility visibility);  }