Package org.checkerframework.javacutil
Enum Class TreeUtils.MemberReferenceKind
java.lang.Object
java.lang.Enum<TreeUtils.MemberReferenceKind>
org.checkerframework.javacutil.TreeUtils.MemberReferenceKind
- All Implemented Interfaces:
Serializable
,Comparable<TreeUtils.MemberReferenceKind>
,Constable
- Enclosing class:
TreeUtils
This is a duplication of
com.sun.tools.javac.tree.JCTree.JCMemberReference.ReferenceKind
, which is not part of the
supported javac API.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionArrayType # newExpr # instMethodInner # newType # staticMethodsuper # instMethodToplevel # newType # instMethod -
Method Summary
Modifier and TypeMethodDescriptionReturns the kind of member referencetree
is.boolean
Returns whether this kind is a constructor reference.boolean
Whether this kind is unbound.Returns the enum constant of this class with the specified name.static TreeUtils.MemberReferenceKind[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUPER
super # instMethod -
UNBOUND
Type # instMethod -
STATIC
Type # staticMethod -
BOUND
Expr # instMethod -
IMPLICIT_INNER
Inner # new -
TOPLEVEL
Toplevel # new -
ARRAY_CTOR
ArrayType # new
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
isUnbound
public boolean isUnbound()Whether this kind is unbound.- Returns:
- Whether this kind is unbound
-
isConstructorReference
public boolean isConstructorReference()Returns whether this kind is a constructor reference.- Returns:
- whether this kind is a constructor reference
-
getMemberReferenceKind
Returns the kind of member referencetree
is.- Parameters:
tree
- a member reference tree- Returns:
- the kind of member reference
tree
is
-