Package gw.lang

Class ProgramFileContext

  • All Implemented Interfaces:
    IFileContext

    public class ProgramFileContext
    extends java.lang.Object
    implements IFileContext
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.File _file  
      private java.lang.String _fqn  
    • Constructor Summary

      Constructors 
      Constructor Description
      ProgramFileContext​(java.io.File file, java.lang.String fqn)  
    • Field Detail

      • _file

        private java.io.File _file
      • _fqn

        private java.lang.String _fqn
    • Constructor Detail

      • ProgramFileContext

        public ProgramFileContext​(java.io.File file,
                                  java.lang.String fqn)
    • Method Detail

      • getContextString

        public java.lang.String getContextString()
        Specified by:
        getContextString in interface IFileContext
        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:
        getClassName in interface IFileContext
        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:
        getFilePath in interface IFileContext
        Returns:
        the full path
      • makeJavaName

        private static java.lang.String makeJavaName​(java.lang.String name)