entities
Class HeaderFile
java.lang.Object
entities.HeaderFile
- public class HeaderFile
- extends java.lang.Object
The HeaderFile class represents the information regarding
the file in which the user defines a class
(e.g. a.h)
Constructor Summary |
HeaderFile(java.lang.String headerFileName)
Construct a HeaderFile object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HeaderFile
public HeaderFile(java.lang.String headerFileName)
- Construct a HeaderFile object
- Parameters:
headerFileName
- name of the file contained in the
configuration file
getName
public java.lang.String getName()
- Returns:
- the string corresponding to the name of the
header file without suffix
getNonAmbiguousName
public java.lang.String getNonAmbiguousName()
- Returns:
- the string corresponding to the name of the header
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
header file (with suffix), preceeded by the path
getPath
public java.lang.String getPath()
- Returns:
- the string corresponding to the path of the
header file
getExtension
public java.lang.String getExtension()
- Returns:
- the string corresponding to the extension of the
header file
getSubsystem
public java.lang.String getSubsystem()
- Returns:
- the string corresponding to the subsystem containing the
header 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 header file name inside the
preprocessed file.
print
public void print(java.lang.String indentation)
- Print all information contained in this Expression