Class ParsedJavaSourceContainer

java.lang.Object
com.iizix.prop.GProp<GProp<?>[]>
com.iizix.prop.PropCnr
com.iizigo.java.parser.ParsedJavaSourceContainer
All Implemented Interfaces:
EventListener, IGProp<GProp<?>[]>, IPropCnr, Cloneable

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

    • ParsedJavaSourceContainer

      public ParsedJavaSourceContainer()
      Default constructor without name.
    • ParsedJavaSourceContainer

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

    • 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(String projectPath)
      Routine to convert a file name to an Atom.
      Returns:
      The atom used for the JavaSourcePropCnr.
    • getFileName

      public static 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 String getFileName()
      Gets the file name.
    • clone

      public ParsedJavaSourceContainer clone()
      Clones the container.
      Overrides:
      clone in class PropCnr
    • 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