public void setSignature(String signature) { if(signature == null) { signatureAttribute = null; } else { signatureAttribute = new SignatureAttribute(classFile.getConstPool(), signature); } this.signature = signature; }
public void setSignature(String signature) { if(signature == null) { signatureAttribute = null; } else { signatureAttribute = new SignatureAttribute(classFile.getConstPool(), signature); } this.signature = signature; }
public void setSignature(String signature) { if(signature == null) { signatureAttribute = null; } else { signatureAttribute = new SignatureAttribute(classFile.getConstPool(), signature); } this.signature = signature; }
public void setSignature(String signature) { if(signature == null) { signatureAttribute = null; } else { signatureAttribute = new SignatureAttribute(classFile.getConstPool(), signature); } this.signature = signature; }
public void setSignature(String signature) { if(signature == null) { signatureAttribute = null; } else { signatureAttribute = new SignatureAttribute(classFile.getConstPool(), signature); } this.signature = signature; }
public void setSignature(String signature) { if(signature == null) { signatureAttribute = null; } else { signatureAttribute = new SignatureAttribute(classFile.getConstPool(), signature); } this.signature = signature; }
public void setSignature(String signature) { if(signature == null) { signatureAttribute = null; } else { signatureAttribute = new SignatureAttribute(classFile.getConstPool(), signature); } this.signature = signature; }
public void setSignature(String signature) { if(signature == null) { signatureAttribute = null; } else { signatureAttribute = new SignatureAttribute(classFile.getConstPool(), signature); } this.signature = signature; }
public void setSignature(String signature) { if(signature == null) { signatureAttribute = null; } else { signatureAttribute = new SignatureAttribute(classFile.getConstPool(), signature); } this.signature = signature; }
public void setSignature(String signature) { if(signature == null) { signatureAttribute = null; } else { signatureAttribute = new SignatureAttribute(classFile.getConstPool(), signature); } this.signature = signature; }
/** * Creates the initial stack frame */ public StackFrame(ClassMethod method) { this.stackState = new StackState(method.getClassFile().getConstPool()); this.localVariableState = new LocalVariableState(method); this.type = StackFrameType.FULL_FRAME; }
/** * Creates the initial stack frame */ public StackFrame(ClassMethod method) { this.stackState = new StackState(method.getClassFile().getConstPool()); this.localVariableState = new LocalVariableState(method); this.type = StackFrameType.FULL_FRAME; }
/** * Creates the initial stack frame */ public StackFrame(ClassMethod method) { this.stackState = new StackState(method.getClassFile().getConstPool()); this.localVariableState = new LocalVariableState(method); this.type = StackFrameType.FULL_FRAME; }
/** * Creates the initial stack frame */ public StackFrame(ClassMethod method) { this.stackState = new StackState(method.getClassFile().getConstPool()); this.localVariableState = new LocalVariableState(method); this.type = StackFrameType.FULL_FRAME; }
/** * Creates the initial stack frame */ public StackFrame(ClassMethod method) { this.stackState = new StackState(method.getClassFile().getConstPool()); this.localVariableState = new LocalVariableState(method); this.type = StackFrameType.FULL_FRAME; }
ClassMethod(String name, String returnType, String[] parameters, int accessFlags, ClassFile classFile) { ConstPool constPool = classFile.getConstPool(); this.classFile = classFile; this.returnType = DescriptorUtils.validateDescriptor(returnType); this.parameters = parameters; this.name = name; this.descriptor = DescriptorUtils.methodDescriptor(parameters, returnType); this.accessFlags = accessFlags; this.nameIndex = constPool.addUtf8Entry(name); this.descriptorIndex = constPool.addUtf8Entry(descriptor); this.constructor = name.equals("<init>"); this.exceptionsAttribute = new ExceptionsAttribute(constPool); this.attributes.add(exceptionsAttribute); if (Modifier.isAbstract(accessFlags)) { codeAttribute = null; } else { codeAttribute = new CodeAttribute(this, constPool); attributes.add(codeAttribute); } for (String param : this.parameters) { DescriptorUtils.validateDescriptor(param); } this.runtimeVisibleAnnotationsAttribute = new AnnotationsAttribute(AnnotationsAttribute.Type.RUNTIME_VISIBLE, constPool); this.attributes.add(runtimeVisibleAnnotationsAttribute); this.runtimeVisibleParameterAnnotationsAttribute = new ParameterAnnotationsAttribute( ParameterAnnotationsAttribute.Type.RUNTIME_VISIBLE, constPool, parameters.length); this.attributes.add(runtimeVisibleParameterAnnotationsAttribute); }
/** * construct the initial local variable state for a method */ public LocalVariableState(ClassMethod method) { this.constPool = method.getClassFile().getConstPool(); contents = new ArrayList<StackEntry>(); if (!method.isStatic()) { if (method.isConstructor()) { contents.add(new StackEntry(StackEntryType.UNINITIALIZED_THIS, method.getClassFile().getDescriptor())); } else { contents.add(StackEntry.of(method.getClassFile().getDescriptor(), method.getClassFile().getConstPool())); } } for (String param : method.getParameters()) { StackEntry entry = StackEntry.of(param, method.getClassFile().getConstPool()); contents.add(entry); if (entry.isWide()) { contents.add(new StackEntry(StackEntryType.TOP, param)); } } }
/** * construct the initial local variable state for a method */ public LocalVariableState(ClassMethod method) { this.constPool = method.getClassFile().getConstPool(); contents = new ArrayList<StackEntry>(); if (!method.isStatic()) { if (method.isConstructor()) { contents.add(new StackEntry(StackEntryType.UNINITIALIZED_THIS, method.getClassFile().getDescriptor())); } else { contents.add(StackEntry.of(method.getClassFile().getDescriptor(), method.getClassFile().getConstPool())); } } for (String param : method.getParameters()) { StackEntry entry = StackEntry.of(param, method.getClassFile().getConstPool()); contents.add(entry); if (entry.isWide()) { contents.add(new StackEntry(StackEntryType.TOP, param)); } } }
/** * construct the initial local variable state for a method */ public LocalVariableState(ClassMethod method) { this.constPool = method.getClassFile().getConstPool(); contents = new ArrayList<StackEntry>(); if (!method.isStatic()) { if (method.isConstructor()) { contents.add(new StackEntry(StackEntryType.UNINITIALIZED_THIS, method.getClassFile().getDescriptor())); } else { contents.add(StackEntry.of(method.getClassFile().getDescriptor(), method.getClassFile().getConstPool())); } } for (String param : method.getParameters()) { StackEntry entry = StackEntry.of(param, method.getClassFile().getConstPool()); contents.add(entry); if (entry.isWide()) { contents.add(new StackEntry(StackEntryType.TOP, param)); } } }
/** * construct the initial local variable state for a method */ public LocalVariableState(ClassMethod method) { this.constPool = method.getClassFile().getConstPool(); contents = new ArrayList<StackEntry>(); if (!method.isStatic()) { if (method.isConstructor()) { contents.add(new StackEntry(StackEntryType.UNINITIALIZED_THIS, method.getClassFile().getDescriptor())); } else { contents.add(StackEntry.of(method.getClassFile().getDescriptor(), method.getClassFile().getConstPool())); } } for (String param : method.getParameters()) { StackEntry entry = StackEntry.of(param, method.getClassFile().getConstPool()); contents.add(entry); if (entry.isWide()) { contents.add(new StackEntry(StackEntryType.TOP, param)); } } }