Package io.quarkus.devtools.codestarts
Class CodestartResource.PathCodestartResource
- java.lang.Object
-
- io.quarkus.devtools.codestarts.CodestartResource.PathCodestartResource
-
- All Implemented Interfaces:
CodestartResource
- Enclosing interface:
- CodestartResource
public static class CodestartResource.PathCodestartResource extends Object implements CodestartResource
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.quarkus.devtools.codestarts.CodestartResource
CodestartResource.PathCodestartResource, CodestartResource.Source
-
-
Constructor Summary
Constructors Constructor Description PathCodestartResource(Path codestartDir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PathcopyTo(String codestartRelativePath, Path target, CopyOption... copyOptions)booleandirExists(String languageDir)List<String>getLanguageDirs()Optional<CodestartResource.Source>getSource(String languageDir, String name)List<CodestartResource.Source>listSources(String languageDir)StringpathName()Stringread(String codestartRelativePath)
-
-
-
Constructor Detail
-
PathCodestartResource
public PathCodestartResource(Path codestartDir)
-
-
Method Detail
-
pathName
public String pathName()
- Specified by:
pathNamein interfaceCodestartResource
-
read
public String read(String codestartRelativePath)
- Specified by:
readin interfaceCodestartResource
-
listSources
public List<CodestartResource.Source> listSources(String languageDir)
- Specified by:
listSourcesin interfaceCodestartResource
-
dirExists
public boolean dirExists(String languageDir)
- Specified by:
dirExistsin interfaceCodestartResource
-
getLanguageDirs
public List<String> getLanguageDirs()
- Specified by:
getLanguageDirsin interfaceCodestartResource
-
getSource
public Optional<CodestartResource.Source> getSource(String languageDir, String name)
- Specified by:
getSourcein interfaceCodestartResource
-
copyTo
public Path copyTo(String codestartRelativePath, Path target, CopyOption... copyOptions)
- Specified by:
copyToin interfaceCodestartResource
-
-