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 boolean
private Map<String,
ITypeVariableDefinition> private ClassType
private ISymbolTable
private IFile
private String
private int
private int
private String
private String
private String
private 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 void
void
int
getEnd()
getFile()
int
protected String
boolean
boolean
boolean
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) 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
-
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:
getSource
in interfaceISourceFileHandle
-
getParentType
- Specified by:
getParentType
in interfaceISourceFileHandle
-
setParentType
-
getNamespace
- Specified by:
getNamespace
in interfaceISourceFileHandle
-
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
- Specified by:
getClassType
in interfaceISourceFileHandle
-
getTypeName
-
getRelativeName
- Specified by:
getRelativeName
in interfaceISourceFileHandle
-
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
-
getFileName
- Specified by:
getFileName
in interfaceISourceFileHandle
- Returns:
- a relative representation of the file appropriate for debugging/stack traces
-
getFile
- Specified by:
getFile
in interfaceISourceFileHandle
-
setTypeUsesMap
-
getTypeUsesMap
-
setCapturedTypeVars
-
getCapturedTypeVars
-
toString
-
setExternalSymbols
-
getExternalSymbols
-