Package org.checkerframework.javacutil
Enum TreeUtils.MemberReferenceKind
- java.lang.Object
-
- java.lang.Enum<TreeUtils.MemberReferenceKind>
-
- org.checkerframework.javacutil.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 ofcom.sun.tools.javac.tree.JCTree.JCMemberReference.ReferenceKind
, which is not part of the supported javac API.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAY_CTOR
ArrayType # newBOUND
Expr # instMethodIMPLICIT_INNER
Inner # newSTATIC
Type # staticMethodSUPER
super # instMethodTOPLEVEL
Toplevel # newUNBOUND
Type # instMethod
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TreeUtils.MemberReferenceKind
getMemberReferenceKind(com.sun.source.tree.MemberReferenceTree tree)
Returns the kind of member referencetree
is.boolean
isUnbound()
Whether this kind is unbound.static TreeUtils.MemberReferenceKind
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TreeUtils.MemberReferenceKind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUPER
public static final TreeUtils.MemberReferenceKind SUPER
super # instMethod
-
UNBOUND
public static final TreeUtils.MemberReferenceKind UNBOUND
Type # instMethod
-
STATIC
public static final TreeUtils.MemberReferenceKind STATIC
Type # staticMethod
-
BOUND
public static final TreeUtils.MemberReferenceKind BOUND
Expr # instMethod
-
IMPLICIT_INNER
public static final TreeUtils.MemberReferenceKind IMPLICIT_INNER
Inner # new
-
TOPLEVEL
public static final TreeUtils.MemberReferenceKind TOPLEVEL
Toplevel # new
-
ARRAY_CTOR
public static final TreeUtils.MemberReferenceKind ARRAY_CTOR
ArrayType # new
-
-
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 namejava.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 referencetree
is.- Parameters:
tree
- a member reference tree- Returns:
- the kind of member reference
tree
is
-
-