Enum TreeUtils.MemberReferenceKind

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<TreeUtils.MemberReferenceKind>
    Enclosing class:
    TreeUtils

    public static enum TreeUtils.MemberReferenceKind
    extends java.lang.Enum<TreeUtils.MemberReferenceKind>
    This is a duplication of com.sun.tools.javac.tree.JCTree.JCMemberReference.ReferenceKind, which is not part of the supported javac API.
    • Method Detail

      • values

        public static TreeUtils.MemberReferenceKind[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TreeUtils.MemberReferenceKind c : TreeUtils.MemberReferenceKind.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TreeUtils.MemberReferenceKind valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • isUnbound

        public boolean isUnbound()
        Whether this kind is unbound.
        Returns:
        Whether this kind is unbound
      • getMemberReferenceKind

        public static TreeUtils.MemberReferenceKind getMemberReferenceKind​(com.sun.source.tree.MemberReferenceTree tree)
        Returns the kind of member reference tree is.
        Parameters:
        tree - a member reference tree
        Returns:
        the kind of member reference tree is