本文整理了Java中com.sun.tools.javac.util.List.subList()
方法的一些代码示例,展示了List.subList()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。List.subList()
方法的具体详情如下:
包路径:com.sun.tools.javac.util.List
类名称:List
方法名:subList
暂无
代码示例来源:origin: google/error-prone
public BlockTemplateMatch(JCBlock block, Unifier unifier, int start, int end) {
super(checkNotNull(block).getStatements().get(start), unifier);
this.statements = ImmutableList.copyOf(block.getStatements().subList(start, end));
}
代码示例来源:origin: cincheo/jsweet
print("p0 : number");
} else {
printArguments(typeApply.arguments.subList(0, typeApply.arguments.length() - 1));
代码示例来源:origin: com.google.errorprone/error_prone_core
public BlockTemplateMatch(JCBlock block, Unifier unifier, int start, int end) {
super(checkNotNull(block).getStatements().get(start), unifier);
this.statements = ImmutableList.copyOf(block.getStatements().subList(start, end));
}
代码示例来源:origin: manifold-systems/manifold
if( i == attrLocation.get( 0 ).arg )
List<TypeAnnotationPosition.TypePathEntry> attrLocationCopy = List.from( attrLocation.subList( 1, attrLocation.size() ) );
TypeAnnotationPosition posCopy = getTypeAnnotationPosition( attrLocationCopy );
annotateType( typeParam, Collections.singletonList( new Attribute.TypeCompound( attr.type, attr.values, posCopy ) ) );
if( !attrLocation.isEmpty() )
attrLocationCopy = List.from( attrLocation.subList( 1, attrLocation.size() ) );
代码示例来源:origin: manifold-systems/manifold
List<TypePathEntry> selfLocationCopy = List.from( selfLocation.subList( 1, selfLocation.size() ) );
List<TypePathEntry> selfLocationCopy = List.from( selfPos.location.subList( 1, selfPos.location.size() ) );
TypeAnnotationPosition posCopy = new TypeAnnotationPosition();
posCopy.location = selfLocationCopy;
内容来源于网络,如有侵权,请联系作者删除!