String[] array = entryName.split("/"); if (entryName.toLowerCase().endsWith(".class")) { String internalName = StringUtilities.removeRight(entryName, ".class"); TypeReference type = Model.metadataSystem.lookupType(internalName); try {
String declaringTypeName = declaringTypeDef.getName(); if (declaringTypeName != null) { constructorName = StringUtilities.removeLeft(constructorName, declaringTypeName); constructorName = constructorName.replaceAll("^(\\.|\\$)", "");
@SuppressWarnings("unchecked") public void addCustomAnnotation(final AnnotationBuilder<? extends Annotation> annotation) { VerifyArgument.notNull(annotation, "annotation"); final AnnotationBuilder[] newAnnotations = new AnnotationBuilder[this._annotations.size() + 1]; _annotations.toArray(newAnnotations); newAnnotations[this._annotations.size()] = annotation; _annotations = new ReadOnlyList<AnnotationBuilder<? extends Annotation>>(newAnnotations); }
public static <T> T first(final Iterable<T> collection, final Predicate<T> predicate) { VerifyArgument.notNull(predicate, "predicate"); for (final T item : VerifyArgument.notNull(collection, "collection")) { if (predicate.test(item)) { return item; } } throw Error.sequenceHasNoElements(); }
public static long[] append(final long[] array, final long value) { if (isNullOrEmpty(array)) { return new long[] { value }; } return insert(array, VerifyArgument.notNull(array, "array").length, value); }
public static <TSource, TAccumulate> TAccumulate aggregate( final Iterable<TSource> source, final TAccumulate seed, final Accumulator<TSource, TAccumulate> accumulator) { VerifyArgument.notNull(source, "source"); VerifyArgument.notNull(accumulator, "accumulator"); TAccumulate accumulate = seed; for (final TSource item : source) { accumulate = accumulator.accumulate(accumulate, item); } return accumulate; }
public static <T> T get(final Iterable<T> collection, final int index) { if (VerifyArgument.notNull(collection, "collection") instanceof List<?>) { return get((List<T>) collection, index); } int i = 0; for (final T item : collection) { if (i++ == index) { return item; } } throw Error.indexOutOfRange(index); }
FieldBuilder(final TypeBuilder typeBuilder, final String name, final Type<?> type, final int modifiers, final Object constantValue) { _constantValue = constantValue; _typeBuilder = VerifyArgument.notNull(typeBuilder, "typeBuilder"); _name = VerifyArgument.notNull(name, "name"); _type = VerifyArgument.notNull(type, "type"); _modifiers = modifiers; _annotations = ReadOnlyList.emptyList(); }
public static <T, R> Iterable<R> select(final Iterable<T> source, final Selector<? super T, ? extends R> selector) { VerifyArgument.notNull(source, "source"); VerifyArgument.notNull(selector, "selector"); if (source instanceof WhereSelectIterableIterator<?, ?>) { return ((WhereSelectIterableIterator<?, T>) source).select(selector); } return new WhereSelectIterableIterator<>(source, null, selector); }
private static boolean sequenceDeepEqualsCore(final Object first, final Object second) { if (first instanceof List<?>) { return second instanceof List<?> && sequenceDeepEquals((List<?>) first, (List<?>) second); } return Comparer.deepEquals(first, second); }
public Iterable<R> where(final Predicate<? super R> filter) { if (this.selector != null) { return new WhereSelectIterableIterator<>(this, filter, null); } return new WhereSelectIterableIterator<>( this.source, Predicates.and((Predicate<T>) this.filter, (Predicate<T>) filter), null ); }
public <R2> Iterable<R2> select(final Selector<? super R, ? extends R2> selector) { return new WhereSelectIterableIterator<>( this.source, this.filter, this.selector != null ? Selectors.combine(this.selector, selector) : (Selector<T, R2>) selector ); } }
@SuppressWarnings("unchecked") public void addCustomAnnotation(final AnnotationBuilder<? extends Annotation> annotation) { VerifyArgument.notNull(annotation, "annotation"); final AnnotationBuilder[] newAnnotations = new AnnotationBuilder[this._annotations.size() + 1]; _annotations.toArray(newAnnotations); newAnnotations[this._annotations.size()] = annotation; _annotations = new ReadOnlyList<AnnotationBuilder<? extends Annotation>>(newAnnotations); }
public static <T> T first(final Iterable<T> collection, final Predicate<T> predicate) { VerifyArgument.notNull(predicate, "predicate"); for (final T item : VerifyArgument.notNull(collection, "collection")) { if (predicate.test(item)) { return item; } } throw Error.sequenceHasNoElements(); }
public static <TSource, TAccumulate> TAccumulate aggregate( final Iterable<TSource> source, final TAccumulate seed, final Accumulator<TSource, TAccumulate> accumulator) { VerifyArgument.notNull(source, "source"); VerifyArgument.notNull(accumulator, "accumulator"); TAccumulate accumulate = seed; for (final TSource item : source) { accumulate = accumulator.accumulate(accumulate, item); } return accumulate; }
if (entryName.endsWith(".class")) { getLabel().setText("Extracting: " + name); String internalName = StringUtilities.removeRight(entryName, ".class"); TypeReference type = metadataSystem.lookupType(internalName); extractClassToTextPane(type, name, path, null);
if (entry.getName().endsWith(".class")) { synchronized (settings) { String internalName = StringUtilities.removeRight(entry.getName(), ".class"); TypeReference type = Model.metadataSystem.lookupType(internalName); TypeDefinition resolvedType = null;
try { boolean isUnicodeEnabled = decompilationOptions.getSettings().isUnicodeOutputEnabled(); String internalName = StringUtilities.removeRight(entry.getName(), ".class"); TypeReference type = metadataSystem.lookupType(internalName); TypeDefinition resolvedType = null;