Package org.jboss.byteman.agent.check
Class BytecodeChecker
- java.lang.Object
-
- org.jboss.byteman.agent.check.BytecodeChecker
-
- All Implemented Interfaces:
ClassChecker
public class BytecodeChecker extends java.lang.Object implements ClassChecker
a private class which can be used to derive the super and interfaces of a class from its defining bytecode
-
-
Field Summary
Fields Modifier and Type Field Description private intbytesizeprivate java.lang.String[]interfacesprivate booleanisInterfaceprivate java.lang.StringouterClassprivate java.lang.StringsuperName
-
Constructor Summary
Constructors Constructor Description BytecodeChecker(byte[] buffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBytesize()java.lang.StringgetInterface(int idx)identify the name of a specific interface in the implements list of this classintgetInterfaceCount()identify how many interfaces are in the implements list of this classjava.lang.StringgetSuper()identify the name of the super class for the checked classbooleanhasOuterClass()identify if the checked class is embedded in an outer classbooleanisInterface()see if the checked class is an interface or really a class
-
-
-
Method Detail
-
isInterface
public boolean isInterface()
Description copied from interface:ClassCheckersee if the checked class is an interface or really a class- Specified by:
isInterfacein interfaceClassChecker- 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:ClassCheckeridentify the name of the super class for the checked class- Specified by:
getSuperin interfaceClassChecker- Returns:
- the name of the super class for the checked class
-
hasOuterClass
public boolean hasOuterClass()
Description copied from interface:ClassCheckeridentify if the checked class is embedded in an outer class- Specified by:
hasOuterClassin interfaceClassChecker- Returns:
- true if the checked class is embedded in an outer class otherwise false
-
getInterfaceCount
public int getInterfaceCount()
Description copied from interface:ClassCheckeridentify how many interfaces are in the implements list of this class- Specified by:
getInterfaceCountin interfaceClassChecker- Returns:
- how many interfaces are in the implements list of this class
-
getInterface
public java.lang.String getInterface(int idx)
Description copied from interface:ClassCheckeridentify the name of a specific interface in the implements list of this class- Specified by:
getInterfacein interfaceClassChecker- Parameters:
idx- the index of the interface in the list- Returns:
- the name of a specific interface in the implements list of this class
-
getBytesize
public int getBytesize()
-
-