entities
Class ImplementationFile
java.lang.Object
entities.ImplementationFile
- public class ImplementationFile
- extends java.lang.Object
The ImplementationFile class represents the information regarding
the file in which the user implements the class methods
(e.g. a.cxx)
Constructor Summary |
ImplementationFile(java.lang.String fileName)
Constructs a ImplementationFile object |
ImplementationFile(java.lang.String name,
java.lang.String path,
java.util.Vector sourceFileSuffixes)
Constructs a ImplementationFile object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImplementationFile
public ImplementationFile(java.lang.String name,
java.lang.String path,
java.util.Vector sourceFileSuffixes)
- Constructs a ImplementationFile object
- Parameters:
name
- Name of the file on the command line (or in the configuration file)path
- Directory containing the source filessourceFileSuffixes
- extensions to be considered for the
source files (ex. cxx, cpp ...)
ImplementationFile
public ImplementationFile(java.lang.String fileName)
- Constructs a ImplementationFile object
- Parameters:
fileName
- name of the file contained in the configuration file
getName
public java.lang.String getName()
- Returns:
- the string corresponding to the name of the
implementation file without suffix
getNonAmbiguousName
public java.lang.String getNonAmbiguousName()
- Returns:
- the string corresponding to the name of the implementation
file, with the suffix and with a prefix specified by user in
the configuration file CONFIG_FILES_TO_ANALYZE and used to
disambiguate the file name inside the preprocessed file
getAbsoluteName
public java.lang.String getAbsoluteName()
- Returns:
- the string corresponding to the name of the
implementation file (with suffix), preceeded by the path
getPath
public java.lang.String getPath()
- Returns:
- the string corresponding to the path of the
implementation file
getExtension
public java.lang.String getExtension()
- Returns:
- the string corresponding to the extension of the
implementation file
getSubsystem
public java.lang.String getSubsystem()
- Returns:
- the string corresponding to the subsystem containing the
implementation file
getCode
public java.util.Vector getCode()
- Returns:
- the Vector containing the lines of source code
getLine
public java.lang.String getLine(int i)
- Returns:
- the String corresponding to the i-th line of source code,
null otherwise (the index 0 corresponds to the first line).
setSubsystem
public void setSubsystem(java.lang.String subsystem)
- Parameters:
subsystem
- (specified in file CONFIG_FILES_TO_ANALYZE) is
used to disambiguate the implementation file name inside the
preprocessed file.
print
public void print(java.lang.String indentation)