Package gw.lang.reflect.gs
Class StringSourceFileHandle
java.lang.Object
gw.lang.reflect.gs.StringSourceFileHandle
- All Implemented Interfaces:
ISourceFileHandle
- Direct Known Subclasses:
LazyStringSourceFileHandle
-
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 TypeMethodDescriptionvoidintgetEnd()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
-
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
-
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
-