Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

oracle.jdeveloper.compiler
Interface SourceMap


public interface SourceMap


Method Summary
 java.lang.String getQualifiedClassName()
          getQualifiedClassName() returns the fully qualified class name for this SourceMap
 Storage getRealSource()
          getRealSource() returns the storage for the original source file, not the preprocessed one
 java.lang.String getSMAP()
          getSMAP() returns a String describing the JSR-045 compatible source map information, see the Sun Microsystems document about JSR-045.
 boolean translateLocation(int[] lineCol, Storage[] source)
          translateLocation() will convert the line/col from the generated file to the line/col into the original file using the SMAP, it will also return the original source file name this line/col is from, the returned source file may be different than the value returned from getRealSource() when the line/col is located in some include source file
 

Method Detail

getSMAP

java.lang.String getSMAP()
getSMAP() returns a String describing the JSR-045 compatible source map information, see the Sun Microsystems document about JSR-045.

Returns:
JSR-045 compliant source map information

getQualifiedClassName

java.lang.String getQualifiedClassName()
getQualifiedClassName() returns the fully qualified class name for this SourceMap

Returns:
fully qualified class name

getRealSource

Storage getRealSource()
getRealSource() returns the storage for the original source file, not the preprocessed one

Returns:
storage of the original source file

translateLocation

boolean translateLocation(int[] lineCol,
                          Storage[] source)
translateLocation() will convert the line/col from the generated file to the line/col into the original file using the SMAP, it will also return the original source file name this line/col is from, the returned source file may be different than the value returned from getRealSource() when the line/col is located in some include source file

Returns:
true if the line is part of the original source, false if it is part of the generated code

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

Copyright © 1997, 2011, Oracle. All rights reserved.