| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTANT
Constant used in marker to indicate type of artifact is a constant
|
static java.lang.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(java.lang.String fileName,
int line,
int column,
java.lang.String shortName,
SourceInfo sourceInfo)
Create an Artifact to keep track of an something found in a file.
|
Artifact(java.lang.String fileName,
int line,
int column,
java.lang.String shortName,
java.lang.String desc,
boolean ignore,
java.lang.String primaryFileName,
SourceInfo sourceInfo)
Create an artifact to keep track of something in a file, including file name
|
Artifact(java.lang.String fileName,
int line,
int column,
java.lang.String shortName,
java.lang.String desc,
SourceInfo sourceInfo,
java.lang.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 |
|---|---|
java.lang.Object |
getArtifactAssist()
Returns an object cached for assisting in artifact analysis, possibly an AST node
|
int |
getColumn()
Get the column number within the line
|
java.lang.String |
getDescription()
Get text description of the artifact
|
java.lang.String |
getFileName()
Get string representation of the filename containing the artifact
|
java.lang.String |
getId()
Get unique ID
|
int |
getLine()
Get line number within file
|
int |
getNewline()
Get new line (perhaps unused)
|
java.lang.String |
getPrimaryfileName() |
java.lang.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(java.lang.String description_) |
void |
setFileName(java.lang.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(java.lang.String primaryfileName)
Which file-analysis-invocation gave rise to this artifact.
|
void |
setShortName(java.lang.String shortName_)
Set short name for artifact
|
java.lang.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 java.lang.String[] CONSTRUCT_TYPE_NAMES
public Artifact(java.lang.String fileName,
int line,
int column,
java.lang.String shortName,
SourceInfo sourceInfo)
fileName - line - column - shortName - ignore - primaryFileName - public Artifact(java.lang.String fileName,
int line,
int column,
java.lang.String shortName,
java.lang.String desc,
SourceInfo sourceInfo,
java.lang.Object artifactAssist)
fileName - line - column - shortName - desc - sourceInfo - artifactAssist - public Artifact(java.lang.String fileName,
int line,
int column,
java.lang.String shortName,
java.lang.String desc,
boolean ignore,
java.lang.String primaryFileName,
SourceInfo sourceInfo)
fileName - line - column - shortName - desc - ignore - primaryFileName - sourceInfo - protected void setId()
public java.lang.String getId()
public java.lang.String toString()
toString in class java.lang.Objectpublic int getColumn()
IArtifactpublic void setColumn(int column_)
IArtifactpublic java.lang.String getDescription()
IArtifactgetDescription in interface IArtifactpublic void setDescription(java.lang.String description_)
description_ - public java.lang.String getFileName()
IArtifactgetFileName in interface IArtifactpublic void setFileName(java.lang.String fileName_)
fileName_ - public int getLine()
IArtifactpublic void setLine(int line_)
IArtifactpublic java.lang.String getPrimaryfileName()
getPrimaryfileName in interface IArtifactpublic void setPrimaryfileName(java.lang.String primaryfileName)
primaryfileName - public java.lang.String getShortName()
IArtifactgetShortName in interface IArtifactpublic void setShortName(java.lang.String shortName_)
IArtifactsetShortName in interface IArtifactpublic SourceInfo getSourceInfo()
getSourceInfo in interface IArtifactpublic int getNewline()
public java.lang.Object getArtifactAssist()
Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.