本文整理汇总了Java中org.raml.v2.api.model.v10.api.Library类的典型用法代码示例。如果您正苦于以下问题:Java Library类的具体用法?Java Library怎么用?Java Library使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Library类属于org.raml.v2.api.model.v10.api包,在下文中一共展示了Library类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: goThroughLibraries
import org.raml.v2.api.model.v10.api.Library; //导入依赖的package包/类
static List<TypeDeclaration> goThroughLibraries(List<TypeDeclaration> foundTypes, Set<String> visitedLibraries, List<Library> libraries) {
for (Library library : libraries) {
if (visitedLibraries.contains(library.name())) {
continue;
} else {
visitedLibraries.add(library.name());
}
goThroughLibraries(foundTypes, visitedLibraries, library.uses());
foundTypes.addAll(library.types());
}
return foundTypes;
}
示例2: traverse
import org.raml.v2.api.model.v10.api.Library; //导入依赖的package包/类
/**
* @param lib
* @param visitor
* @return
*/
private void traverse(Library library, ApiVisitor visitor) {
visitor.visitLibraryStart(library);
library.types().forEach(type -> traverse(type, visitor));
visitor.visitLibraryEnd(library);
}
示例3: getLibs
import org.raml.v2.api.model.v10.api.Library; //导入依赖的package包/类
public List<Library> getLibs(){
return this.api.uses();
}
示例4: visitLibraryStart
import org.raml.v2.api.model.v10.api.Library; //导入依赖的package包/类
/**
* Called for each library before visiting its declarations.
*
* @param library
* RAML library
*/
default void visitLibraryStart(Library library) {
// empty
}
示例5: visitLibraryEnd
import org.raml.v2.api.model.v10.api.Library; //导入依赖的package包/类
/**
* Called for each library after visiting its declarations.
*
* @param library
* RAML library
*/
default void visitLibraryEnd(Library library) {
// empty
}