import {InstructionMajorVersionVerifier} from 'jvm/lib/core/jvm/verify/InstructionMajorVersionVerifier.js'
InstructionMajorVersionVerifier
Utility class for verifying that all methods for a given class do not use instructions that are not available in their Java SE runtime.
Constructor Summary
Public Constructor | ||
public |
constructor(classInfo: ClassInfo) |
Member Summary
Private Members | ||
private |
|
|
private |
|
Method Summary
Public Methods | ||
public |
findInvalidMethodOpcodes(method: MethodInfo): Array<Number> Finds the intersection between the unusable opcodes and the opcodes present in MethodInfo.instructions. |
|
public |
Finds all opcodes with a version higher than the ClassInfo object being verified. |
|
public |
Determines if the ClassInfo object only has opcodes that are usable for the given Java SE runtime. |
Public Constructors
Public Methods
public findInvalidMethodOpcodes(method: MethodInfo): Array<Number> source
Finds the intersection between the unusable opcodes and the opcodes present in MethodInfo.instructions.
Params:
Name | Type | Attribute | Description |
method | MethodInfo |