예제 #1
0
    @Override
    protected Type visitNotExpression(NotExpression node, AnalysisContext context) {
      coerceType(context, node.getValue(), BOOLEAN, "Value of logical NOT expression");

      expressionTypes.put(node, BOOLEAN);
      return BOOLEAN;
    }
예제 #2
0
 @Override
 protected String visitNotExpression(NotExpression node, Boolean unmangleNames) {
   return "(NOT " + process(node.getValue(), unmangleNames) + ")";
 }