nashorn/src/jdk/nashorn/internal/ir/RuntimeNode.java
changeset 16244 12f06c992c3a
parent 16201 889ddb179cdf
child 16272 675a0caf75bc
equal deleted inserted replaced
16243:f5fdf89e1583 16244:12f06c992c3a
   143         public TokenType getTokenType() {
   143         public TokenType getTokenType() {
   144             return tokenType;
   144             return tokenType;
   145         }
   145         }
   146 
   146 
   147         /**
   147         /**
       
   148          * Get the non-strict name for this request.
       
   149          *
       
   150          * @return the name without _STRICT suffix
       
   151          */
       
   152         public String nonStrictName() {
       
   153             switch(this) {
       
   154             case NE_STRICT:
       
   155                 return NE.name();
       
   156             case EQ_STRICT:
       
   157                 return EQ.name();
       
   158             default:
       
   159                 return name();
       
   160             }
       
   161         }
       
   162 
       
   163         /**
   148          * Is this an EQ or EQ_STRICT?
   164          * Is this an EQ or EQ_STRICT?
   149          *
   165          *
   150          * @param request a request
   166          * @param request a request
   151          *
   167          *
   152          * @return true if EQ or EQ_STRICT
   168          * @return true if EQ or EQ_STRICT