public abstract class CompilationUnitBuilder extends Object
CompilationUnit
.Modifier | Constructor and Description |
---|---|
protected |
CompilationUnitBuilder() |
Modifier and Type | Method and Description |
---|---|
CompilationUnit |
build() |
static CompilationUnitBuilder |
create(GeneratedUnit generatedUnit) |
static CompilationUnitBuilder |
create(Resource resource) |
protected abstract String |
doGetSource() |
abstract com.google.gwt.dev.javac.ContentId |
getContentId() |
abstract String |
getLocation()
Returns the location that should appear in JDT error messages.
|
String |
getSource() |
abstract String |
getSourceMapPath()
Returns the location for this resource as it should appear in a sourcemap.
|
static String |
getSourceMapPathFor(Resource resource)
Given a resource, returns the filename that will appear in the source map.
|
abstract String |
getTypeName() |
static String |
makeContentId(String typeName,
String strongHash) |
protected abstract CompilationUnit |
makeUnit(List<CompiledClass> compiledClasses,
List<JDeclaredType> types,
com.google.gwt.dev.javac.Dependencies dependencies,
Collection<? extends JsniMethod> jsniMethods,
MethodArgNamesLookup methodArgs,
org.eclipse.jdt.core.compiler.CategorizedProblem[] errors) |
CompilationUnitBuilder |
setClasses(List<CompiledClass> compiledClasses) |
CompilationUnitBuilder |
setCompiledClasses(List<CompiledClass> compiledClasses) |
CompilationUnitBuilder |
setDependencies(com.google.gwt.dev.javac.Dependencies dependencies) |
CompilationUnitBuilder |
setJsniMethods(Collection<? extends JsniMethod> jsniMethods) |
CompilationUnitBuilder |
setMethodArgs(MethodArgNamesLookup methodArgs) |
CompilationUnitBuilder |
setProblems(org.eclipse.jdt.core.compiler.CategorizedProblem[] problems) |
CompilationUnitBuilder |
setSource(String source) |
CompilationUnitBuilder |
setTypes(List<JDeclaredType> types) |
String |
toString() |
public static CompilationUnitBuilder create(GeneratedUnit generatedUnit)
public static CompilationUnitBuilder create(Resource resource)
public static String getSourceMapPathFor(Resource resource)
public CompilationUnit build()
public abstract com.google.gwt.dev.javac.ContentId getContentId()
public abstract String getLocation()
public String getSource()
public abstract String getSourceMapPath()
public abstract String getTypeName()
public CompilationUnitBuilder setClasses(List<CompiledClass> compiledClasses)
public CompilationUnitBuilder setCompiledClasses(List<CompiledClass> compiledClasses)
public CompilationUnitBuilder setDependencies(com.google.gwt.dev.javac.Dependencies dependencies)
public CompilationUnitBuilder setJsniMethods(Collection<? extends JsniMethod> jsniMethods)
public CompilationUnitBuilder setMethodArgs(MethodArgNamesLookup methodArgs)
public CompilationUnitBuilder setProblems(org.eclipse.jdt.core.compiler.CategorizedProblem[] problems)
public CompilationUnitBuilder setSource(String source)
public CompilationUnitBuilder setTypes(List<JDeclaredType> types)
protected abstract String doGetSource()
protected abstract CompilationUnit makeUnit(List<CompiledClass> compiledClasses, List<JDeclaredType> types, com.google.gwt.dev.javac.Dependencies dependencies, Collection<? extends JsniMethod> jsniMethods, MethodArgNamesLookup methodArgs, org.eclipse.jdt.core.compiler.CategorizedProblem[] errors)
Copyright © 2018. All rights reserved.