org.jboss.byteman.agent.check
Class LoadedClassChecker

java.lang.Object
  extended by org.jboss.byteman.agent.check.LoadedClassChecker
All Implemented Interfaces:
ClassChecker

public class LoadedClassChecker
extends java.lang.Object
implements ClassChecker


Field Summary
(package private) static java.lang.Class[] EMPTY
           
(package private)  boolean hasOuterClass
           
(package private)  java.lang.Class[] interfaces
           
(package private)  boolean isInterface
           
(package private)  java.lang.String superName
           
 
Constructor Summary
LoadedClassChecker(java.lang.Class<?> clazz)
           
 
Method Summary
 java.lang.String getInterface(int idx)
          identify the name of a specific interface in the implements list of this class
 int getInterfaceCount()
          identify how many interfaces are in the implements list of this class
 java.lang.String getSuper()
          identify the name of the super class for the checked class
 boolean hasOuterClass()
          identify if the checked class is embedded in an outer class
 boolean isInterface()
          see if the checked class is an interface or really a class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY

static final java.lang.Class[] EMPTY

isInterface

boolean isInterface

superName

java.lang.String superName

hasOuterClass

boolean hasOuterClass

interfaces

java.lang.Class[] interfaces
Constructor Detail

LoadedClassChecker

public LoadedClassChecker(java.lang.Class<?> clazz)
Method Detail

isInterface

public boolean isInterface()
Description copied from interface: ClassChecker
see if the checked class is an interface or really a class

Specified by:
isInterface in interface ClassChecker
Returns:
true if the checked class is an interface and false if it is really a class

getSuper

public java.lang.String getSuper()
Description copied from interface: ClassChecker
identify the name of the super class for the checked class

Specified by:
getSuper in interface ClassChecker
Returns:
the name of the super class for the checked class

hasOuterClass

public boolean hasOuterClass()
Description copied from interface: ClassChecker
identify if the checked class is embedded in an outer class

Specified by:
hasOuterClass in interface ClassChecker
Returns:
true if the checked class is embedded in an outer class otherwise false

getInterfaceCount

public int getInterfaceCount()
Description copied from interface: ClassChecker
identify how many interfaces are in the implements list of this class

Specified by:
getInterfaceCount in interface ClassChecker
Returns:
how many interfaces are in the implements list of this class

getInterface

public java.lang.String getInterface(int idx)
Description copied from interface: ClassChecker
identify the name of a specific interface in the implements list of this class

Specified by:
getInterface in interface ClassChecker
Parameters:
idx - the index of the interface in the list
Returns:
the name of a specific interface in the implements list of this class