public class Source extends Object implements Comparable<Source>
This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
Constructor and Description |
---|
Source(Module m,
String n,
File f,
File r) |
Source(Package p,
String n,
long lm) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Source o) |
boolean |
equals(Object o) |
File |
file() |
int |
hashCode() |
boolean |
isGenerated() |
boolean |
isLinkedOnly() |
long |
lastModified() |
static Source |
load(Package lastPackage,
String l,
boolean isGenerated) |
void |
markAsGenerated() |
void |
markAsLinkedOnly() |
String |
name() |
Package |
pkg() |
File |
root() |
static void |
saveSources(Map<String,Source> sources,
StringBuilder b) |
static void |
scanRoot(File root,
Set<String> suffixes,
List<String> excludes,
List<String> includes,
List<String> excludeFiles,
List<String> includeFiles,
Map<String,Source> foundFiles,
Map<String,Module> foundModules,
Module currentModule,
boolean permitSourcesWithoutPackage,
boolean inGensrc,
boolean inLinksrc)
Recurse into the directory root and find all files matchine the excl/incl/exclfiles/inclfiles rules.
|
void |
setPackage(Package p) |
String |
suffix() |
public int compareTo(Source o)
compareTo
in interface Comparable<Source>
public String name()
public String suffix()
public Package pkg()
public File file()
public File root()
public long lastModified()
public void setPackage(Package p)
public void markAsGenerated()
public boolean isGenerated()
public void markAsLinkedOnly()
public boolean isLinkedOnly()
public static void saveSources(Map<String,Source> sources, StringBuilder b)
public static void scanRoot(File root, Set<String> suffixes, List<String> excludes, List<String> includes, List<String> excludeFiles, List<String> includeFiles, Map<String,Source> foundFiles, Map<String,Module> foundModules, Module currentModule, boolean permitSourcesWithoutPackage, boolean inGensrc, boolean inLinksrc) throws ProblemException
ProblemException
Copyright © 2017 earcam. All rights reserved.