de.smartics.testdoc.core.source
Class SunSourceCodeHelper
java.lang.Object
de.smartics.testdoc.core.source.SunSourceCodeHelper
-
All Implemented Interfaces:
-
SourceCodeHelper
-
public class SunSourceCodeHelper
-
extends
Object
-
implements
SourceCodeHelper
Implementation of the SourceCodeHelper
interface that uses the AST implementation of com.sun.source.*
.
-
Author:
-
Robert Reiner
Constructor Summary |
SunSourceCodeHelper(com.sun.source.util.Trees treeUtils) Default constructor. |
Method Summary |
de.smartics.util.source.SourceCodeLocation |
getSourceCodeLocation(Element element) Returns the location of the element in the source code. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SunSourceCodeHelper
public SunSourceCodeHelper(com.sun.source.util.Trees treeUtils)
-
Default constructor.
getSourceCodeLocation
public de.smartics.util.source.SourceCodeLocation getSourceCodeLocation(Element element)
-
Returns the location of the element in the source code.
-
-
Specified by:
-
getSourceCodeLocation
in interface
SourceCodeHelper
-
-
Parameters:
-
element
- the element whose location in the source code is requested.
-
Returns:
-
the requested location.
Copyright © 2010-2013
Kronseder & Reiner GmbH - smartics. All Rights Reserved.