001    // Copyright (c) 2011, the Dart project authors.  Please see the AUTHORS file
002    // for details. All rights reserved. Use of this source code is governed by a
003    // BSD-style license that can be found in the LICENSE file.
004    
005    package com.google.dart.compiler.backend.js.ast;
006    
007    public interface JsOperator {
008        int INFIX = 0x02;
009        int LEFT = 0x01;
010        int POSTFIX = 0x04;
011        int PREFIX = 0x08;
012    
013        int getPrecedence();
014    
015        String getSymbol();
016    
017        boolean isKeyword();
018    
019        boolean isLeftAssociative();
020    
021        boolean isPrecedenceLessThan(JsOperator other);
022    
023        boolean isValidInfix();
024    
025        boolean isValidPostfix();
026    
027        boolean isValidPrefix();
028    }