com.sun.tools.javac.util.List.subList()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(104)

本文整理了Java中com.sun.tools.javac.util.List.subList()方法的一些代码示例,展示了List.subList()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。List.subList()方法的具体详情如下:
包路径:com.sun.tools.javac.util.List
类名称:List
方法名:subList

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;

相关文章