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 java.lang.Object implements ISourceFileHandle
-
-
Field Summary
Fields Modifier and Type Field Description private boolean_bTestResourceprivate java.util.Map<java.lang.String,ITypeVariableDefinition>_capturedTypeVarsprivate ClassType_classTypeprivate ISymbolTable_extSymsprivate IFile_fileprivate java.lang.String_fileRefprivate int_iEndprivate int_iOffsetprivate java.lang.String_sourceprivate java.lang.String_strEnclosingTypeprivate java.lang.String_typeNameprivate ITypeUsesMap_typeUsesMap
-
Constructor Summary
Constructors Constructor Description StringSourceFileHandle(java.lang.String typeName, java.lang.CharSequence source, boolean isTestResource, ClassType classType)StringSourceFileHandle(java.lang.String typeName, java.lang.CharSequence source, IFile strPath, boolean isTestResource, ClassType classType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidassignFileRef()voidcleanAfterCompile()java.util.Map<java.lang.String,ITypeVariableDefinition>getCapturedTypeVars()ClassTypegetClassType()intgetEnd()ISymbolTablegetExternalSymbols()IFilegetFile()java.lang.StringgetFileName()java.lang.StringgetFilePath()java.lang.StringgetNamespace()intgetOffset()java.lang.StringgetParentType()protected java.lang.StringgetRawSource()java.lang.StringgetRelativeName()ISourcegetSource()java.lang.StringgetTypeName()java.lang.StringgetTypeNamespace()ITypeUsesMapgetTypeUsesMap()booleanisIncludeModulePath()booleanisStandardPath()booleanisTestClass()booleanisValid()voidsetCapturedTypeVars(java.util.Map<java.lang.String,ITypeVariableDefinition> capturedTypeVars)voidsetEnd(int iEnd)voidsetExternalSymbols(ISymbolTable extSyms)voidsetFilePath(java.lang.String filePath)voidsetOffset(int iOffset)voidsetParentType(java.lang.String strEnclosingType)protected voidsetRawSource(java.lang.CharSequence source)voidsetTypeUsesMap(ITypeUsesMap typeUsesMap)java.lang.StringtoString()-
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
-
-
-
-
Field Detail
-
_source
private java.lang.String _source
-
_bTestResource
private boolean _bTestResource
-
_classType
private ClassType _classType
-
_typeName
private java.lang.String _typeName
-
_strEnclosingType
private java.lang.String _strEnclosingType
-
_typeUsesMap
private ITypeUsesMap _typeUsesMap
-
_capturedTypeVars
private java.util.Map<java.lang.String,ITypeVariableDefinition> _capturedTypeVars
-
_iOffset
private int _iOffset
-
_iEnd
private int _iEnd
-
_file
private IFile _file
-
_fileRef
private java.lang.String _fileRef
-
_extSyms
private ISymbolTable _extSyms
-
-
Constructor Detail
-
StringSourceFileHandle
public StringSourceFileHandle(java.lang.String typeName, java.lang.CharSequence source, boolean isTestResource, ClassType classType)
-
-
Method Detail
-
assignFileRef
private void assignFileRef()
-
getRawSource
protected java.lang.String getRawSource()
-
setRawSource
protected void setRawSource(java.lang.CharSequence source)
-
getSource
public ISource getSource()
- Specified by:
getSourcein interfaceISourceFileHandle
-
getParentType
public java.lang.String getParentType()
- Specified by:
getParentTypein interfaceISourceFileHandle
-
setParentType
public void setParentType(java.lang.String strEnclosingType)
-
getNamespace
public java.lang.String getNamespace()
- Specified by:
getNamespacein interfaceISourceFileHandle
-
getFilePath
public java.lang.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 java.lang.String getTypeName()
-
getRelativeName
public java.lang.String getRelativeName()
- Specified by:
getRelativeNamein interfaceISourceFileHandle
-
getTypeNamespace
public java.lang.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(java.lang.String filePath)
-
getFileName
public java.lang.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(java.util.Map<java.lang.String,ITypeVariableDefinition> capturedTypeVars)
-
getCapturedTypeVars
public java.util.Map<java.lang.String,ITypeVariableDefinition> getCapturedTypeVars()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
setExternalSymbols
public void setExternalSymbols(ISymbolTable extSyms)
-
getExternalSymbols
public ISymbolTable getExternalSymbols()
-
-