Package manifold.internal.javac
Class SourceSupplier
- java.lang.Object
-
- manifold.internal.javac.SourceSupplier
-
public class SourceSupplier extends Object
-
-
Constructor Summary
Constructors Constructor Description SourceSupplier(String fqn, Set<ITypeManifold> tms, Supplier<String> supplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]compile(String fqn)Set<IFile>getResourceFiles()StringgetSource()Produce the source.booleanisPrimary()Is this source supplier the primary or core producer of the source?booleanisSelfCompile(String fqn)voidparse(String fqn)
-
-
-
Constructor Detail
-
SourceSupplier
public SourceSupplier(String fqn, Set<ITypeManifold> tms, Supplier<String> supplier)
- Parameters:
fqn- Qualified name of typetms- The set of type manifolds responsible for producing the source. An empty or null set implies no type manifolds are involved.supplier- Supplier of the source code.
-
-
Method Detail
-
getSource
public String getSource()
Produce the source.
-
isPrimary
public boolean isPrimary()
Is this source supplier the primary or core producer of the source? As opposed to a supplementary or partial producer.
-
isSelfCompile
public boolean isSelfCompile(String fqn)
-
parse
public void parse(String fqn)
-
compile
public byte[] compile(String fqn)
-
-