< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Operators.java

Print this page

        

*** 227,237 **** return opname[tag.operatorIndex()]; } /** * The constants in this enum represent the types upon which all the operator helpers ! * operate upon. This allows lazy and consise mapping between a type name and a type instance. */ enum OperatorType { BYTE(syms -> syms.byteType), SHORT(syms -> syms.shortType), INT(syms -> syms.intType), --- 227,237 ---- return opname[tag.operatorIndex()]; } /** * The constants in this enum represent the types upon which all the operator helpers ! * operate upon. This allows lazy and concise mapping between a type name and a type instance. */ enum OperatorType { BYTE(syms -> syms.byteType), SHORT(syms -> syms.shortType), INT(syms -> syms.intType),
*** 278,288 **** this.name = operatorName(tag); } /** * This routine implements the main operator lookup process. Each operator is tested ! * using an applicability predicate; if the test suceeds that same operator is returned, * otherwise a dummy symbol is returned. */ final OperatorSymbol doLookup(Predicate<OperatorSymbol> applicabilityTest) { return Stream.of(alternatives.orElseGet(this::initOperators)) .filter(applicabilityTest) --- 278,288 ---- this.name = operatorName(tag); } /** * This routine implements the main operator lookup process. Each operator is tested ! * using an applicability predicate; if the test succeeds that same operator is returned, * otherwise a dummy symbol is returned. */ final OperatorSymbol doLookup(Predicate<OperatorSymbol> applicabilityTest) { return Stream.of(alternatives.orElseGet(this::initOperators)) .filter(applicabilityTest)
< prev index next >