Package gw.lang

Class ProgramFileContext

java.lang.Object
gw.lang.ProgramFileContext
All Implemented Interfaces:
IFileContext

public class ProgramFileContext extends Object implements IFileContext
  • Field Details

    • _file

      private File _file
    • _fqn

      private String _fqn
  • Constructor Details

    • ProgramFileContext

      public ProgramFileContext(File file, String fqn)
  • Method Details

    • getContextString

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

      private static String makeJavaName(String name)