private void assertUnaryOperator ( final String operator ) { if ( ! ( "+" . equals ( operator ) || "-" . equals ( operator ) || "~" . equals ( operator ) ) ) { throw new JBBPCompilationException ( "Wrong unary operator '" + operator + "' [" + this . expressionSource + ' ' ) ; } }
Check that a string represents a unary operator .