polyglot.frontend
Class Source

java.lang.Object
  extended by polyglot.frontend.Source
Direct Known Subclasses:
FileSource

public class Source
extends java.lang.Object

A Source represents a source file.


Field Summary
protected  java.util.Date lastModified
           
protected  java.lang.String name
           
protected  java.lang.String path
           
protected  boolean userSpecified
          Indicates if this source was explicitly specified by the user, or if it a source that has been drawn in to the compilation process due to a dependency.
 
Constructor Summary
protected Source(java.lang.String name)
           
protected Source(java.lang.String name, boolean userSpecified)
           
  Source(java.lang.String name, java.lang.String path, java.util.Date lastModified)
           
  Source(java.lang.String name, java.lang.String path, java.util.Date lastModified, boolean userSpecified)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 java.util.Date lastModified()
          Return the date the source file was last modified.
 java.lang.String name()
          The name of the source file.
 java.lang.String path()
          The name of the source file.
 void setUserSpecified(boolean userSpecified)
           
 java.lang.String toString()
           
 boolean userSpecified()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

path

protected java.lang.String path

lastModified

protected java.util.Date lastModified

userSpecified

protected boolean userSpecified
Indicates if this source was explicitly specified by the user, or if it a source that has been drawn in to the compilation process due to a dependency.

Constructor Detail

Source

protected Source(java.lang.String name)

Source

protected Source(java.lang.String name,
                 boolean userSpecified)

Source

public Source(java.lang.String name,
              java.lang.String path,
              java.util.Date lastModified)

Source

public Source(java.lang.String name,
              java.lang.String path,
              java.util.Date lastModified,
              boolean userSpecified)
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

name

public java.lang.String name()
The name of the source file.


path

public java.lang.String path()
The name of the source file.


lastModified

public java.util.Date lastModified()
Return the date the source file was last modified.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setUserSpecified

public void setUserSpecified(boolean userSpecified)

userSpecified

public boolean userSpecified()