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 voidcleanAfterCompile()Map<String,ITypeVariableDefinition>getCapturedTypeVars()ClassTypegetClassType()intgetEnd()ISymbolTablegetExternalSymbols()IFilegetFile()StringgetFileName()StringgetFilePath()StringgetNamespace()intgetOffset()StringgetParentType()protected StringgetRawSource()StringgetRelativeName()ISourcegetSource()StringgetTypeName()StringgetTypeNamespace()ITypeUsesMapgetTypeUsesMap()booleanisIncludeModulePath()booleanisStandardPath()booleanisTestClass()booleanisValid()voidsetCapturedTypeVars(Map<String,ITypeVariableDefinition> capturedTypeVars)voidsetEnd(int iEnd)voidsetExternalSymbols(ISymbolTable extSyms)voidsetFilePath(String filePath)voidsetOffset(int iOffset)voidsetParentType(String strEnclosingType)protected voidsetRawSource(CharSequence source)voidsetTypeUsesMap(ITypeUsesMap typeUsesMap)StringtoString()
-
-
-
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:
getSourcein interfaceISourceFileHandle
-
getParentType
public String getParentType()
- Specified by:
getParentTypein interfaceISourceFileHandle
-
setParentType
public void setParentType(String strEnclosingType)
-
getNamespace
public String getNamespace()
- Specified by:
getNamespacein interfaceISourceFileHandle
-
getFilePath
public String getFilePath()
- Specified by:
getFilePathin interfaceISourceFileHandle
-
isTestClass
public boolean isTestClass()
- Specified by:
isTestClassin interfaceISourceFileHandle
-
isValid
public boolean isValid()
- Specified by:
isValidin interfaceISourceFileHandle
-
isStandardPath
public boolean isStandardPath()
- Specified by:
isStandardPathin interfaceISourceFileHandle
-
isIncludeModulePath
public boolean isIncludeModulePath()
- Specified by:
isIncludeModulePathin interfaceISourceFileHandle
-
cleanAfterCompile
public void cleanAfterCompile()
- Specified by:
cleanAfterCompilein interfaceISourceFileHandle
-
getClassType
public ClassType getClassType()
- Specified by:
getClassTypein interfaceISourceFileHandle
-
getTypeName
public String getTypeName()
-
getRelativeName
public String getRelativeName()
- Specified by:
getRelativeNamein interfaceISourceFileHandle
-
getTypeNamespace
public String getTypeNamespace()
- Specified by:
getTypeNamespacein interfaceISourceFileHandle
-
setOffset
public void setOffset(int iOffset)
- Specified by:
setOffsetin interfaceISourceFileHandle
-
getOffset
public int getOffset()
- Specified by:
getOffsetin interfaceISourceFileHandle
-
setEnd
public void setEnd(int iEnd)
- Specified by:
setEndin interfaceISourceFileHandle
-
getEnd
public int getEnd()
- Specified by:
getEndin interfaceISourceFileHandle
-
setFilePath
public void setFilePath(String filePath)
-
getFileName
public String getFileName()
- Specified by:
getFileNamein interfaceISourceFileHandle- Returns:
- a relative representation of the file appropriate for debugging/stack traces
-
getFile
public IFile getFile()
- Specified by:
getFilein 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()
-
-