Package gw.lang
Class ProgramFileContext
- java.lang.Object
-
- gw.lang.ProgramFileContext
-
- All Implemented Interfaces:
IFileContext
public class ProgramFileContext extends java.lang.Object implements IFileContext
-
-
Constructor Summary
Constructors Constructor Description ProgramFileContext(java.io.File file, java.lang.String fqn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetClassName()java.lang.StringgetContextString()java.lang.StringgetFilePath()private static java.lang.StringmakeJavaName(java.lang.String name)
-
-
-
Method Detail
-
getContextString
public java.lang.String getContextString()
- Specified by:
getContextStringin interfaceIFileContext- Returns:
- Some additional contextual information about the place within a file that this program is located (e.g. an attribute in an XML file)
-
getClassName
public java.lang.String getClassName()
- Specified by:
getClassNamein interfaceIFileContext- Returns:
- a class name that uniquely represents this file context when combined with the context string above.
-
getFilePath
public java.lang.String getFilePath()
- Specified by:
getFilePathin interfaceIFileContext- Returns:
- the full path
-
makeJavaName
private static java.lang.String makeJavaName(java.lang.String name)
-
-