Package gw.lang.reflect.gs
Class StringSourceFileHandle
java.lang.Object
gw.lang.reflect.gs.StringSourceFileHandle
- All Implemented Interfaces:
ISourceFileHandle
- Direct Known Subclasses:
LazyStringSourceFileHandle
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate Map<String,ITypeVariableDefinition> private ClassTypeprivate ISymbolTableprivate IFileprivate Stringprivate intprivate intprivate Stringprivate Stringprivate Stringprivate ITypeUsesMap -
Constructor Summary
ConstructorsConstructorDescriptionStringSourceFileHandle(String typeName, CharSequence source, boolean isTestResource, ClassType classType) StringSourceFileHandle(String typeName, CharSequence source, IFile strPath, boolean isTestResource, ClassType classType) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidvoidintgetEnd()getFile()intprotected StringbooleanbooleanbooleanbooleanisValid()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) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface gw.lang.reflect.gs.ISourceFileHandle
getSource
-
Field Details
-
_source
-
_bTestResource
private boolean _bTestResource -
_classType
-
_typeName
-
_strEnclosingType
-
_typeUsesMap
-
_capturedTypeVars
-
_iOffset
private int _iOffset -
_iEnd
private int _iEnd -
_file
-
_fileRef
-
_extSyms
-
-
Constructor Details
-
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 Details
-
assignFileRef
private void assignFileRef() -
getRawSource
-
setRawSource
-
getSource
- Specified by:
getSourcein interfaceISourceFileHandle
-
getParentType
- Specified by:
getParentTypein interfaceISourceFileHandle
-
setParentType
-
getNamespace
- Specified by:
getNamespacein interfaceISourceFileHandle
-
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
- Specified by:
getClassTypein interfaceISourceFileHandle
-
getTypeName
-
getRelativeName
- Specified by:
getRelativeNamein interfaceISourceFileHandle
-
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
-
getFileName
- Specified by:
getFileNamein interfaceISourceFileHandle- Returns:
- a relative representation of the file appropriate for debugging/stack traces
-
getFile
- Specified by:
getFilein interfaceISourceFileHandle
-
setTypeUsesMap
-
getTypeUsesMap
-
setCapturedTypeVars
-
getCapturedTypeVars
-
toString
-
setExternalSymbols
-
getExternalSymbols
-