Java Code Examples for com.sun.tools.javac.code.Type.UndetVar.InferenceBound#EQ

The following examples show how to use com.sun.tools.javac.code.Type.UndetVar.InferenceBound#EQ . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Infer.java    From lua-for-android with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
/**
 * Report a bound check error.
 */
void report(InferenceBound from, InferenceBound to) {
    //this is a workaround to preserve compatibility with existing messages
    if (from == to) {
        reportBoundError(uv, from);
    } else if (from == InferenceBound.LOWER || to == InferenceBound.EQ) {
        reportBoundError(uv, to, from);
    } else {
        reportBoundError(uv, from, to);
    }
}
 
Example 2
Source File: Infer.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Report a bound check error.
 */
void report(InferenceBound from, InferenceBound to) {
    //this is a workaround to preserve compatibility with existing messages
    if (from == to) {
        reportBoundError(uv, from);
    } else if (from == InferenceBound.LOWER || to == InferenceBound.EQ) {
        reportBoundError(uv, to, from);
    } else {
        reportBoundError(uv, from, to);
    }
}
 
Example 3
Source File: Infer.java    From lua-for-android with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
/**
 * The list of bound kinds to be checked.
 */
EnumSet<InferenceBound> boundsToCheck() {
    return (from == InferenceBound.EQ) ?
                    EnumSet.allOf(InferenceBound.class) :
                    EnumSet.complementOf(EnumSet.of(from));
}
 
Example 4
Source File: Infer.java    From lua-for-android with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Override
EnumSet<InferenceBound> boundsToCheck() {
    return (from == InferenceBound.EQ) ?
                    EnumSet.allOf(InferenceBound.class) :
                    EnumSet.of(InferenceBound.EQ);
}
 
Example 5
Source File: Infer.java    From lua-for-android with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
CheckInst(UndetVar uv, EnumSet<InferenceBound> to) {
    super(uv, uv.getInst(), InferenceBound.EQ);
    this.to = to;
}
 
Example 6
Source File: Infer.java    From lua-for-android with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
SubstBounds(UndetVar uv) {
    super(uv, InferenceBound.LOWER, InferenceBound.EQ, InferenceBound.UPPER);
}
 
Example 7
Source File: Infer.java    From lua-for-android with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
EnumSet<InferenceBound> forward() {
    return (ib == InferenceBound.EQ) ?
            EnumSet.of(InferenceBound.EQ) : EnumSet.complementOf(EnumSet.of(ib));
}
 
Example 8
Source File: Infer.java    From lua-for-android with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
EnumSet<InferenceBound> backwards() {
    return (ib == InferenceBound.EQ) ?
            EnumSet.allOf(InferenceBound.class) : EnumSet.of(ib);
}
 
Example 9
Source File: Infer.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * The list of bound kinds to be checked.
 */
EnumSet<InferenceBound> boundsToCheck() {
    return (from == InferenceBound.EQ) ?
                    EnumSet.allOf(InferenceBound.class) :
                    EnumSet.complementOf(EnumSet.of(from));
}
 
Example 10
Source File: Infer.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@Override
EnumSet<InferenceBound> boundsToCheck() {
    return (from == InferenceBound.EQ) ?
                    EnumSet.allOf(InferenceBound.class) :
                    EnumSet.of(InferenceBound.EQ);
}
 
Example 11
Source File: Infer.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
CheckInst(UndetVar uv, EnumSet<InferenceBound> to) {
    super(uv, uv.getInst(), InferenceBound.EQ);
    this.to = to;
}
 
Example 12
Source File: Infer.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
SubstBounds(UndetVar uv) {
    super(uv, InferenceBound.LOWER, InferenceBound.EQ, InferenceBound.UPPER);
}
 
Example 13
Source File: Infer.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
EnumSet<InferenceBound> forward() {
    return (ib == InferenceBound.EQ) ?
            EnumSet.of(InferenceBound.EQ) : EnumSet.complementOf(EnumSet.of(ib));
}
 
Example 14
Source File: Infer.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
EnumSet<InferenceBound> backwards() {
    return (ib == InferenceBound.EQ) ?
            EnumSet.allOf(InferenceBound.class) : EnumSet.of(ib);
}