Package org.drools.codegen.common
Class GeneratedFile
- java.lang.Object
-
- org.drools.codegen.common.GeneratedFile
-
public class GeneratedFile extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringMETA_INF_RESOURCESstatic PathMETA_INF_RESOURCES_PATH
-
Constructor Summary
Constructors Constructor Description GeneratedFile(GeneratedFileType type, String relativePath, byte[] contents)GeneratedFile(GeneratedFileType type, String relativePath, String contents)GeneratedFile(GeneratedFileType type, Path path, byte[] contents)GeneratedFile(GeneratedFileType type, Path path, String contents)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeneratedFileType.Categorycategory()byte[]contents()booleanequals(Object o)inthashCode()Pathpath()StringrelativePath()StringtoString()StringtoStringWithContent()GeneratedFileTypetype()
-
-
-
Field Detail
-
META_INF_RESOURCES
public static final String META_INF_RESOURCES
- See Also:
- Constant Field Values
-
META_INF_RESOURCES_PATH
public static final Path META_INF_RESOURCES_PATH
-
-
Constructor Detail
-
GeneratedFile
public GeneratedFile(GeneratedFileType type, Path path, String contents)
-
GeneratedFile
public GeneratedFile(GeneratedFileType type, Path path, byte[] contents)
-
GeneratedFile
public GeneratedFile(GeneratedFileType type, String relativePath, String contents)
-
GeneratedFile
public GeneratedFile(GeneratedFileType type, String relativePath, byte[] contents)
-
-
Method Detail
-
relativePath
public String relativePath()
-
path
public Path path()
-
contents
public byte[] contents()
-
type
public GeneratedFileType type()
-
category
public GeneratedFileType.Category category()
-
toStringWithContent
public String toStringWithContent()
-
-