Package gw.lang.reflect.gs
Class StringSourceFileHandle
- java.lang.Object
-
- gw.lang.reflect.gs.StringSourceFileHandle
-
- All Implemented Interfaces:
ISourceFileHandle
- Direct Known Subclasses:
LazyStringSourceFileHandle
public class StringSourceFileHandle extends Object implements ISourceFileHandle
-
-
Constructor Summary
Constructors Constructor Description StringSourceFileHandle(String typeName, CharSequence source, boolean isTestResource, ClassType classType)
StringSourceFileHandle(String typeName, CharSequence source, IFile strPath, boolean isTestResource, ClassType classType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanAfterCompile()
Map<String,ITypeVariableDefinition>
getCapturedTypeVars()
ClassType
getClassType()
int
getEnd()
ISymbolTable
getExternalSymbols()
IFile
getFile()
String
getFileName()
String
getFilePath()
String
getNamespace()
int
getOffset()
String
getParentType()
protected String
getRawSource()
String
getRelativeName()
ISource
getSource()
String
getTypeName()
String
getTypeNamespace()
ITypeUsesMap
getTypeUsesMap()
boolean
isIncludeModulePath()
boolean
isStandardPath()
boolean
isTestClass()
boolean
isValid()
void
setCapturedTypeVars(Map<String,ITypeVariableDefinition> capturedTypeVars)
void
setEnd(int iEnd)
void
setExternalSymbols(ISymbolTable extSyms)
void
setFilePath(String filePath)
void
setOffset(int iOffset)
void
setParentType(String strEnclosingType)
protected void
setRawSource(CharSequence source)
void
setTypeUsesMap(ITypeUsesMap typeUsesMap)
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface gw.lang.reflect.gs.ISourceFileHandle
getSource
-
-
-
-
Constructor Detail
-
StringSourceFileHandle
public StringSourceFileHandle(String typeName, CharSequence source, boolean isTestResource, ClassType classType)
-
StringSourceFileHandle
public StringSourceFileHandle(String typeName, CharSequence source, IFile strPath, boolean isTestResource, ClassType classType)
-
-
Method Detail
-
getRawSource
protected String getRawSource()
-
setRawSource
protected void setRawSource(CharSequence source)
-
getSource
public ISource getSource()
- Specified by:
getSource
in interfaceISourceFileHandle
-
getParentType
public String getParentType()
- Specified by:
getParentType
in interfaceISourceFileHandle
-
setParentType
public void setParentType(String strEnclosingType)
-
getNamespace
public String getNamespace()
- Specified by:
getNamespace
in interfaceISourceFileHandle
-
getFilePath
public String getFilePath()
- Specified by:
getFilePath
in interfaceISourceFileHandle
-
isTestClass
public boolean isTestClass()
- Specified by:
isTestClass
in interfaceISourceFileHandle
-
isValid
public boolean isValid()
- Specified by:
isValid
in interfaceISourceFileHandle
-
isStandardPath
public boolean isStandardPath()
- Specified by:
isStandardPath
in interfaceISourceFileHandle
-
isIncludeModulePath
public boolean isIncludeModulePath()
- Specified by:
isIncludeModulePath
in interfaceISourceFileHandle
-
cleanAfterCompile
public void cleanAfterCompile()
- Specified by:
cleanAfterCompile
in interfaceISourceFileHandle
-
getClassType
public ClassType getClassType()
- Specified by:
getClassType
in interfaceISourceFileHandle
-
getTypeName
public String getTypeName()
-
getRelativeName
public String getRelativeName()
- Specified by:
getRelativeName
in interfaceISourceFileHandle
-
getTypeNamespace
public String getTypeNamespace()
- Specified by:
getTypeNamespace
in interfaceISourceFileHandle
-
setOffset
public void setOffset(int iOffset)
- Specified by:
setOffset
in interfaceISourceFileHandle
-
getOffset
public int getOffset()
- Specified by:
getOffset
in interfaceISourceFileHandle
-
setEnd
public void setEnd(int iEnd)
- Specified by:
setEnd
in interfaceISourceFileHandle
-
getEnd
public int getEnd()
- Specified by:
getEnd
in interfaceISourceFileHandle
-
setFilePath
public void setFilePath(String filePath)
-
getFileName
public String getFileName()
- Specified by:
getFileName
in interfaceISourceFileHandle
- Returns:
- a relative representation of the file appropriate for debugging/stack traces
-
getFile
public IFile getFile()
- Specified by:
getFile
in interfaceISourceFileHandle
-
setTypeUsesMap
public void setTypeUsesMap(ITypeUsesMap typeUsesMap)
-
getTypeUsesMap
public ITypeUsesMap getTypeUsesMap()
-
setCapturedTypeVars
public void setCapturedTypeVars(Map<String,ITypeVariableDefinition> capturedTypeVars)
-
getCapturedTypeVars
public Map<String,ITypeVariableDefinition> getCapturedTypeVars()
-
setExternalSymbols
public void setExternalSymbols(ISymbolTable extSyms)
-
getExternalSymbols
public ISymbolTable getExternalSymbols()
-
-