本文整理汇总了Java中org.jf.util.AbstractForwardSequentialList类的典型用法代码示例。如果您正苦于以下问题:Java AbstractForwardSequentialList类的具体用法?Java AbstractForwardSequentialList怎么用?Java AbstractForwardSequentialList使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AbstractForwardSequentialList类属于org.jf.util包,在下文中一共展示了AbstractForwardSequentialList类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getParameterAnnotations
import org.jf.util.AbstractForwardSequentialList; //导入依赖的package包/类
@Nullable @Override public List<? extends Set<? extends Annotation>> getParameterAnnotations(
@Nonnull final PoolMethod method) {
final List<? extends MethodParameter> parameters = method.getParameters();
boolean hasParameterAnnotations = Iterables.any(parameters, HAS_PARAMETER_ANNOTATIONS);
if (hasParameterAnnotations) {
return new AbstractForwardSequentialList<Set<? extends Annotation>>() {
@Nonnull @Override public Iterator<Set<? extends Annotation>> iterator() {
return FluentIterable.from(parameters)
.transform(PARAMETER_ANNOTATIONS).iterator();
}
@Override public int size() {
return parameters.size();
}
};
}
return null;
}
示例2: getParameterAnnotations
import org.jf.util.AbstractForwardSequentialList; //导入依赖的package包/类
@Nullable @Override public List<? extends BuilderAnnotationSet> getParameterAnnotations(
@Nonnull final BuilderMethod method) {
final List<? extends BuilderMethodParameter> parameters = method.getParameters();
boolean hasParameterAnnotations = Iterables.any(parameters, HAS_PARAMETER_ANNOTATIONS);
if (hasParameterAnnotations) {
return new AbstractForwardSequentialList<BuilderAnnotationSet>() {
@Nonnull @Override public Iterator<BuilderAnnotationSet> iterator() {
return FluentIterable.from(parameters)
.transform(PARAMETER_ANNOTATIONS).iterator();
}
@Override public int size() {
return parameters.size();
}
};
}
return null;
}
示例3: getParameters
import org.jf.util.AbstractForwardSequentialList; //导入依赖的package包/类
@Nonnull
@Override
public List<? extends MethodParameter> getParameters() {
int parametersOffset = getParametersOffset();
if (parametersOffset > 0) {
final List<String> parameterTypes = getParameterTypes();
return new AbstractForwardSequentialList<MethodParameter>() {
@Nonnull @Override public Iterator<MethodParameter> iterator() {
return new ParameterIterator(parameterTypes,
getParameterAnnotations(),
getParameterNames());
}
@Override public int size() {
return parameterTypes.size();
}
};
}
return ImmutableList.of();
}
示例4: getParameterAnnotations
import org.jf.util.AbstractForwardSequentialList; //导入依赖的package包/类
@Override public List<? extends Set<? extends Annotation>> getParameterAnnotations(
final PoolMethod method) {
final List<? extends MethodParameter> parameters = method.getParameters();
boolean hasParameterAnnotations = Iterables.any(parameters, HAS_PARAMETER_ANNOTATIONS);
if (hasParameterAnnotations) {
return new AbstractForwardSequentialList<Set<? extends Annotation>>() {
@Override public Iterator<Set<? extends Annotation>> iterator() {
return FluentIterable.from(parameters)
.transform(PARAMETER_ANNOTATIONS).iterator();
}
@Override public int size() {
return parameters.size();
}
};
}
return null;
}
示例5: getParameterAnnotations
import org.jf.util.AbstractForwardSequentialList; //导入依赖的package包/类
@Override public List<? extends BuilderAnnotationSet> getParameterAnnotations(
final BuilderMethod method) {
final List<? extends BuilderMethodParameter> parameters = method.getParameters();
boolean hasParameterAnnotations = Iterables.any(parameters, HAS_PARAMETER_ANNOTATIONS);
if (hasParameterAnnotations) {
return new AbstractForwardSequentialList<BuilderAnnotationSet>() {
@Override public Iterator<BuilderAnnotationSet> iterator() {
return FluentIterable.from(parameters)
.transform(PARAMETER_ANNOTATIONS).iterator();
}
@Override public int size() {
return parameters.size();
}
};
}
return null;
}
示例6: getParameters
import org.jf.util.AbstractForwardSequentialList; //导入依赖的package包/类
@Override
public List<? extends MethodParameter> getParameters() {
int parametersOffset = getParametersOffset();
if (parametersOffset > 0) {
final List<String> parameterTypes = getParameterTypes();
return new AbstractForwardSequentialList<MethodParameter>() {
@Override public Iterator<MethodParameter> iterator() {
return new ParameterIterator(parameterTypes,
getParameterAnnotations(),
getParameterNames());
}
@Override public int size() {
return parameterTypes.size();
}
};
}
return ImmutableList.of();
}
示例7: getParameterAnnotations
import org.jf.util.AbstractForwardSequentialList; //导入依赖的package包/类
@Nullable
@Override
public List<? extends Set<? extends Annotation>> getParameterAnnotations(
@Nonnull final PoolMethod method) {
final List<? extends MethodParameter> parameters = method.getParameters();
boolean hasParameterAnnotations = Iterables.any(parameters, HAS_PARAMETER_ANNOTATIONS);
if (hasParameterAnnotations) {
return new AbstractForwardSequentialList<Set<? extends Annotation>>() {
@Nonnull
@Override
public Iterator<Set<? extends Annotation>> iterator() {
return FluentIterable.from(parameters)
.transform(PARAMETER_ANNOTATIONS).iterator();
}
@Override
public int size() {
return parameters.size();
}
};
}
return null;
}
示例8: getParameterAnnotations
import org.jf.util.AbstractForwardSequentialList; //导入依赖的package包/类
@Nullable
@Override
public List<? extends BuilderAnnotationSet> getParameterAnnotations(
@Nonnull final BuilderMethod method) {
final List<? extends BuilderMethodParameter> parameters = method.getParameters();
boolean hasParameterAnnotations = Iterables.any(parameters, HAS_PARAMETER_ANNOTATIONS);
if (hasParameterAnnotations) {
return new AbstractForwardSequentialList<BuilderAnnotationSet>() {
@Nonnull
@Override
public Iterator<BuilderAnnotationSet> iterator() {
return FluentIterable.from(parameters)
.transform(PARAMETER_ANNOTATIONS).iterator();
}
@Override
public int size() {
return parameters.size();
}
};
}
return null;
}
示例9: getParameters
import org.jf.util.AbstractForwardSequentialList; //导入依赖的package包/类
@Nonnull
@Override
public List<? extends MethodParameter> getParameters() {
int parametersOffset = getParametersOffset();
if (parametersOffset > 0) {
final List<String> parameterTypes = getParameterTypes();
return new AbstractForwardSequentialList<MethodParameter>() {
@Nonnull
@Override
public Iterator<MethodParameter> iterator() {
return new ParameterIterator(parameterTypes,
getParameterAnnotations(),
getParameterNames());
}
@Override
public int size() {
return parameterTypes.size();
}
};
}
return ImmutableList.of();
}
示例10: getDexFiles
import org.jf.util.AbstractForwardSequentialList; //导入依赖的package包/类
public List<OatDexFile> getDexFiles() {
return new AbstractForwardSequentialList<OatDexFile>() {
@Override public int size() {
return oatHeader.getDexFileCount();
}
@Override public Iterator<OatDexFile> iterator() {
return Iterators.transform(new DexEntryIterator(), new Function<DexEntry, OatDexFile>() {
@Override public OatDexFile apply(DexEntry dexEntry) {
return dexEntry.getDexFile();
}
});
}
};
}
示例11: getDexEntryNames
import org.jf.util.AbstractForwardSequentialList; //导入依赖的package包/类
@Override public List<String> getDexEntryNames() throws IOException {
return new AbstractForwardSequentialList<String>() {
@Override public int size() {
return oatHeader.getDexFileCount();
}
@Override public Iterator<String> iterator() {
return Iterators.transform(new DexEntryIterator(), new Function<DexEntry, String>() {
@Override public String apply(DexEntry dexEntry) {
return dexEntry.entryName;
}
});
}
};
}
示例12: getDexFiles
import org.jf.util.AbstractForwardSequentialList; //导入依赖的package包/类
@Nonnull
public List<OatDexFile> getDexFiles() {
return new AbstractForwardSequentialList<OatDexFile>() {
@Override public int size() {
return oatHeader.getDexFileCount();
}
@Nonnull @Override public Iterator<OatDexFile> iterator() {
return new Iterator<OatDexFile>() {
int index = 0;
int offset = oatHeader.getDexListStart();
@Override public boolean hasNext() {
return index < size();
}
@Override public OatDexFile next() {
int filenameLength = readSmallUint(offset);
offset += 4;
// TODO: what is the correct character encoding?
String filename = new String(buf, offset, filenameLength, Charset.forName("US-ASCII"));
offset += filenameLength;
offset += 4; // checksum
int dexOffset = readSmallUint(offset) + oatHeader.offset;
offset += 4;
int classCount = readSmallUint(dexOffset + HeaderItem.CLASS_COUNT_OFFSET);
offset += 4 * classCount;
index++;
return new OatDexFile(dexOffset, filename);
}
@Override public void remove() {
throw new UnsupportedOperationException();
}
};
}
};
}