public enum DependencyType extends Enum<DependencyType>
| Enum Constant and Description |
|---|
EXPRESSION
An
EXPRESSION dependency is any dependency that isn't
one of the other three types. |
INHERITANCE
An
INHERITANCE dependency is created by a reference
to a class or interface in the extends clause or the
implements clause of a class or interface declaration. |
NAMESPACE
A
NAMESPACE dependency is created by a reference to a
user-defined namespace. |
SIGNATURE
A
SIGNATURE dependency is created by a type annotation
that is not inside of a function body. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
existsIn(DependencyTypeSet dependencies)
A helper function to check if this
DependencyType
is contained in an DependencyTypeSet. |
static DependencyType |
get(char symbol)
Gets the enum object from its symbol.
|
char |
getSymbol()
Gets the character representing the dependency type in XML
format (such as the
<dep> tag in a SWC catalog). |
static String |
getTypeString(DependencyTypeSet types)
Gets a short string of symbols for the dependency types
in a dependency type set.
|
static DependencyType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DependencyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DependencyType INHERITANCE
INHERITANCE dependency is created by a reference
to a class or interface in the extends clause or the
implements clause of a class or interface declaration.
Examples:
class C2 extends C1 implements I1, I2
interface I1 extends I2, I3
public static final DependencyType SIGNATURE
SIGNATURE dependency is created by a type annotation
that is not inside of a function body.
Examples:
public var i:int
private function f(i:int):String
public static final DependencyType NAMESPACE
NAMESPACE dependency is created by a reference to a
user-defined namespace.
Examples:
ns var foo:int
ns::foo
use namespace ns
public static final DependencyType EXPRESSION
EXPRESSION dependency is any dependency that isn't
one of the other three types.public static DependencyType[] values()
for (DependencyType c : DependencyType.values()) System.out.println(c);
public static DependencyType 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 char getSymbol()
<dep> tag in a SWC catalog).public boolean existsIn(DependencyTypeSet dependencies)
DependencyType
is contained in an DependencyTypeSet.dependencies - A DependencyTypeSet to look in.true if this DependencyType
is contained in the specified DependencyTypeSet.public static DependencyType get(char symbol)
symbol - The character representing the dependency type in XML
format (such as the <dep> tag in a SWC catalog),
such as 'i'.INHERITANCE.public static String getTypeString(DependencyTypeSet types)
types - A DependencyTypeSet.DependencyTypeSet
in INHERITANCE, NAMESPACE, SIGNATURE, EXPRESSION order.Copyright © 2023 The Apache Software Foundation. All rights reserved.