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 source 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, writeReplace
public 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()
CompilationUnit
CachedCompilationUnit
, making a
copy if necessary.asCachedCompilationUnit
in class CompilationUnit
public Collection<CompiledClass> getCompiledClasses()
CompilationUnit
getCompiledClasses
in class CompilationUnit
public List<JsniMethod> getJsniMethods()
getJsniMethods
in class CompilationUnit
public long getLastModified()
CompilationUnit
getLastModified
in class CompilationUnit
public MethodArgNamesLookup getMethodArgs()
getMethodArgs
in class CompilationUnit
public String getResourceLocation()
CompilationUnit
getResourceLocation
in class CompilationUnit
Resource.getLocation()
public String getResourcePath()
CompilationUnit
getResourcePath
in class CompilationUnit
Resource.getPath()
,
Resource.getPathPrefix()
public String getTypeName()
CompilationUnit
getTypeName
in class CompilationUnit
public byte[] getTypesSerialized()
CompilationUnit
getTypesSerialized
in class CompilationUnit
public boolean isError()
CompilationUnit
true
if this unit had errors.isError
in class CompilationUnit
@Deprecated public boolean isGenerated()
CompilationUnit
true
if this unit was generated by a
Generator
.isGenerated
in class CompilationUnit
@Deprecated public boolean isSuperSource()
isSuperSource
in class CompilationUnit
Copyright © 2018. All rights reserved.