Deprecated
as a consequence of Constants being deprecated. See corresponding docs for further information.
do_verify()
| Modifier and Type | Class and Description |
|---|---|
| private class | Pass2Verifier.CPESSC_Visitor
A Visitor class that ensures the constant pool satisfies the static constraints. |
| private class | Pass2Verifier.FAMRAV_Visitor
A Visitor class that ensures the ConstantCP-subclassed entries of the constant pool are valid. |
| private static class | Pass2Verifier.InnerClassDetector
This class serves for finding out if a given JavaClass' ConstantPool references an Inner Class. |
| Modifier and Type | Field and Description |
|---|---|
| private LocalVariablesInfo[] | localVariablesInfos
The LocalVariableInfo instances used by Pass3bVerifier. |
| private final Verifier | verifier
The Verifier that created this. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | constantPoolEntriesSatisfyStaticConstraints()
Ensures that the constant pool entries satisfy the static constraints as described in The Java Virtual Machine Specification, 2nd Edition. |
| public VerificationResult | do_verify()
Implements abstract org. |
| private void | everyClassHasAnAccessibleSuperclass()
Ensures that every class has a super class and that final classes are not subclassed. |
| private void | fieldAndMethodRefsAreValid()
Ensures that the ConstantCP-subclassed entries of the constant pool are valid. |
| private void | |
| public LocalVariablesInfo | getLocalVariablesInfo(final int methodNr)
Returns a LocalVariablesInfo object containing information about the usage of the local variables in the Code attribute of the said method or null if the class file this Pass2Verifier operates on could not be pass-2-verified correctly. |
| private static String | |
| private static boolean | validClassMethodName(final String name)
This method returns true if and only if the supplied String represents a valid method name that may be referenced by ConstantMethodref objects. |
| private static boolean | validClassName(final String name)
This method returns true if and only if the supplied String represents a valid Java class name. |
| private static boolean | validFieldName(final String name)
This method returns true if and only if the supplied String represents a valid Java field name. |
| private static boolean | validInterfaceMethodName(final String name)
This method returns true if and only if the supplied String represents a valid Java interface method name that may be referenced by ConstantInterfaceMethodref objects. |
| private static boolean | validJavaIdentifier(final String name)
This method returns true if and only if the supplied String represents a valid Java identifier (so-called simple or unqualified name). |
| private static boolean | validJavaLangMethodName(final String name)
This method returns true if and only if the supplied String represents a valid Java programming language method name stored as a simple (non-qualified) name. |
| private static boolean | validMethodName(final String name, final boolean allowStaticInit)
This method returns true if and only if the supplied String represents a valid method name. |