Modifier and Type | Field and Description |
---|---|
static int |
CONSTANT
Constant used in marker to indicate type of artifact is a constant
|
static String[] |
CONSTRUCT_TYPE_NAMES
List of construct names, used to index into for table headings
|
static int |
FUNCTION_CALL
Constant used in marker to indicate type of artifact is a function call
|
static int |
NONE
Constant used in marker to indicate type of artifact is unspecified
|
static int |
PRAGMA
Constant used in marker to indicate type of artifact is a pragma
|
Constructor and Description |
---|
Artifact(String fileName,
int line,
int column,
String shortName,
SourceInfo sourceInfo)
Create an Artifact to keep track of an something found in a file.
|
Artifact(String fileName,
int line,
int column,
String shortName,
String desc,
boolean ignore,
String primaryFileName,
SourceInfo sourceInfo)
Create an artifact to keep track of something in a file, including file name
|
Artifact(String fileName,
int line,
int column,
String shortName,
String desc,
SourceInfo sourceInfo,
Object artifactAssist)
Create an Artifact to keep track of an MPI function call (or similar item) in a file,
including an object that may be an AST node for convenience.
|
Modifier and Type | Method and Description |
---|---|
Object |
getArtifactAssist()
Returns an object cached for assisting in artifact analysis, possibly an AST node
|
int |
getColumn()
Get the column number within the line
|
String |
getDescription()
Get text description of the artifact
|
String |
getFileName()
Get string representation of the filename containing the artifact
|
String |
getId()
Get unique ID
|
int |
getLine()
Get line number within file
|
int |
getNewline()
Get new line (perhaps unused)
|
String |
getPrimaryfileName() |
String |
getShortName()
Get short name of artifact
|
SourceInfo |
getSourceInfo()
Get detailed location info on where the artifact is located in the file (more than just line number, for example)
|
void |
setColumn(int column_)
Set the column number within the line
|
void |
setDescription(String description_) |
void |
setFileName(String fileName_) |
protected void |
setId()
Set unique ID for this MPI artifact.
|
void |
setLine(int line_)
Set the line number within the file
|
void |
setPrimaryfileName(String primaryfileName)
Which file-analysis-invocation gave rise to this artifact.
|
void |
setShortName(String shortName_)
Set short name for artifact
|
String |
toString()
Hand representation of data, useful for debugging, etc.
|
public static final int NONE
public static final int FUNCTION_CALL
public static final int CONSTANT
public static final int PRAGMA
public static final String[] CONSTRUCT_TYPE_NAMES
public Artifact(String fileName, int line, int column, String shortName, SourceInfo sourceInfo)
fileName
- line
- column
- shortName
- ignore
- primaryFileName
- public Artifact(String fileName, int line, int column, String shortName, String desc, SourceInfo sourceInfo, Object artifactAssist)
fileName
- line
- column
- shortName
- desc
- sourceInfo
- artifactAssist
- public Artifact(String fileName, int line, int column, String shortName, String desc, boolean ignore, String primaryFileName, SourceInfo sourceInfo)
fileName
- line
- column
- shortName
- desc
- ignore
- primaryFileName
- sourceInfo
- protected void setId()
public String toString()
public int getColumn()
IArtifact
public void setColumn(int column_)
IArtifact
public String getDescription()
IArtifact
getDescription
in interface IArtifact
public void setDescription(String description_)
description_
- public String getFileName()
IArtifact
getFileName
in interface IArtifact
public void setFileName(String fileName_)
fileName_
- public int getLine()
IArtifact
public void setLine(int line_)
IArtifact
public String getPrimaryfileName()
getPrimaryfileName
in interface IArtifact
public void setPrimaryfileName(String primaryfileName)
primaryfileName
- public String getShortName()
IArtifact
getShortName
in interface IArtifact
public void setShortName(String shortName_)
IArtifact
setShortName
in interface IArtifact
public SourceInfo getSourceInfo()
getSourceInfo
in interface IArtifact
public int getNewline()
public Object getArtifactAssist()
Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.