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