85 */
86 public abstract class SignatureVisitor {
87
88 /**
89 * Wildcard for an "extends" type argument.
90 */
91 public final static char EXTENDS = '+';
92
93 /**
94 * Wildcard for a "super" type argument.
95 */
96 public final static char SUPER = '-';
97
98 /**
99 * Wildcard for a normal type argument.
100 */
101 public final static char INSTANCEOF = '=';
102
103 /**
104 * The ASM API version implemented by this visitor. The value of this field
105 * must be one of {@link Opcodes#ASM4} or {@link Opcodes#ASM5}.
106 */
107 protected final int api;
108
109 /**
110 * Constructs a new {@link SignatureVisitor}.
111 *
112 * @param api
113 * the ASM API version implemented by this visitor. Must be one
114 * of {@link Opcodes#ASM4} or {@link Opcodes#ASM5}.
115 */
116 public SignatureVisitor(final int api) {
117 if (api != Opcodes.ASM4 && api != Opcodes.ASM5) {
118 throw new IllegalArgumentException();
119 }
120 this.api = api;
121 }
122
123 /**
124 * Visits a formal type parameter.
125 *
126 * @param name
127 * the name of the formal parameter.
128 */
129 public void visitFormalTypeParameter(String name) {
130 }
131
132 /**
133 * Visits the class bound of the last visited formal type parameter.
134 *
135 * @return a non null visitor to visit the signature of the class bound.
136 */
137 public SignatureVisitor visitClassBound() {
|
85 */
86 public abstract class SignatureVisitor {
87
88 /**
89 * Wildcard for an "extends" type argument.
90 */
91 public final static char EXTENDS = '+';
92
93 /**
94 * Wildcard for a "super" type argument.
95 */
96 public final static char SUPER = '-';
97
98 /**
99 * Wildcard for a normal type argument.
100 */
101 public final static char INSTANCEOF = '=';
102
103 /**
104 * The ASM API version implemented by this visitor. The value of this field
105 * must be one of {@link Opcodes#ASM4}, {@link Opcodes#ASM5} or {@link Opcodes#ASM6}.
106 */
107 protected final int api;
108
109 /**
110 * Constructs a new {@link SignatureVisitor}.
111 *
112 * @param api
113 * the ASM API version implemented by this visitor. Must be one
114 * of {@link Opcodes#ASM4}, {@link Opcodes#ASM5} or {@link Opcodes#ASM6}.
115 */
116 public SignatureVisitor(final int api) {
117 if (api < Opcodes.ASM4 || api > Opcodes.ASM6) {
118 throw new IllegalArgumentException();
119 }
120 this.api = api;
121 }
122
123 /**
124 * Visits a formal type parameter.
125 *
126 * @param name
127 * the name of the formal parameter.
128 */
129 public void visitFormalTypeParameter(String name) {
130 }
131
132 /**
133 * Visits the class bound of the last visited formal type parameter.
134 *
135 * @return a non null visitor to visit the signature of the class bound.
136 */
137 public SignatureVisitor visitClassBound() {
|