LazyMethodGen mg = makeMethodGen(gen, accessMethod);
InstructionList il = new InstructionList();
InstructionFactory fact = gen.getFactory();
- if (field.isStatic()) {
+ if (Modifier.isStatic(field.getModifiers())) {
il.append(fact.createFieldAccess(gen.getClassName(), field.getName(), BcelWorld.makeBcelType(field.getType()),
Constants.GETSTATIC));
} else {
int pos = 0;
- if (!method.isStatic()) {
+ if (!Modifier.isStatic(method.getModifiers())) {
il.append(InstructionConstants.ALOAD_0);
pos++;
}
InstructionFactory fact = classGen.getFactory();
int pos = 0;
- if (!unMangledInterMethod.isStatic()) {
+ if (!Modifier.isStatic(unMangledInterMethod.getModifiers())) {
body.append(InstructionFactory.createThis());
pos++;
}
body = bridgeMethod.getBody();
fact = classGen.getFactory();
pos = 0;
- if (!bridgingSetter.isStatic()) {
+ if (!Modifier.isStatic(bridgingSetter.getModifiers())) {
body.append(InstructionFactory.createThis());
pos++;
}
body = bridgeMethod.getBody();
fact = clazz.getFactory();
- if (!unMangledInterMethod.isStatic()) {
+ if (!Modifier.isStatic(unMangledInterMethod.getModifiers())) {
body.append(InstructionFactory.createThis());
pos++;
}
return false;
}
}
- if (rm.isStatic()) {
+ if (Modifier.isStatic(rm.getModifiers())) {
if (rm.getArity() != 0) {
body.append(InstructionConstants.ALOAD_0);
}
LazyMethodGen mg = makeMethodGen(gen, itdfieldGetter);
InstructionList il = new InstructionList();
InstructionFactory fact = gen.getFactory();
- if (field.isStatic()) {
+ if (Modifier.isStatic(field.getModifiers())) {
il.append(fact.createFieldAccess(gen.getClassName(), fg.getName(), fieldType, Constants.GETSTATIC));
} else {
il.append(InstructionConstants.ALOAD_0);
fact = gen.getFactory();
int pos = 0;
- if (!bridgingSetter.isStatic()) {
+ if (!Modifier.isStatic(bridgingSetter.getModifiers())) {
body.append(InstructionFactory.createThis());
pos++;
}