public final class EnclosingMethod extends Object
ClassFile.getEnclosingMethod()| Modifier and Type | Method and Description |
|---|---|
CPClassInfo |
getClassInfo()
Returns the constant pool entry for the enclosing class.
|
ClassName |
getClassName() |
CPNameAndTypeInfo |
getMethodInfo()
Returns the constant pool entry for the enclosing method, or
null if the inner class was defined outside of any method or
constructor bodies.
|
boolean |
hasMethod()
Returns whether the enclosing method attribute describes a method
the inner class is defined within.
|
String |
toString() |
public ClassName getClassName()
public CPClassInfo getClassInfo()
public boolean hasMethod()
public CPNameAndTypeInfo getMethodInfo()
Built on May 24 2013. | Portions Copyright 1997-2013 Oracle. All rights reserved.