本文整理汇总了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;
}
开发者ID:CvvT,项目名称:andbg,代码行数:20,代码来源:ClassPool.java
示例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;
}
开发者ID:CvvT,项目名称:andbg,代码行数:20,代码来源:BuilderClassPool.java
示例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();
}
开发者ID:CvvT,项目名称:andbg,代码行数:22,代码来源:DexBackedMethod.java
示例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;
}
开发者ID:AndreJCL,项目名称:JCL,代码行数:20,代码来源:ClassPool.java
示例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;
}
开发者ID:AndreJCL,项目名称:JCL,代码行数:20,代码来源:BuilderClassPool.java
示例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();
}
开发者ID:AndreJCL,项目名称:JCL,代码行数:21,代码来源:DexBackedMethod.java
示例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;
}
开发者ID:niranjan94,项目名称:show-java,代码行数:25,代码来源:ClassPool.java
示例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;
}
开发者ID:niranjan94,项目名称:show-java,代码行数:25,代码来源:BuilderClassPool.java
示例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();
}
开发者ID:niranjan94,项目名称:show-java,代码行数:25,代码来源:DexBackedMethod.java
示例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();
}
});
}
};
}
开发者ID:AndreJCL,项目名称:JCL,代码行数:16,代码来源:OatFile.java
示例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;
}
});
}
};
}
开发者ID:AndreJCL,项目名称:JCL,代码行数:16,代码来源:OatFile.java
示例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();
}
};
}
};
}
开发者ID:johnlee175,项目名称:dex,代码行数:45,代码来源:OatFile.java
注:本文中的org.jf.util.AbstractForwardSequentialList类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论