private ClassReader getClassReader() { return ((ShrikeClass) getDeclaringClass()).getReader(); }
private ClassReader getClassReader() { return ((ShrikeClass) getDeclaringClass()).getReader(); }
@Override public Collection<Annotation> getAnnotations(boolean runtimeInvisible) throws InvalidClassFileException { AnnotationsReader r = getAnnotationsReader(runtimeInvisible ? AnnotationType.RuntimeInvisibleAnnotations : AnnotationType.RuntimeVisibleAnnotations); return Annotation.getAnnotationsFromReader(r, getDeclaringClass().getClassLoader().getReference()); }
@Override public Collection<Annotation> getAnnotations(boolean runtimeInvisible) throws InvalidClassFileException { AnnotationsReader r = getAnnotationsReader(runtimeInvisible ? AnnotationType.RuntimeInvisibleAnnotations : AnnotationType.RuntimeVisibleAnnotations); return Annotation.getAnnotationsFromReader(r, getDeclaringClass().getClassLoader().getReference()); }
public Collection<TypeAnnotation> getTypeAnnotationsAtMethodInfo(boolean runtimeInvisible) throws InvalidClassFileException { TypeAnnotationsReader r = getTypeAnnotationsReaderAtMethodInfo( runtimeInvisible ? TypeAnnotationsReader.AnnotationType.RuntimeInvisibleTypeAnnotations : TypeAnnotationsReader.AnnotationType.RuntimeVisibleTypeAnnotations ); final ClassLoaderReference clRef = getDeclaringClass().getClassLoader().getReference(); return TypeAnnotation.getTypeAnnotationsFromReader( r, TypeAnnotation.targetConverterAtMethodInfo(clRef), clRef ); }
public Collection<TypeAnnotation> getTypeAnnotationsAtCode(boolean runtimeInvisible) throws InvalidClassFileException { TypeAnnotationsReader r = getTypeAnnotationsReaderAtCode( runtimeInvisible ? TypeAnnotationsReader.AnnotationType.RuntimeInvisibleTypeAnnotations : TypeAnnotationsReader.AnnotationType.RuntimeVisibleTypeAnnotations ); final ClassLoaderReference clRef = getDeclaringClass().getClassLoader().getReference(); return TypeAnnotation.getTypeAnnotationsFromReader( r, TypeAnnotation.targetConverterAtCode(clRef, this), clRef ); }
public Collection<TypeAnnotation> getTypeAnnotationsAtCode(boolean runtimeInvisible) throws InvalidClassFileException { TypeAnnotationsReader r = getTypeAnnotationsReaderAtCode( runtimeInvisible ? TypeAnnotationsReader.AnnotationType.RuntimeInvisibleTypeAnnotations : TypeAnnotationsReader.AnnotationType.RuntimeVisibleTypeAnnotations ); final ClassLoaderReference clRef = getDeclaringClass().getClassLoader().getReference(); return TypeAnnotation.getTypeAnnotationsFromReader( r, TypeAnnotation.targetConverterAtCode(clRef, this), clRef ); }
public Collection<TypeAnnotation> getTypeAnnotationsAtMethodInfo(boolean runtimeInvisible) throws InvalidClassFileException { TypeAnnotationsReader r = getTypeAnnotationsReaderAtMethodInfo( runtimeInvisible ? TypeAnnotationsReader.AnnotationType.RuntimeInvisibleTypeAnnotations : TypeAnnotationsReader.AnnotationType.RuntimeVisibleTypeAnnotations ); final ClassLoaderReference clRef = getDeclaringClass().getClassLoader().getReference(); return TypeAnnotation.getTypeAnnotationsFromReader( r, TypeAnnotation.targetConverterAtMethodInfo(clRef), clRef ); }
String fileName = ((ShrikeClass)getDeclaringClass()).getSourceFileReader().getSourceFile(); SPos paramPos = new SPos(fileName, param.firstLine, param.lastLine, param.firstCol, param.lastCol); for (int i = 0; i < getNumberOfParameters(); i++) { SourceFileReader reader = ((ShrikeClass)getDeclaringClass()).getSourceFileReader(); if (reader != null) { sourceFile = reader.getSourceFile();
String fileName = ((ShrikeClass)getDeclaringClass()).getSourceFileReader().getSourceFile(); SPos paramPos = new SPos(fileName, param.firstLine, param.lastLine, param.firstCol, param.lastCol); for (int i = 0; i < getNumberOfParameters(); i++) { SourceFileReader reader = ((ShrikeClass)getDeclaringClass()).getSourceFileReader(); if (reader != null) { sourceFile = reader.getSourceFile();
ClassLoaderReference reference = getDeclaringClass().getClassLoader().getReference(); AnnotationsReader r = getAnnotationsReader(AnnotationType.RuntimeInvisibleParameterAnnotations); Collection<Annotation>[] paramAnnots = Annotation.getParameterAnnotationsFromReader(r, reference);
ClassLoaderReference reference = getDeclaringClass().getClassLoader().getReference(); AnnotationsReader r = getAnnotationsReader(AnnotationType.RuntimeInvisibleParameterAnnotations); Collection<Annotation>[] paramAnnots = Annotation.getParameterAnnotationsFromReader(r, reference);
throw new IllegalArgumentException("illegal local number: " + localNumber + ", method " + getDeclaringClass().getName() + '.' + getName() + " uses at most " + getMaxLocals());
throw new IllegalArgumentException("illegal local number: " + localNumber + ", method " + getDeclaringClass().getName() + '.' + getName() + " uses at most " + getMaxLocals());