SignatureVisitor that checks that its methods are properly used.
| Modifier and Type | Class and Description |
|---|---|
| private static enum | CheckSignatureAdapter.State
The possible states of the automaton used to check the order of method calls. |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | canBeVoid
Whether the visited signature can be 'V'. |
| public static final int | CLASS_SIGNATURE
Type to be used to check class signatures. |
| private static final String | |
| public static final int | METHOD_SIGNATURE
Type to be used to check method signatures. |
| private final SignatureVisitor | signatureVisitor
The visitor to which this adapter must delegate calls. |
| private CheckSignatureAdapter. | state
The current state of the automaton used to check the order of method calls. |
| private final int | type
The type of the visited signature. |
| public static final int | TYPE_SIGNATURE
Type to be used to check type signatures.See |
| private static final EnumSet | VISIT_CLASS_BOUND_STATES
The valid automaton states for a |
| private static final EnumSet | VISIT_EXCEPTION_TYPE_STATES
The valid automaton states for a |
| private static final EnumSet | VISIT_FORMAL_TYPE_PARAMETER_STATES
The valid automaton states for a |
| private static final EnumSet | VISIT_INTERFACE_BOUND_STATES
The valid automaton states for a |
| private static final EnumSet | VISIT_INTERFACE_STATES
The valid automaton states for a |
| private static final EnumSet | VISIT_PARAMETER_TYPE_STATES
The valid automaton states for a |
| private static final EnumSet | VISIT_RETURN_TYPE_STATES
The valid automaton states for a |
| private static final EnumSet | VISIT_SUPER_CLASS_STATES
The valid automaton states for a |
| Access | Constructor and Description |
|---|---|
| public | CheckSignatureAdapter(final int type, final SignatureVisitor
the visitor to which this adapter must delegate calls. May be null. signatureVisitor)Constructs a new |
| protected | CheckSignatureAdapter(final int
the ASM API version implemented by this visitor. Must be one of the api, final int type, final SignatureVisitor ASMx values in Opcodes.the visitor to which this adapter must delegate calls. May be null. signatureVisitor)Constructs a new |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| public SignatureVisitor | visitArrayType()
Overrides org. |
| public void | visitBaseType(final char
the descriptor of the primitive type, or 'V' for descriptor)void .Overrides org. |
| public SignatureVisitor | visitClassBound()
Overrides org. |
| public void | visitClassType(final String
the internal name of the class or interface (see name)org.objectweb.asm.Type#getInternalName()).Overrides org. |
| public void | visitEnd()
Overrides org. |
| public SignatureVisitor | visitExceptionType()
Overrides org. |
| public void | visitFormalTypeParameter(final String
the name of the formal parameter. name)Overrides org. |
| public void | visitInnerClassType(final String
the local name of the inner class in its enclosing class. name)Overrides org. |
| public SignatureVisitor | visitInterface()
Overrides org. |
| public SignatureVisitor | visitInterfaceBound()
Overrides org. |
| public SignatureVisitor | visitParameterType()
Overrides org. |
| public SignatureVisitor | visitReturnType()
Overrides org. |
| public SignatureVisitor | visitSuperclass()
Overrides org. |
| public void | visitTypeArgument()
Overrides org. |
| public SignatureVisitor | visitTypeArgument(final char
'+', '-' or '='. wildcard)Overrides org. |
| public void | visitTypeVariable(final String
the name of the type variable. name)Overrides org. |
| canBeVoid | back to summary |
|---|---|
| private boolean canBeVoid Whether the visited signature can be 'V'. | |
| CLASS_SIGNATURE | back to summary |
|---|---|
| public static final int CLASS_SIGNATURE Type to be used to check class signatures. See | |
| INVALID | back to summary |
|---|---|
| private static final String INVALID | |
| METHOD_SIGNATURE | back to summary |
|---|---|
| public static final int METHOD_SIGNATURE Type to be used to check method signatures. See | |
| signatureVisitor | back to summary |
|---|---|
| private final SignatureVisitor signatureVisitor The visitor to which this adapter must delegate calls. May be null. | |
| state | back to summary |
|---|---|
| private CheckSignatureAdapter. The current state of the automaton used to check the order of method calls. | |
| type | back to summary |
|---|---|
| private final int type The type of the visited signature. | |
| TYPE_SIGNATURE | back to summary |
|---|---|
| public static final int TYPE_SIGNATURE Type to be used to check type signatures.See | |
| VISIT_CLASS_BOUND_STATES | back to summary |
|---|---|
| private static final EnumSet<CheckSignatureAdapter. The valid automaton states for a | |
| VISIT_EXCEPTION_TYPE_STATES | back to summary |
|---|---|
| private static final EnumSet<CheckSignatureAdapter. The valid automaton states for a | |
| VISIT_FORMAL_TYPE_PARAMETER_STATES | back to summary |
|---|---|
| private static final EnumSet<CheckSignatureAdapter. The valid automaton states for a | |
| VISIT_INTERFACE_BOUND_STATES | back to summary |
|---|---|
| private static final EnumSet<CheckSignatureAdapter. The valid automaton states for a | |
| VISIT_INTERFACE_STATES | back to summary |
|---|---|
| private static final EnumSet<CheckSignatureAdapter. The valid automaton states for a | |
| VISIT_PARAMETER_TYPE_STATES | back to summary |
|---|---|
| private static final EnumSet<CheckSignatureAdapter. The valid automaton states for a | |
| VISIT_RETURN_TYPE_STATES | back to summary |
|---|---|
| private static final EnumSet<CheckSignatureAdapter. The valid automaton states for a | |
| VISIT_SUPER_CLASS_STATES | back to summary |
|---|---|
| private static final EnumSet<CheckSignatureAdapter. The valid automaton states for a | |
| CheckSignatureAdapter | back to summary |
|---|---|
| public CheckSignatureAdapter(final int type, final SignatureVisitor signatureVisitor) Constructs a new
| |
| CheckSignatureAdapter | back to summary |
|---|---|
| protected CheckSignatureAdapter(final int api, final int type, final SignatureVisitor signatureVisitor) Constructs a new
| |
| checkClassName | back to summary |
|---|---|
| private void checkClassName(final String name, final String message) | |
| checkIdentifier | back to summary |
|---|---|
| private void checkIdentifier(final String name, final String message) | |
| visitArrayType | back to summary |
|---|---|
| public SignatureVisitor visitArrayType() Overrides org. Doc from org. Visits a signature corresponding to an array type.
| |
| visitBaseType | back to summary |
|---|---|
| public void visitBaseType(final char descriptor) Overrides org. Doc from org. Visits a signature corresponding to a primitive type.
| |
| visitClassBound | back to summary |
|---|---|
| public SignatureVisitor visitClassBound() Overrides org. Doc from org. Visits the class bound of the last visited formal type parameter.
| |
| visitClassType | back to summary |
|---|---|
| public void visitClassType(final String name) Overrides org. Doc from org. Starts the visit of a signature corresponding to a class or interface type.
| |
| visitEnd | back to summary |
|---|---|
| public void visitEnd() Overrides org. Doc from org. Ends the visit of a signature corresponding to a class or interface type.
| |
| visitExceptionType | back to summary |
|---|---|
| public SignatureVisitor visitExceptionType() Overrides org. Doc from org. Visits the type of a method exception.
| |
| visitFormalTypeParameter | back to summary |
|---|---|
| public void visitFormalTypeParameter(final String name) Overrides org. Doc from org. Visits a formal type parameter. | |
| visitInnerClassType | back to summary |
|---|---|
| public void visitInnerClassType(final String name) Overrides org. Doc from org. Visits an inner class. | |
| visitInterface | back to summary |
|---|---|
| public SignatureVisitor visitInterface() Overrides org. Doc from org. Visits the type of an interface implemented by the class.
| |
| visitInterfaceBound | back to summary |
|---|---|
| public SignatureVisitor visitInterfaceBound() Overrides org. Doc from org. Visits an interface bound of the last visited formal type parameter.
| |
| visitParameterType | back to summary |
|---|---|
| public SignatureVisitor visitParameterType() Overrides org. Doc from org. Visits the type of a method parameter.
| |
| visitReturnType | back to summary |
|---|---|
| public SignatureVisitor visitReturnType() Overrides org. Doc from org. Visits the return type of the method.
| |
| visitSuperclass | back to summary |
|---|---|
| public SignatureVisitor visitSuperclass() Overrides org. Doc from org. Visits the type of the super class.
| |
| visitTypeArgument | back to summary |
|---|---|
| public void visitTypeArgument() Overrides org. Doc from org. Visits an unbounded type argument of the last visited class or inner class type.
| |
| visitTypeArgument | back to summary |
|---|---|
| public SignatureVisitor visitTypeArgument(final char wildcard) Overrides org. Doc from org. Visits a type argument of the last visited class or inner class type.
| |
| visitTypeVariable | back to summary |
|---|---|
| public void visitTypeVariable(final String name) Overrides org. Doc from org. Visits a signature corresponding to a type variable. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final CheckSignatureAdapter. | |
| public static final CheckSignatureAdapter. | |
| public static final CheckSignatureAdapter. | |
| public static final CheckSignatureAdapter. | |
| public static final CheckSignatureAdapter. | |
| public static final CheckSignatureAdapter. | |
| public static final CheckSignatureAdapter. | |
| public static final CheckSignatureAdapter. | |
| public static final CheckSignatureAdapter. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static CheckSignatureAdapter. | |
| public static CheckSignatureAdapter. |
| BOUND | back to summary |
|---|---|
| public static final CheckSignatureAdapter. | |
| CLASS_TYPE | back to summary |
|---|---|
| public static final CheckSignatureAdapter. | |
| EMPTY | back to summary |
|---|---|
| public static final CheckSignatureAdapter. | |
| END | back to summary |
|---|---|
| public static final CheckSignatureAdapter. | |
| FORMAL | back to summary |
|---|---|
| public static final CheckSignatureAdapter. | |
| PARAM | back to summary |
|---|---|
| public static final CheckSignatureAdapter. | |
| RETURN | back to summary |
|---|---|
| public static final CheckSignatureAdapter. | |
| SIMPLE_TYPE | back to summary |
|---|---|
| public static final CheckSignatureAdapter. | |
| SUPER | back to summary |
|---|---|
| public static final CheckSignatureAdapter. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static CheckSignatureAdapter. | |
| values | back to summary |
|---|---|
| public static CheckSignatureAdapter. | |