Package com.google.gwt.core.ext.linker
Class PrecompilationMetricsArtifact
java.lang.Object
com.google.gwt.core.ext.linker.Artifact<PrecompilationMetricsArtifact>
com.google.gwt.core.ext.linker.PrecompilationMetricsArtifact
- All Implemented Interfaces:
Serializable,Comparable<Artifact<?>>
@Transferable
public class PrecompilationMetricsArtifact
extends Artifact<PrecompilationMetricsArtifact>
Captures some metrics from the precompilation step.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionPrecompilationMetricsArtifact(int permutationId) protectedPrecompilationMetricsArtifact(Class<? extends Linker> linker, int permutationBase) -
Method Summary
Modifier and TypeMethodDescriptionprotected intPerforms comparison with an artifact of a compatible base type.String[]protected final Class<PrecompilationMetricsArtifact>Returns the base type to use for comparisons between Artifacts.longString[]intint[]inthashCode()The class which is returned fromArtifact.getComparableArtifactType()must declare a final implementation which returns the same hash code for objects for whichArtifact.compareToComparableArtifact(Artifact)returns 0.setAstTypes(String[] astTypes) setElapsedMilliseconds(long elapsedMilliseconds) setFinalTypeOracleTypes(List<String> types) setPermutationIds(int[] ids)
-
Constructor Details
-
PrecompilationMetricsArtifact
public PrecompilationMetricsArtifact(int permutationId) -
PrecompilationMetricsArtifact
-
-
Method Details
-
getAstTypes
- Returns:
- the number of types referenced by the AST.
-
getElapsedMilliseconds
public long getElapsedMilliseconds()- Returns:
- wall clock time elapsed since start of precompilation
-
getFinalTypeOracleTypes
- Returns:
- types all types referenced by type oracle after compiling the sources on the source path with JDT.
-
getPermutationBase
public int getPermutationBase()- Returns:
- the first permutation Id associated with compiling this permutation.
-
getPermutationIds
public int[] getPermutationIds()- Returns:
- the permutation ids associated with this precompilation.
-
hashCode
public int hashCode()Description copied from class:ArtifactThe class which is returned fromArtifact.getComparableArtifactType()must declare a final implementation which returns the same hash code for objects for whichArtifact.compareToComparableArtifact(Artifact)returns 0.- Specified by:
hashCodein classArtifact<PrecompilationMetricsArtifact>
-
setAstTypes
- Parameters:
astTypes- an array of types referenced by the Java AST.
-
setElapsedMilliseconds
- Parameters:
elapsedMilliseconds- wall clock time elapsed since start of precompilation
-
setFinalTypeOracleTypes
- Parameters:
types- all types referenced by type oracle after compiling the sources on the source path with JDT.
-
setPermutationIds
- Parameters:
ids- the permutation ids associated with this precompilation.
-
compareToComparableArtifact
Description copied from class:ArtifactPerforms comparison with an artifact of a compatible base type. Objects which compare to 0 are assumed equal, and must return the sameArtifact.hashCode().- Specified by:
compareToComparableArtifactin classArtifact<PrecompilationMetricsArtifact>
-
getComparableArtifactType
Description copied from class:ArtifactReturns the base type to use for comparisons between Artifacts. All concrete implementations of this methods must be final.- Specified by:
getComparableArtifactTypein classArtifact<PrecompilationMetricsArtifact>
-