src/share/classes/com/sun/tools/javac/code/Symbol.java

changeset 674
584365f256a7
parent 673
7ae4016c5938
child 697
28b021bb889f
     1.1 --- a/src/share/classes/com/sun/tools/javac/code/Symbol.java	Tue Sep 07 17:31:54 2010 +0100
     1.2 +++ b/src/share/classes/com/sun/tools/javac/code/Symbol.java	Tue Sep 07 17:32:27 2010 +0100
     1.3 @@ -214,6 +214,16 @@
     1.4          return (flags() & INTERFACE) != 0;
     1.5      }
     1.6  
     1.7 +    /** Recognize if this symbol was marked @PolymorphicSignature in the source. */
     1.8 +    public boolean isPolymorphicSignatureGeneric() {
     1.9 +        return (flags() & (POLYMORPHIC_SIGNATURE | HYPOTHETICAL)) == POLYMORPHIC_SIGNATURE;
    1.10 +    }
    1.11 +
    1.12 +    /** Recognize if this symbol was split from a @PolymorphicSignature symbol in the source. */
    1.13 +    public boolean isPolymorphicSignatureInstance() {
    1.14 +        return (flags() & (POLYMORPHIC_SIGNATURE | HYPOTHETICAL)) == (POLYMORPHIC_SIGNATURE | HYPOTHETICAL);
    1.15 +    }
    1.16 +
    1.17      /** Is this symbol declared (directly or indirectly) local
    1.18       *  to a method or variable initializer?
    1.19       *  Also includes fields of inner classes which are in

mercurial