Constructor and Description |
---|
BcelJavaType(org.apache.bcel.classfile.JavaClass clazz) |
BcelJavaType(org.apache.bcel.generic.Type bcelType,
org.apache.bcel.util.Repository repository) |
Modifier and Type | Method and Description |
---|---|
JavaType[] |
getAllInterfaces()
Return the list of all interfaces this class implements.
|
JavaType |
getContainingClass()
The containing class if this is an inner class.
|
Scope |
getDeclaredScope()
The declared scope of this entity.
|
Scope |
getEffectiveScope()
The effective Scope of this entity.
|
Field[] |
getFields()
All fields that are declared by this class.
|
JavaType[] |
getInnerClasses() |
Method[] |
getMethods()
All methods that are declared by this class.
|
java.lang.String |
getName()
Type fully qualified class name.
|
JavaType[] |
getSuperClasses()
Return the superclasses of this class.
|
boolean |
isAbstract() |
boolean |
isArray() |
boolean |
isFinal() |
boolean |
isInterface() |
boolean |
isPrimitive() |
java.lang.String |
toString() |
public BcelJavaType(org.apache.bcel.generic.Type bcelType, org.apache.bcel.util.Repository repository)
public BcelJavaType(org.apache.bcel.classfile.JavaClass clazz)
public java.lang.String getName()
JavaType
public JavaType getContainingClass()
JavaType
getContainingClass
in interface JavaType
null
if this JavaType does not represent an inner class.public JavaType[] getSuperClasses()
JavaType
getSuperClasses
in interface JavaType
java.lang.Object
.public JavaType[] getAllInterfaces()
JavaType
getAllInterfaces
in interface JavaType
this
if this JavaType represents an interface itself.public JavaType[] getInnerClasses()
getInnerClasses
in interface JavaType
public Method[] getMethods()
JavaType
getMethods
in interface JavaType
public Field[] getFields()
JavaType
public boolean isPrimitive()
isPrimitive
in interface JavaType
public boolean isAbstract()
isAbstract
in interface JavaType
public boolean isInterface()
isInterface
in interface JavaType
public Scope getDeclaredScope()
Scoped
getDeclaredScope
in interface Scoped
public Scope getEffectiveScope()
Scoped
getEffectiveScope
in interface Scoped
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2003-2012 Lars K??hne. All Rights Reserved.