Class BytecodeChecker
java.lang.Object
org.jboss.byteman.agent.check.BytecodeChecker
- All Implemented Interfaces:
ClassChecker
a private class which can be used to derive the super and interfaces of a class from its defining bytecode
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetInterface(int idx) identify the name of a specific interface in the implements list of this classintidentify how many interfaces are in the implements list of this classgetSuper()identify the name of the super class for the checked classbooleanidentify if the checked class is embedded in an outer classbooleansee if the checked class is an interface or really a class
-
Field Details
-
isInterface
private boolean isInterface -
interfaces
-
superName
-
outerClass
-
bytesize
private int bytesize
-
-
Constructor Details
-
BytecodeChecker
public BytecodeChecker(byte[] buffer)
-
-
Method Details
-
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
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
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()
-