|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.wst.jsdt.web.core.javascript.JsTranslation
public class JsTranslation
Provisional API: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
Constructor Summary | |
---|---|
JsTranslation()
|
Method Summary | |
---|---|
void |
classpathChange()
notify the translation to update any external dependancies that are created during translation |
java.lang.String |
fixupMangledName(java.lang.String displayString)
fixes a mangled html--> pure js name. |
IJavaScriptElement[] |
getAllElementsInJsRange(int javaPositionStart,
int javaPositionEnd)
|
IJavaScriptUnit |
getCompilationUnit()
|
java.lang.String |
getDirectoryUnderRoot()
|
IJavaScriptElement[] |
getElementsFromJsRange(int javaPositionStart,
int javaPositionEnd)
|
IFile |
getFile()
|
IDocument |
getHtmlDocument()
|
java.lang.String |
getHtmlText()
|
IJsTranslation |
getInstance(IStructuredDocument htmlDocument,
IJavaScriptProject javaProj,
boolean listenForChanges)
|
java.lang.String |
getJavaPath()
|
IJavaScriptProject |
getJavaProject()
|
IJavaScriptElement |
getJsElementAtOffset(int jsOffset)
|
java.lang.String |
getJsText()
|
java.lang.String |
getMangledName()
|
int |
getMissingTagStart()
|
java.util.List |
getProblems()
|
Position[] |
getScriptPositions()
|
IJsTranslator |
getTranslator()
|
WorkingCopyOwner |
getWorkingCopyOwner()
|
boolean |
ifOffsetInImportNode(int offset)
|
void |
insertInFirstScriptRegion(java.lang.String text)
|
void |
insertScript(int offset,
java.lang.String text)
insert javascript at the given offset. |
void |
reconcileCompilationUnit()
checks the CU for errors/consistancy. |
void |
release()
release the translation. |
void |
setProblemCollectingActive(boolean collect)
start/stop collecting problems within the javascript unit. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JsTranslation()
Method Detail |
---|
public IJsTranslator getTranslator()
public IJsTranslation getInstance(IStructuredDocument htmlDocument, IJavaScriptProject javaProj, boolean listenForChanges)
getInstance
in interface IJsTranslation
public IJavaScriptProject getJavaProject()
getJavaProject
in interface IJsTranslation
public IFile getFile()
public IDocument getHtmlDocument()
getHtmlDocument
in interface IJsTranslation
public int getMissingTagStart()
getMissingTagStart
in interface IJsTranslation
public java.lang.String getDirectoryUnderRoot()
public java.lang.String fixupMangledName(java.lang.String displayString)
IJsTranslation
fixupMangledName
in interface IJsTranslation
public IJavaScriptElement[] getAllElementsInJsRange(int javaPositionStart, int javaPositionEnd)
getAllElementsInJsRange
in interface IJsTranslation
public IJavaScriptUnit getCompilationUnit()
getCompilationUnit
in interface IJsTranslation
public IJavaScriptElement[] getElementsFromJsRange(int javaPositionStart, int javaPositionEnd)
getElementsFromJsRange
in interface IJsTranslation
public java.lang.String getHtmlText()
getHtmlText
in interface IJsTranslation
public java.lang.String getJavaPath()
getJavaPath
in interface IJsTranslation
public IJavaScriptElement getJsElementAtOffset(int jsOffset)
getJsElementAtOffset
in interface IJsTranslation
public java.lang.String getJsText()
getJsText
in interface IJsTranslation
public Position[] getScriptPositions()
getScriptPositions
in interface IJsTranslation
public void insertInFirstScriptRegion(java.lang.String text)
insertInFirstScriptRegion
in interface IJsTranslation
public void insertScript(int offset, java.lang.String text)
IJsTranslation
insertScript
in interface IJsTranslation
public java.lang.String getMangledName()
public java.util.List getProblems()
getProblems
in interface IJsTranslation
public WorkingCopyOwner getWorkingCopyOwner()
public boolean ifOffsetInImportNode(int offset)
ifOffsetInImportNode
in interface IJsTranslation
public void reconcileCompilationUnit()
IJsTranslation
reconcileCompilationUnit
in interface IJsTranslation
public void release()
IJsTranslation
release
in interface IJsTranslation
public void setProblemCollectingActive(boolean collect)
IJsTranslation
setProblemCollectingActive
in interface IJsTranslation
public void classpathChange()
IJsTranslation
classpathChange
in interface IJsTranslation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |