private static boolean hasStaticClassInitializer(IClassFileReader cfReader) { IMethodInfo[] methodInfos= cfReader.getMethodInfos(); for (int i= 0; i < methodInfos.length; i++) { if (methodInfos[i].isClinit()) { return true; } } return false; }
private ILocalVariableTableEntry getEntryFor(final int index, final ILocalVariableTableEntry[] entries) { for (int i = 0, max = entries.length; i < max; i++) { ILocalVariableTableEntry entry = entries[i]; if (index == entry.getIndex()) { return entry; } } return null; }
@Override protected void doAnnotateMember(IProgressMonitor monitor) throws CoreException, IOException { annotateMethodParameterType(fAffectedTypeName, fAnnotationFile, fSelector, fSignature, fAnnotatedSignature, fParamIdx, fMergeStrategy, monitor); } }
SignatureAttribute(byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { super(classFileBytes, constantPool, offset); final int index = u2At(classFileBytes, 6, offset); this.signatureIndex = index; IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(index); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Utf8) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.signature = constantPoolEntry.getUtf8Value(); }
public NestHostAttribute(byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { super(classFileBytes, constantPool, offset); int index = u2At(classFileBytes, 6, offset); this.hostIndex = index; IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(index); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Class) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.hostName = constantPoolEntry.getClassInfoName(); }
SignatureAttribute(byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { super(classFileBytes, constantPool, offset); final int index = u2At(classFileBytes, 6, offset); this.signatureIndex = index; IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(index); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Utf8) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.signature = constantPoolEntry.getUtf8Value(); } /* (non-Javadoc)
public NestMembersAttributeEntry(byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { this.memberClassNameIndex = u2At(classFileBytes, 0, offset); if (this.memberClassNameIndex != 0) { IConstantPoolEntry constantPoolEntry; constantPoolEntry = constantPool.decodeEntry(this.memberClassNameIndex); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Class) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.memberClassName = constantPoolEntry.getClassInfoName(); } }
private static boolean hasStaticClassInitializer(IClassFileReader cfReader) { IMethodInfo[] methodInfos = cfReader.getMethodInfos(); for (int i = 0; i < methodInfos.length; i++) { if (methodInfos[i].isClinit()) { return true; } } return false; }
SignatureAttribute(byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { super(classFileBytes, constantPool, offset); final int index = u2At(classFileBytes, 6, offset); this.signatureIndex = index; IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(index); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Utf8) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.signature = constantPoolEntry.getUtf8Value(); } /* (non-Javadoc)
private static boolean hasStaticClassInitializer(IClassFileReader cfReader) { IMethodInfo[] methodInfos= cfReader.getMethodInfos(); for (int i= 0; i < methodInfos.length; i++) { if (methodInfos[i].isClinit()) { return true; } } return false; }
SignatureAttribute(byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { super(classFileBytes, constantPool, offset); final int index = u2At(classFileBytes, 6, offset); this.signatureIndex = index; IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(index); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Utf8) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.signature = constantPoolEntry.getUtf8Value(); } /* (non-Javadoc)
SignatureAttribute(byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { super(classFileBytes, constantPool, offset); final int index = u2At(classFileBytes, 6, offset); this.signatureIndex = index; IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(index); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Utf8) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.signature = constantPoolEntry.getUtf8Value(); } /* (non-Javadoc)
SignatureAttribute(byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { super(classFileBytes, constantPool, offset); final int index = u2At(classFileBytes, 6, offset); this.signatureIndex = index; IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(index); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Utf8) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.signature = constantPoolEntry.getUtf8Value(); } /* (non-Javadoc)
SignatureAttribute(byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { super(classFileBytes, constantPool, offset); final int index = u2At(classFileBytes, 6, offset); this.signatureIndex = index; IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(index); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Utf8) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.signature = constantPoolEntry.getUtf8Value(); } /* (non-Javadoc)
public ClassFileAttribute(byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { this.attributeNameIndex = u2At(classFileBytes, 0, offset); this.attributeLength = u4At(classFileBytes, 2, offset); IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(this.attributeNameIndex); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Utf8) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.attributeName = constantPoolEntry.getUtf8Value(); }
public ClassFileAttribute(byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { this.attributeNameIndex = u2At(classFileBytes, 0, offset); this.attributeLength = u4At(classFileBytes, 2, offset); IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(this.attributeNameIndex); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Utf8) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.attributeName = constantPoolEntry.getUtf8Value(); }
public ClassFileAttribute(byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { this.attributeNameIndex = u2At(classFileBytes, 0, offset); this.attributeLength = u4At(classFileBytes, 2, offset); IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(this.attributeNameIndex); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Utf8) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.attributeName = constantPoolEntry.getUtf8Value(); }
public ClassFileAttribute(byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { this.attributeNameIndex = u2At(classFileBytes, 0, offset); this.attributeLength = u4At(classFileBytes, 2, offset); IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(this.attributeNameIndex); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Utf8) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.attributeName = constantPoolEntry.getUtf8Value(); }
public ClassFileAttribute(byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { this.attributeNameIndex = u2At(classFileBytes, 0, offset); this.attributeLength = u4At(classFileBytes, 2, offset); IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(this.attributeNameIndex); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Utf8) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.attributeName = constantPoolEntry.getUtf8Value(); }
public ClassFileAttribute(byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { this.attributeNameIndex = u2At(classFileBytes, 0, offset); this.attributeLength = u4At(classFileBytes, 2, offset); IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(this.attributeNameIndex); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Utf8) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.attributeName = constantPoolEntry.getUtf8Value(); }