public static enum TypePool.LazyTypeDescription.DeclarationContext.SelfDeclared extends Enum<TypePool.LazyTypeDescription.DeclarationContext.SelfDeclared> implements TypePool.LazyTypeDescription.DeclarationContext
TypePool.LazyTypeDescription.DeclarationContext.DeclaredInMethod, TypePool.LazyTypeDescription.DeclarationContext.DeclaredInType, TypePool.LazyTypeDescription.DeclarationContext.SelfDeclared| Enum Constant and Description |
|---|
INSTANCE
The singleton instance.
|
| Modifier and Type | Method and Description |
|---|---|
MethodDescription |
getEnclosingMethod(TypePool typePool)
Returns the enclosing method or
null if no such method exists. |
TypeDescription |
getEnclosingType(TypePool typePool)
Returns the enclosing type or
null if no such type exists. |
boolean |
isDeclaredInMethod()
Returns
true if this instance represents a type that was declared within a method. |
boolean |
isDeclaredInType()
Returns
true if this instance represents a type that was declared within another type but not
within a method. |
boolean |
isSelfDeclared()
Returns
true if this instance represents a self declared type. |
String |
toString() |
static TypePool.LazyTypeDescription.DeclarationContext.SelfDeclared |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TypePool.LazyTypeDescription.DeclarationContext.SelfDeclared[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TypePool.LazyTypeDescription.DeclarationContext.SelfDeclared INSTANCE
public static TypePool.LazyTypeDescription.DeclarationContext.SelfDeclared[] values()
for (TypePool.LazyTypeDescription.DeclarationContext.SelfDeclared c : TypePool.LazyTypeDescription.DeclarationContext.SelfDeclared.values()) System.out.println(c);
public static TypePool.LazyTypeDescription.DeclarationContext.SelfDeclared 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 MethodDescription getEnclosingMethod(TypePool typePool)
TypePool.LazyTypeDescription.DeclarationContextnull if no such method exists.getEnclosingMethod in interface TypePool.LazyTypeDescription.DeclarationContexttypePool - The type pool to be used for looking up linked types.null.public TypeDescription getEnclosingType(TypePool typePool)
TypePool.LazyTypeDescription.DeclarationContextnull if no such type exists.getEnclosingType in interface TypePool.LazyTypeDescription.DeclarationContexttypePool - The type pool to be used for looking up linked types.null.public boolean isSelfDeclared()
TypePool.LazyTypeDescription.DeclarationContexttrue if this instance represents a self declared type.isSelfDeclared in interface TypePool.LazyTypeDescription.DeclarationContexttrue if this instance represents a self declared type.public boolean isDeclaredInType()
TypePool.LazyTypeDescription.DeclarationContexttrue if this instance represents a type that was declared within another type but not
within a method.isDeclaredInType in interface TypePool.LazyTypeDescription.DeclarationContexttrue if this instance represents a type that was declared within another type but not
within a method.public boolean isDeclaredInMethod()
TypePool.LazyTypeDescription.DeclarationContexttrue if this instance represents a type that was declared within a method.isDeclaredInMethod in interface TypePool.LazyTypeDescription.DeclarationContexttrue if this instance represents a type that was declared within a method.public String toString()
toString in class Enum<TypePool.LazyTypeDescription.DeclarationContext.SelfDeclared>Copyright © 2014–2015. All rights reserved.