public static class StandardGeneratorContext.GeneratedUnitImpl extends Object
StandardGeneratorContext.diskCache
.Modifier and Type | Field and Description |
---|---|
protected long |
sourceToken
A token to retrieve this object's bytes from the disk cache.
|
Constructor and Description |
---|
GeneratedUnitImpl(StringWriter sw,
String typeName) |
Modifier and Type | Method and Description |
---|---|
void |
abort() |
void |
commit(TreeLogger logger)
Finalizes the source and adds this generated unit to the host.
|
long |
creationTime() |
String |
getSource() |
String |
getSourceMapPath()
Returns the path to this resource as it should appear in a source map.
|
long |
getSourceToken()
Returns the source code as a token for
DiskCache#INSTANCE , or -1 if
the source is not cached. |
String |
getStrongHash() |
String |
getTypeName()
Returns the type source name.
|
String |
optionalFileLocation()
If the generated file was saved to a directory using the -gen option, returns the file's
location on disk.
|
protected long sourceToken
public GeneratedUnitImpl(StringWriter sw, String typeName)
public void abort()
public void commit(TreeLogger logger)
public long creationTime()
public String getSource()
public String getSourceMapPath()
GeneratedUnit
public long getSourceToken()
GeneratedUnit
DiskCache#INSTANCE
, or -1 if
the source is not cached.public String getStrongHash()
public String getTypeName()
GeneratedUnit
public String optionalFileLocation()
GeneratedUnit
Copyright © 2018. All rights reserved.