public class JarSourceFile extends SourceFile
SourceFile.Builder, SourceFile.Generator| Constructor and Description |
|---|
JarSourceFile(String fileName,
String code,
boolean isExtern) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCachedSource() |
String |
getCode() |
Reader |
getCodeReader() |
int |
getColumnOfOffset(int offset) |
String |
getLine(int lineNumber) |
int |
getLineOffset(int lineno) |
int |
getLineOfOffset(int offset) |
String |
getName() |
String |
getOriginalPath() |
Region |
getRegion(int lineNumber) |
boolean |
isExtern() |
void |
setOriginalPath(String originalPath) |
String |
toString() |
builder, fromCode, fromCode, fromFile, fromFile, fromFile, fromGenerator, fromInputStream, fromInputStream, fromPath, fromPath, fromReader, fromZipEntry, fromZipFile, getKind, restoreFrom, setKindpublic int getLineOffset(int lineno)
getLineOffset in interface com.google.javascript.rhino.StaticSourceFilegetLineOffset in class SourceFilepublic String getCode() throws IOException
getCode in class SourceFileIOExceptionpublic Reader getCodeReader() throws IOException
getCodeReader in class SourceFileIOExceptionpublic String getOriginalPath()
getOriginalPath in class SourceFilepublic void setOriginalPath(String originalPath)
setOriginalPath in class SourceFilepublic void clearCachedSource()
clearCachedSource in class SourceFilepublic String getName()
getName in interface com.google.javascript.rhino.StaticSourceFilegetName in class SourceFilepublic boolean isExtern()
public int getLineOfOffset(int offset)
getLineOfOffset in interface com.google.javascript.rhino.StaticSourceFilegetLineOfOffset in class SourceFilepublic int getColumnOfOffset(int offset)
getColumnOfOffset in interface com.google.javascript.rhino.StaticSourceFilegetColumnOfOffset in class SourceFilepublic String getLine(int lineNumber)
getLine in class SourceFilepublic Region getRegion(int lineNumber)
getRegion in class SourceFilepublic String toString()
toString in class SourceFileCopyright © 2023 The Apache Software Foundation. All rights reserved.