public enum TypeReferenceLocation extends Enum<TypeReferenceLocation>
ClassReference was found in a Java source file.| Enum Constant and Description |
|---|
ANNOTATION
A Java class references the annotation.
|
CATCH_EXCEPTION_STATEMENT
A Java class method catches the specified type.
|
CONSTRUCTOR_CALL
A Java class constructs the specified type.
|
ENUM_CONSTANT
A Java class declares the enumeration.
|
FIELD_DECLARATION
A Java class declares a field of the specified type.
|
IMPLEMENTS_TYPE
A Java class implements the specified type; works transitively.
|
IMPORT
A Java class imports the type.
|
INHERITANCE
A Java class inherits the specified type; works transitively.
|
INSTANCE_OF
A Java class of the specified type is used in an
instanceof statement. |
METHOD
A Java class declares the referenced method.
|
METHOD_CALL
A Java class calls the specified method; works transitively for interfaces.
|
METHOD_PARAMETER
A Java class declares the referenced method parameter.
|
RETURN_TYPE
A Java class returns the specified type.
|
TAGLIB_IMPORT
This is only relevant for JSP sources and represents the import of a taglib into the JSP source file.
|
THROW_STATEMENT
A method in the Java class throws the an instance of the specified type.
|
THROWS_METHOD_DECLARATION
A Java class declares that it may throw the specified type.
|
TYPE
A Java class declares the type.
|
VARIABLE_DECLARATION
A Java class declares a variable of the specified type.
|
VARIABLE_INITIALIZER
A variable initalization expression value.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toReadablePrefix()
Returns the enumeration as a human readable value.
|
static TypeReferenceLocation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TypeReferenceLocation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TypeReferenceLocation IMPORT
public static final TypeReferenceLocation TYPE
public static final TypeReferenceLocation ENUM_CONSTANT
public static final TypeReferenceLocation METHOD
public static final TypeReferenceLocation INHERITANCE
public static final TypeReferenceLocation CONSTRUCTOR_CALL
public static final TypeReferenceLocation METHOD_CALL
<location>METHOD_CALL</location>,
a call of a method on types implementing or exntending that interface will fire the rule.public static final TypeReferenceLocation METHOD_PARAMETER
public static final TypeReferenceLocation ANNOTATION
public static final TypeReferenceLocation RETURN_TYPE
public static final TypeReferenceLocation INSTANCE_OF
instanceof statement.public static final TypeReferenceLocation THROWS_METHOD_DECLARATION
public static final TypeReferenceLocation THROW_STATEMENT
public static final TypeReferenceLocation CATCH_EXCEPTION_STATEMENT
public static final TypeReferenceLocation FIELD_DECLARATION
public static final TypeReferenceLocation VARIABLE_DECLARATION
public static final TypeReferenceLocation IMPLEMENTS_TYPE
public static final TypeReferenceLocation VARIABLE_INITIALIZER
int foo = mypackage.MyConstants.FOO;
public static final TypeReferenceLocation TAGLIB_IMPORT
public static TypeReferenceLocation[] values()
for (TypeReferenceLocation c : TypeReferenceLocation.values()) System.out.println(c);
public static TypeReferenceLocation valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String toReadablePrefix()
Copyright © 2018 JBoss by Red Hat. All rights reserved.