PTP
Release 7.0

org.eclipse.ptp.pldt.common.util
Class SourceInfo

java.lang.Object
  extended by org.eclipse.ptp.pldt.common.util.SourceInfo

public class SourceInfo
extends java.lang.Object

Class encapsulates locational information for creating markers representing Artifacts.


Constructor Summary
SourceInfo()
          explicit default constructor with no info; assumed to be filled in with set methods.
SourceInfo(int startLine, int start, int end, int construct)
          ctor with info already filled in
 
Method Summary
 int getConstructType()
           
 int getEnd()
           
 int getStart()
           
 int getStartingLine()
           
 void setConstructType(int constructType)
           
 void setEnd(int end)
           
 void setStart(int start)
           
 void setStartingLine(int startingLine)
           
 java.lang.String toString()
          A string representation of the object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SourceInfo

public SourceInfo()
explicit default constructor with no info; assumed to be filled in with set methods.


SourceInfo

public SourceInfo(int startLine,
                  int start,
                  int end,
                  int construct)
ctor with info already filled in

Method Detail

getEnd

public int getEnd()
Returns:
Returns the end position, relative to start of file

setEnd

public void setEnd(int end)
Parameters:
end - The end to set.

getStart

public int getStart()
Returns:
Returns the start position, relative to start of file

setStart

public void setStart(int start)
Parameters:
start - The start to set.

getStartingLine

public int getStartingLine()
Returns:
Returns the startingLine.

setStartingLine

public void setStartingLine(int startingLine)
Parameters:
startingLine - The startingLine to set.

getConstructType

public int getConstructType()
Returns:
Returns the constructType.

setConstructType

public void setConstructType(int constructType)
Parameters:
constructType - The constructType to set.

toString

public java.lang.String toString()
A string representation of the object

Overrides:
toString in class java.lang.Object

PTP
Release 7.0

Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.