ua.gradsoft.termware.debug
Class SourceCodeAccessHelper

java.lang.Object
  extended by ua.gradsoft.termware.debug.SourceCodeAccessHelper

public class SourceCodeAccessHelper
extends Object

Provide helper entries for access to source code.

Author:
rssh

Constructor Summary
SourceCodeAccessHelper()
           
 
Method Summary
static SourceCodeLocation getLocationOfTerm(Term t)
          if term was in source code, get location of this term in it, otherwise - return SourceCodeLocation.UNKNOWN
static SourceCodeLocation getLocationOfTermBegin(Term t)
          if term was in source code, get location of begin line of this term, otherwise - return SourceCodeLocation.UNKNOWN
static SourceCodeLocation getLocationOfTermEnd(Term t)
          if term was in source code, get location of begin line of this term, otherwise - return SourceCodeLocation.UNKNOWN
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceCodeAccessHelper

public SourceCodeAccessHelper()
Method Detail

getLocationOfTerm

public static SourceCodeLocation getLocationOfTerm(Term t)
if term was in source code, get location of this term in it, otherwise - return SourceCodeLocation.UNKNOWN

Parameters:
t -
Returns:
SourcCodeLocation if known, otherwise - UNKNOWN location.

getLocationOfTermBegin

public static SourceCodeLocation getLocationOfTermBegin(Term t)
if term was in source code, get location of begin line of this term, otherwise - return SourceCodeLocation.UNKNOWN

Parameters:
t -
Returns:
SourcCodeLocation if known, otherwise - UNKNOWN location.

getLocationOfTermEnd

public static SourceCodeLocation getLocationOfTermEnd(Term t)
if term was in source code, get location of begin line of this term, otherwise - return SourceCodeLocation.UNKNOWN

Parameters:
t -
Returns:
SourcCodeLocation if known, otherwise - UNKNOWN location.