类 Library
- java.lang.Object
-
- io.esastack.cabin.tools.Library
-
public class Library extends Object
-
-
构造器概要
构造器 构造器 说明 Library(File file, LibraryScope scope)Create a newLibrary.Library(File file, LibraryScope scope, boolean unpackRequired)Create a newLibrary.Library(String name, File file, LibraryScope scope, boolean unpackRequired)Create a newLibrary.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 FilegetFile()Return the library file.StringgetName()Return the name of file as it should be written.LibraryScopegetScope()Return the scope of the library.booleanisUnpackRequired()Return if the file cannot be used directly as a nested jar and needs to be unpacked.voidsetScope(LibraryScope scope)
-
-
-
构造器详细资料
-
Library
public Library(File file, LibraryScope scope)
Create a newLibrary.- 参数:
file- the source filescope- the scope of the library
-
Library
public Library(File file, LibraryScope scope, boolean unpackRequired)
Create a newLibrary.- 参数:
file- the source filescope- the scope of the libraryunpackRequired- if the library needs to be unpacked before it can be used
-
Library
public Library(String name, File file, LibraryScope scope, boolean unpackRequired)
Create a newLibrary.- 参数:
name- the name of the library as it should be written ornullto use the file namefile- the source filescope- the scope of the libraryunpackRequired- if the library needs to be unpacked before it can be used
-
-
方法详细资料
-
getName
public String getName()
Return the name of file as it should be written.- 返回:
- the name
-
getFile
public File getFile()
Return the library file.- 返回:
- the file
-
getScope
public LibraryScope getScope()
Return the scope of the library.- 返回:
- the scope
-
setScope
public void setScope(LibraryScope scope)
-
isUnpackRequired
public boolean isUnpackRequired()
Return if the file cannot be used directly as a nested jar and needs to be unpacked.- 返回:
- if unpack is required
-
-