|
PTP Release 7.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ptp.pldt.common.Artifact
public class Artifact
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
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 - | Method Detail |
|---|
protected void setId()
public String getId()
getId in interface IArtifactpublic String toString()
toString in class Objectpublic int getColumn()
IArtifact
getColumn in interface IArtifactpublic void setColumn(int column_)
IArtifact
setColumn in interface IArtifactpublic String getDescription()
IArtifact
getDescription in interface IArtifactpublic void setDescription(String description_)
description_ - public String getFileName()
IArtifact
getFileName in interface IArtifactpublic void setFileName(String fileName_)
fileName_ - public int getLine()
IArtifact
getLine in interface IArtifactpublic void setLine(int line_)
IArtifact
setLine in interface IArtifactpublic String getPrimaryfileName()
getPrimaryfileName in interface IArtifactpublic void setPrimaryfileName(String primaryfileName)
primaryfileName - public String getShortName()
IArtifact
getShortName in interface IArtifactpublic void setShortName(String shortName_)
IArtifact
setShortName in interface IArtifactpublic SourceInfo getSourceInfo()
getSourceInfo in interface IArtifactpublic int getNewline()
public Object getArtifactAssist()
|
PTP Release 7.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||