
public class CachedCompilationUnit extends CompilationUnit
COMPARATOR, diskCache| Constructor and Description |
|---|
CachedCompilationUnit(CachedCompilationUnit unit,
long lastModified,
String resourceLocation)
Shallow copy of a CachedCompiliationUnit, replacing some parameters in the new copy.
|
| Modifier and Type | Method and Description |
|---|---|
CachedCompilationUnit |
asCachedCompilationUnit()
Returns the unit as an instance of
CachedCompilationUnit, making a
copy if necessary. |
Collection<CompiledClass> |
getCompiledClasses()
Returns all contained classes.
|
List<JsniMethod> |
getJsniMethods() |
long |
getLastModified()
Returns the last modified time of the compilation unit.
|
MethodArgNamesLookup |
getMethodArgs() |
String |
getResourceLocation()
This is the resource location from the classpath or some deterministic
virtual location (in the case of generators or mock data) where the source
for this unit originated.
|
String |
getResourcePath()
Returns the full abstract path of the resource.
|
String |
getTypeName()
Returns the fully-qualified name of the top level public type.
|
byte[] |
getTypesSerialized()
Returns the GWT AST types in this unit in serialized form.
|
boolean |
isError()
Returns
true if this unit had errors. |
boolean |
isGenerated()
Deprecated.
|
boolean |
isSuperSource()
Deprecated.
|
constructAnonymousClassMappings, createdClassMapping, equals, getAnonymousClassMap, getTypes, hasAnonymousClasses, hashCode, isClassnameGenerated, toString, writeReplacepublic CachedCompilationUnit(CachedCompilationUnit unit, long lastModified, String resourceLocation)
unit - Unit to clone.lastModified - last modified date to replace in the cloneresourceLocation - location to replace in the clone.public CachedCompilationUnit asCachedCompilationUnit()
CompilationUnitCachedCompilationUnit, making a
copy if necessary.asCachedCompilationUnit in class CompilationUnitpublic Collection<CompiledClass> getCompiledClasses()
CompilationUnitgetCompiledClasses in class CompilationUnitpublic List<JsniMethod> getJsniMethods()
getJsniMethods in class CompilationUnitpublic long getLastModified()
CompilationUnitgetLastModified in class CompilationUnitpublic MethodArgNamesLookup getMethodArgs()
getMethodArgs in class CompilationUnitpublic String getResourceLocation()
CompilationUnitgetResourceLocation in class CompilationUnitResource.getLocation()public String getResourcePath()
CompilationUnitgetResourcePath in class CompilationUnitResource.getPath(),
Resource.getPathPrefix()public String getTypeName()
CompilationUnitgetTypeName in class CompilationUnitpublic byte[] getTypesSerialized()
CompilationUnitgetTypesSerialized in class CompilationUnitpublic boolean isError()
CompilationUnittrue if this unit had errors.isError in class CompilationUnit@Deprecated public boolean isGenerated()
CompilationUnittrue if this unit was generated by a
Generator.isGenerated in class CompilationUnit@Deprecated public boolean isSuperSource()
isSuperSource in class CompilationUnitCopyright © 2018. All rights reserved.