|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.core.ext.Linker
public abstract class Linker
Defines a linker for the GWT compiler. Each Linker must be annotated with a
LinkerOrder
annotation to determine
the relative ordering of the Linkers. Exact order of Linker execution will be
determined by the order of add-linker
tags in the module
configuration.
A new instance of a linker is created each time a module is compiled or
during hosted mode when a module first loads (or is refreshed). During a
compile, link(TreeLogger, LinkerContext, ArtifactSet)
will be called
exactly once, and the artifact set will contain any and all generated
artifacts. . In hosted mode,
link(TreeLogger, LinkerContext, ArtifactSet)
is called initially,
but with no generated artifacts. If any artifacts are subsequently generated
during the course of running hosted mode,
relink(TreeLogger, LinkerContext, ArtifactSet)
will be called with
the new artifacts.
Constructor Summary | |
---|---|
Linker()
|
Method Summary | |
---|---|
abstract java.lang.String |
getDescription()
Returns a human-readable String describing the Linker. |
abstract ArtifactSet |
link(TreeLogger logger,
LinkerContext context,
ArtifactSet artifacts)
Invoke the Linker. |
ArtifactSet |
relink(TreeLogger logger,
LinkerContext context,
ArtifactSet newArtifacts)
Re-invoke the Linker with newly generated artifacts. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Linker()
Method Detail |
---|
public abstract java.lang.String getDescription()
public abstract ArtifactSet link(TreeLogger logger, LinkerContext context, ArtifactSet artifacts) throws UnableToCompleteException
logger
- the TreeLogger to record tocontext
- provides access to the Linker's environmentartifacts
- an unmodifiable view of the artifacts to link
UnableToCompleteException
- if compilation violates assumptions made
by the Linker or for errors encountered by the Linkerpublic ArtifactSet relink(TreeLogger logger, LinkerContext context, ArtifactSet newArtifacts) throws UnableToCompleteException
link(TreeLogger, LinkerContext, ArtifactSet)
should retain a copy
of the original artifact set in an instance variable.
logger
- the TreeLogger to record tocontext
- provides access to the Linker's environmentnewArtifacts
- an unmodifiable view of the newly generated artifacts
UnableToCompleteException
- if compilation violates assumptions made
by the Linker or for errors encountered by the Linker
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |