Class ParsedJavaSourceContainer

  • All Implemented Interfaces:
    EventListener, IGProp<GProp<?>[]>, IPropCnr, java.lang.Cloneable

    public class ParsedJavaSourceContainer
    extends PropCnr
    Property container for a Java source.
    Author:
    Christopher Mindus
    • Constructor Detail

      • ParsedJavaSourceContainer

        public ParsedJavaSourceContainer()
        Default constructor without name.
      • ParsedJavaSourceContainer

        public ParsedJavaSourceContainer​(org.eclipse.core.resources.IFile file)
        Creates the container for a file.
    • Method Detail

      • getAtom

        public static Atom getAtom​(org.eclipse.core.resources.IFile file)
        Routine to convert a file name to an Atom.
        Parameters:
        file - The file.
        Returns:
        The atom used for the JavaSourcePropCnr.
      • getAtom

        public static Atom getAtom​(org.eclipse.core.runtime.IPath projectPath)
        Routine to convert a file name to an Atom.
        Parameters:
        projectPath - Project relative path.
        Returns:
        The atom used for the JavaSourcePropCnr.
      • getAtom

        public static Atom getAtom​(java.lang.String projectPath)
        Routine to convert a file name to an Atom.
        Returns:
        The atom used for the JavaSourcePropCnr.
      • getFileName

        public static java.lang.String getFileName​(Atom atom)
        Gets the file name from an Atom.
        Parameters:
        atom - The atom used in JavaSourcePropCnr for file name.
        Returns:
        The project-relative file name.
      • getFileName

        public java.lang.String getFileName()
        Gets the file name.
      • getParsedStamp

        public long getParsedStamp()
        Gets the parsed time in the file.
        Returns:
        The modification stamp of the file when parsed last, -1 for never.
      • onPropDispose

        protected void onPropDispose()
        Called when disposed of.
        Overrides:
        onPropDispose in class PropCnr