|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rice.cs.drjava.model.DummyGlobalModel
public class DummyGlobalModel
Concrete implementation of GlobalModel that always throws UnsupportedOperationExceptions.
Field Summary |
---|
Fields inherited from interface edu.rice.cs.drjava.model.GlobalModel |
---|
RUNTIME_CLASS_PATH |
Constructor Summary | |
---|---|
DummyGlobalModel()
|
Method Summary | |
---|---|
void |
addAuxiliaryFile(OpenDefinitionsDocument doc)
Adds a document to the list of auxiliary files. |
void |
addListener(GlobalModelListener listener)
Since this is not supposed to be used, we need to throw an exception OTHER than the ones it officially supports. |
void |
addToBrowserHistory()
Add the current location to the browser history. |
void |
cleanBuildDirectory()
Cleans the build directory. |
void |
clearHistory()
Clears the interactions history. |
boolean |
closeAllFiles()
Attempts to close all open documents. |
boolean |
closeFile(OpenDefinitionsDocument doc)
Closes an open definitions document, prompting to save if the document has been changed. |
boolean |
closeFileWithoutPrompt(OpenDefinitionsDocument doc)
Closes an open definitions document, without prompting to save if the document has been changed. |
void |
closeProject(boolean quitting)
Performs any needed operations on the model before closing the project and its files. |
void |
configNewProject()
Configures a new project (created by createNewProject) and saves it to disk. |
RegionManager<MovingDocumentRegion> |
createFindResultsManager()
|
void |
createNewProject(File f)
Creates a new project with specified project file and default values for other properties. |
File |
findFileInPaths(String fileName,
Iterable<File> paths)
Searches for a file with the given name on the provided paths. |
String |
fixPathForNavigator(String path)
Formats a string pathname for use in the document navigator. |
void |
forceQuit()
Halts the program immediately. |
boolean |
getAutoRefreshStatus()
Gets autorefresh status of the project |
String |
getAuxiliaryBinTitle()
Gives the title of the aux files bin for the navigator |
List<OpenDefinitionsDocument> |
getAuxiliaryDocuments()
|
RegionManager<MovingDocumentRegion> |
getBookmarkManager()
|
RegionManager<Breakpoint> |
getBreakpointManager()
|
BrowserHistoryManager |
getBrowserHistoryManager()
|
File |
getBuildDirectory()
|
List<File> |
getClassFiles()
|
Iterable<File> |
getClassPath()
Get the class path to be used in all class-related operations. |
CompilerModel |
getCompilerModel()
Gets the CompilerModel, which provides all methods relating to compilers. |
String |
getCompletePath(int index)
|
ConsoleDocument |
getConsoleDocument()
Gets the console document. |
File |
getCreateJarFile()
Return the create jar file for the project. |
int |
getCreateJarFlags()
Return the create jar file for the project. |
Debugger |
getDebugger()
Gets the Debugger, which interfaces with the integrated debugger. |
int |
getDebugPort()
Returns an available port number to use for debugging the interactions JVM. |
int |
getDocumentCount()
Returns the document count |
OpenDefinitionsDocument |
getDocumentForFile(File file)
Returns the OpenDefinitionsDocument for the specified File, opening a new copy if one is not already open. |
DocumentIterator |
getDocumentIterator()
Gets a DocumentIterator to allow navigating through open swing Documents. |
IDocumentNavigator<OpenDefinitionsDocument> |
getDocumentNavigator()
Gets the DocumentNavigator, which controls the document view. |
DefinitionsEditorKit |
getEditorKit()
Fetches the EditorKit implementation for use in the definitions pane. |
String |
getExternalBinTitle()
Gives the title of the external files bin for the navigator |
Iterable<File> |
getExtraClassPath()
Returns only the project's extra classpaths. |
String |
getHistoryAsString()
Returns the entire history as a String. |
String |
getHistoryAsStringWithSemicolons()
Returns the entire history as a String with semicolons as needed. |
Iterable<File> |
getInteractionsClassPath()
Returns the current classpath in use by the Interpreter JVM. |
InteractionsDocument |
getInteractionsDocument()
Gets the (toolkit-independent) interactions document. |
DefaultInteractionsModel |
getInteractionsModel()
Returns the interactions model. |
JavadocModel |
getJavadocModel()
Gets the JavadocModel, which provides all methods relating to Javadoc. |
JUnitModel |
getJUnitModel()
Gets the JUnitModel, which provides all methods relating to JUnit testing. |
File |
getMainClass()
Return the main file for the project If not in project mode, returns null. |
File |
getMasterWorkingDirectory()
|
List<OpenDefinitionsDocument> |
getNonProjectDocuments()
Returns a list of OpenDefinitionsDocuments that do not belong to the currently active project. If no project is active, all documents are returned. |
GlobalEventNotifier |
getNotifier()
|
int |
getNumCompErrors()
Returns the number of compiler errors produced by the last compilation. |
OpenDefinitionsDocument |
getODDForDocument(AbstractDocumentInterface doc)
CHECK IF NEEDED! |
List<OpenDefinitionsDocument> |
getOpenDefinitionsDocuments()
Returns a collection of all documents currently open for editing. |
PageFormat |
getPageFormat()
|
List<OpenDefinitionsDocument> |
getProjectDocuments()
Teturns a list of OpenDefinitionsDocuments that do belong to the currently active project. If no project is active, no documents are returned. |
File |
getProjectFile()
|
File[] |
getProjectFiles()
|
File |
getProjectRoot()
|
List<OpenDefinitionsDocument> |
getSortedOpenDefinitionsDocuments()
|
String |
getSourceBinTitle()
Gives the title of the source bin for the navigator |
File |
getSourceFile(String fileName)
Searches for a file with the given name on the current source roots and the augmented classpath. |
Iterable<File> |
getSourceRootSet()
Gets a list of all sourceRoots for the open definitions documents, without duplicates. |
InteractionsDJDocument |
getSwingConsoleDocument()
TODO: remove this swing dependency. |
InteractionsDJDocument |
getSwingInteractionsDocument()
TODO: remove this swing dependency. |
File |
getWorkingDirectory()
|
boolean |
hasModifiedDocuments()
Checks if any open definitions documents have been modified since last being saved. |
boolean |
hasModifiedDocuments(List<OpenDefinitionsDocument> lod)
Checks if any of the given documents have been modified since last being saved. |
boolean |
hasOutOfSyncDocuments()
|
boolean |
hasOutOfSyncDocuments(List<OpenDefinitionsDocument> lod)
|
boolean |
hasUntitledDocuments()
Checks if any open definitions documents are untitled. |
boolean |
inProject(File f)
Returns true the given file is in the current project file. |
boolean |
inProjectPath(OpenDefinitionsDocument doc)
A file is in the project if the source root is the same as the project root. |
void |
interpretCurrentInteraction()
Interprets the current given text at the prompt in the interactions pane. |
boolean |
isAlreadyOpen(File file)
|
boolean |
isProjectActive()
|
boolean |
isProjectChanged()
Returns true if the project state has been changed |
void |
loadHistory(FileOpenSelector selector)
Interprets file selected in the FileOpenSelector. |
InteractionsScriptModel |
loadHistoryAsScript(FileOpenSelector s)
Loads the history/histories from the given selector. |
OpenDefinitionsDocument |
newFile()
Creates a new document in the definitions pane and adds it to the list of open documents. |
OpenDefinitionsDocument |
newTestCase(String name,
boolean makeSetUp,
boolean makeTearDown)
Creates a new junit test case. |
OpenDefinitionsDocument |
openFile(FileOpenSelector com)
Open a file and read it into the definitions. |
OpenDefinitionsDocument[] |
openFiles(FileOpenSelector com)
Opens multiple files and reads them into the definitions. |
void |
openFolder(File dir,
boolean rec)
|
void |
openProject(File file)
Parses out the given project file, sets up the state and other configurations such as the Navigator and the classpath, and returns an array of files to open. |
void |
printDebugMessage(String s)
Called when the debugger wants to print a message. |
void |
quit()
Exits the program. |
void |
refreshActiveDocument()
Re-runs the global listeners on the active document. |
void |
reloadProject(File f,
HashMap<OpenDefinitionsDocument,DocumentInfoGetter> ht)
Reloads a project without writing to disk. |
void |
removeAuxiliaryFile(OpenDefinitionsDocument doc)
Removes a document from the list of auxiliary files. |
void |
removeFindResultsManager(RegionManager<MovingDocumentRegion> rm)
Dispose a manager for find result regions. |
void |
removeListener(GlobalModelListener listener)
Remove a listener from this global model. |
void |
resetConsole()
Resets the console. |
void |
resetInteractions(File wd)
Clears and resets the interactions pane in the specified working directory, provided that the operation has some effect. |
void |
resetInteractions(File wd,
boolean forceReset)
Clears and resets the interactions pane in the specified working directory. |
void |
saveAllFiles(FileSaveSelector com)
Saves all open documents, prompting when necessary. |
void |
saveHistory(FileSaveSelector selector)
Saves the unedited version of the current history to a file |
void |
saveHistory(FileSaveSelector selector,
String editedVersion)
Saves the edited version of the current history to a file |
void |
saveProject(File f,
HashMap<OpenDefinitionsDocument,DocumentInfoGetter> ht)
Writes the project file to disk |
void |
setAutoRefreshStatus(boolean status)
Sets autorefresh status of the project |
void |
setBuildDirectory(File f)
Sets the current build directory. |
void |
setCreateJarFile(File f)
Sets the create jar file of the project. |
void |
setCreateJarFlags(int f)
Sets the create jar flags of the project. |
void |
setDocumentNavigator(IDocumentNavigator<OpenDefinitionsDocument> newnav)
|
void |
setExtraClassPath(Iterable<File> cp)
Sets the set of classpath entries to use as the projects set of classpath entries. |
void |
setMainClass(File f)
Sets the main file of the project. |
void |
setNumCompErrors(int num)
Sets the number of compiler errors produced by the last compilation. |
void |
setPageFormat(PageFormat format)
|
void |
setProjectChanged(boolean changed)
Notifies the project state that the project has been changed. |
void |
setProjectFile(File f)
Sets project file to specifed value; used in "Save Project As ..." command in MainFrame. |
void |
setProjectRoot(File f)
Sets the source root for the project. |
void |
setWorkingDirectory(File f)
Sets the working directory for the Slave JVM (only applies to project mode). |
void |
systemErrPrint(String s)
Prints System.err to the DrJava console. |
void |
systemInEcho(String s)
Prints the given string to the DrJava console as an echo of System.in. |
void |
systemOutPrint(String s)
Prints System.out to the DrJava console. |
void |
waitForInterpreter()
Blocks until the interpreter has registered. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DummyGlobalModel()
Method Detail |
---|
public void addListener(GlobalModelListener listener)
addListener
in interface GlobalModel
listener
- a listener that reacts on events generated by the GlobalModel
UnsupportedOperationException
public void removeListener(GlobalModelListener listener)
GlobalModel
removeListener
in interface GlobalModel
listener
- a listener that reacts on events generated by the GlobalModelpublic GlobalEventNotifier getNotifier()
getNotifier
in interface GlobalModel
public DefaultInteractionsModel getInteractionsModel()
GlobalModel
getInteractionsModel
in interface GlobalModel
public CompilerModel getCompilerModel()
GlobalModel
getCompilerModel
in interface GlobalModel
public JUnitModel getJUnitModel()
GlobalModel
getJUnitModel
in interface GlobalModel
public JavadocModel getJavadocModel()
GlobalModel
getJavadocModel
in interface GlobalModel
public Debugger getDebugger()
GlobalModel
getDebugger
in interface GlobalModel
public RegionManager<Breakpoint> getBreakpointManager()
getBreakpointManager
in interface GlobalModel
public RegionManager<MovingDocumentRegion> getBookmarkManager()
getBookmarkManager
in interface GlobalModel
public RegionManager<MovingDocumentRegion> createFindResultsManager()
createFindResultsManager
in interface GlobalModel
public void removeFindResultsManager(RegionManager<MovingDocumentRegion> rm)
GlobalModel
removeFindResultsManager
in interface GlobalModel
public BrowserHistoryManager getBrowserHistoryManager()
getBrowserHistoryManager
in interface GlobalModel
public void addToBrowserHistory()
GlobalModel
addToBrowserHistory
in interface GlobalModel
public IDocumentNavigator<OpenDefinitionsDocument> getDocumentNavigator()
GlobalModel
getDocumentNavigator
in interface GlobalModel
public void setDocumentNavigator(IDocumentNavigator<OpenDefinitionsDocument> newnav)
setDocumentNavigator
in interface GlobalModel
public OpenDefinitionsDocument newFile()
GlobalModel
newFile
in interface GlobalModel
public OpenDefinitionsDocument newTestCase(String name, boolean makeSetUp, boolean makeTearDown)
GlobalModel
newTestCase
in interface GlobalModel
name
- the name of the new test casemakeSetUp
- true iff an empty setUp() method should be includedmakeTearDown
- true iff an empty tearDown() method should be included
public OpenDefinitionsDocument openFile(FileOpenSelector com) throws IOException, OperationCanceledException, AlreadyOpenException
ILoadDocuments
openFile
in interface ILoadDocuments
com
- a command pattern command that selects what file to open
IOException
OperationCanceledException
- if the open was canceled
AlreadyOpenException
- if the file is already openpublic OpenDefinitionsDocument[] openFiles(FileOpenSelector com) throws IOException, OperationCanceledException, AlreadyOpenException
ILoadDocuments
openFiles
in interface ILoadDocuments
com
- a command pattern command that selects which files to open
IOException
- if an underlying I/O operation fails
OperationCanceledException
- if the open was canceled
AlreadyOpenException
- if the file is already openpublic boolean closeFile(OpenDefinitionsDocument doc)
GlobalModel
closeFile
in interface GlobalModel
public boolean closeFileWithoutPrompt(OpenDefinitionsDocument doc)
GlobalModel
closeFileWithoutPrompt
in interface GlobalModel
public boolean closeAllFiles()
GlobalModel
closeAllFiles
in interface GlobalModel
public void openFolder(File dir, boolean rec) throws IOException, OperationCanceledException, AlreadyOpenException
openFolder
in interface GlobalModel
IOException
OperationCanceledException
AlreadyOpenException
public void setAutoRefreshStatus(boolean status)
GlobalModel
setAutoRefreshStatus
in interface GlobalModel
public boolean getAutoRefreshStatus()
GlobalModel
getAutoRefreshStatus
in interface GlobalModel
public void saveAllFiles(FileSaveSelector com) throws IOException
GlobalModel
saveAllFiles
in interface GlobalModel
IOException
public void createNewProject(File f)
GlobalModel
createNewProject
in interface GlobalModel
f
- the new project file (which does not yet exist in the file system).public void configNewProject() throws IOException
GlobalModel
configNewProject
in interface GlobalModel
IOException
public void saveProject(File f, HashMap<OpenDefinitionsDocument,DocumentInfoGetter> ht) throws IOException
GlobalModel
saveProject
in interface GlobalModel
f
- where to save the projectht
- Extra view-related information that should be included in the project file
IOException
public void reloadProject(File f, HashMap<OpenDefinitionsDocument,DocumentInfoGetter> ht) throws IOException
GlobalModel
reloadProject
in interface GlobalModel
f
- project file; does not actually get touched
IOException
public String fixPathForNavigator(String path) throws IOException
GlobalModel
fixPathForNavigator
in interface GlobalModel
IOException
public String getSourceBinTitle()
GlobalModel
getSourceBinTitle
in interface GlobalModel
public String getExternalBinTitle()
GlobalModel
getExternalBinTitle
in interface GlobalModel
public String getAuxiliaryBinTitle()
GlobalModel
getAuxiliaryBinTitle
in interface GlobalModel
public void addAuxiliaryFile(OpenDefinitionsDocument doc)
GlobalModel
addAuxiliaryFile
in interface GlobalModel
public void removeAuxiliaryFile(OpenDefinitionsDocument doc)
GlobalModel
removeAuxiliaryFile
in interface GlobalModel
public void openProject(File file) throws IOException, MalformedProjectFileException
GlobalModel
openProject
in interface GlobalModel
file
- The project file to parse
IOException
MalformedProjectFileException
public void closeProject(boolean quitting)
GlobalModel
closeProject
in interface GlobalModel
public File getSourceFile(String fileName)
GlobalModel
getSourceFile
in interface GlobalModel
fileName
- Name of the source file to look for
public File findFileInPaths(String fileName, Iterable<File> paths)
GlobalModel
findFileInPaths
in interface GlobalModel
fileName
- Name of the source file to look forpaths
- An array of directories to searchpublic Iterable<File> getSourceRootSet()
GlobalModel
getSourceRootSet
in interface GlobalModel
public String getCompletePath(int index)
public DefinitionsEditorKit getEditorKit()
GlobalModel
EditorKit
implementation for use in the definitions pane.
getEditorKit
in interface GlobalModel
public DocumentIterator getDocumentIterator()
GlobalModel
getDocumentIterator
in interface GlobalModel
public void refreshActiveDocument()
GlobalModel
refreshActiveDocument
in interface GlobalModel
public ConsoleDocument getConsoleDocument()
GlobalModel
getConsoleDocument
in interface GlobalModel
public InteractionsDJDocument getSwingConsoleDocument()
GlobalModel
getSwingConsoleDocument
in interface GlobalModel
public void resetConsole()
GlobalModel
resetConsole
in interface GlobalModel
public void systemOutPrint(String s)
GlobalModel
systemOutPrint
in interface GlobalModel
public void systemErrPrint(String s)
GlobalModel
systemErrPrint
in interface GlobalModel
public void systemInEcho(String s)
GlobalModel
systemInEcho
in interface GlobalModel
public InteractionsDocument getInteractionsDocument()
GlobalModel
getInteractionsDocument
in interface GlobalModel
public InteractionsDJDocument getSwingInteractionsDocument()
GlobalModel
getSwingInteractionsDocument
in interface GlobalModel
public void resetInteractions(File wd)
GlobalModel
resetInteractions
in interface GlobalModel
public void resetInteractions(File wd, boolean forceReset)
GlobalModel
resetInteractions
in interface GlobalModel
public void waitForInterpreter()
GlobalModel
waitForInterpreter
in interface GlobalModel
public void interpretCurrentInteraction()
GlobalModel
interpretCurrentInteraction
in interface GlobalModel
public Iterable<File> getInteractionsClassPath()
GlobalModel
getInteractionsClassPath
in interface GlobalModel
public void loadHistory(FileOpenSelector selector) throws IOException
GlobalModel
loadHistory
in interface GlobalModel
IOException
public InteractionsScriptModel loadHistoryAsScript(FileOpenSelector s) throws IOException, OperationCanceledException
GlobalModel
loadHistoryAsScript
in interface GlobalModel
IOException
OperationCanceledException
public void clearHistory()
GlobalModel
clearHistory
in interface GlobalModel
public void saveHistory(FileSaveSelector selector) throws IOException
GlobalModel
saveHistory
in interface GlobalModel
selector
- File to save to
IOException
public void saveHistory(FileSaveSelector selector, String editedVersion) throws IOException
GlobalModel
saveHistory
in interface GlobalModel
selector
- File to save toeditedVersion
- Edited verison of the history which will be saved to file instead of the lines saved in the
history. The saved file will still include any tags needed to recognize it as a saved interactions file.
IOException
public String getHistoryAsStringWithSemicolons()
GlobalModel
getHistoryAsStringWithSemicolons
in interface GlobalModel
public String getHistoryAsString()
GlobalModel
getHistoryAsString
in interface GlobalModel
public void printDebugMessage(String s)
GlobalModel
printDebugMessage
in interface GlobalModel
public int getDebugPort() throws IOException
GlobalModel
getDebugPort
in interface GlobalModel
IOException
- if unable to get a valid port number.public Iterable<File> getClassPath()
GlobalModel
getClassPath
in interface GlobalModel
public PageFormat getPageFormat()
getPageFormat
in interface GlobalModel
public void setPageFormat(PageFormat format)
setPageFormat
in interface GlobalModel
public void quit()
GlobalModel
quit
in interface GlobalModel
public void forceQuit()
GlobalModel
forceQuit
in interface GlobalModel
public int getDocumentCount()
GlobalModel
getDocumentCount
in interface GlobalModel
public int getNumCompErrors()
GlobalModel
getNumCompErrors
in interface GlobalModel
public void setNumCompErrors(int num)
GlobalModel
setNumCompErrors
in interface GlobalModel
public OpenDefinitionsDocument getODDForDocument(AbstractDocumentInterface doc)
GlobalModel
getODDForDocument
in interface GlobalModel
public List<OpenDefinitionsDocument> getNonProjectDocuments()
GlobalModel
getNonProjectDocuments
in interface GlobalModel
public List<OpenDefinitionsDocument> getProjectDocuments()
GlobalModel
getProjectDocuments
in interface GlobalModel
public boolean isProjectActive()
isProjectActive
in interface GlobalModel
public File getProjectFile()
getProjectFile
in interface GlobalModel
public File[] getProjectFiles()
getProjectFiles
in interface GlobalModel
public File getProjectRoot()
getProjectRoot
in interface GlobalModel
public void setProjectFile(File f)
GlobalModel
setProjectFile
in interface GlobalModel
public void setProjectRoot(File f)
GlobalModel
setProjectRoot
in interface GlobalModel
public File getBuildDirectory()
getBuildDirectory
in interface GlobalModel
public void setBuildDirectory(File f)
GlobalModel
setBuildDirectory
in interface GlobalModel
public File getMasterWorkingDirectory()
getMasterWorkingDirectory
in interface GlobalModel
public File getWorkingDirectory()
getWorkingDirectory
in interface GlobalModel
public void setWorkingDirectory(File f)
GlobalModel
setWorkingDirectory
in interface GlobalModel
public void setMainClass(File f)
GlobalModel
setMainClass
in interface GlobalModel
public File getMainClass()
GlobalModel
getMainClass
in interface GlobalModel
public Iterable<File> getExtraClassPath()
GlobalModel
getExtraClassPath
in interface GlobalModel
public void setExtraClassPath(Iterable<File> cp)
GlobalModel
setExtraClassPath
in interface GlobalModel
public void setCreateJarFile(File f)
GlobalModel
setCreateJarFile
in interface GlobalModel
public File getCreateJarFile()
GlobalModel
getCreateJarFile
in interface GlobalModel
public void setCreateJarFlags(int f)
GlobalModel
setCreateJarFlags
in interface GlobalModel
public int getCreateJarFlags()
GlobalModel
getCreateJarFlags
in interface GlobalModel
public boolean inProject(File f)
GlobalModel
inProject
in interface GlobalModel
public boolean inProjectPath(OpenDefinitionsDocument doc)
GlobalModel
inProjectPath
in interface GlobalModel
public void setProjectChanged(boolean changed)
GlobalModel
setProjectChanged
in interface GlobalModel
public boolean isProjectChanged()
GlobalModel
isProjectChanged
in interface GlobalModel
public boolean hasOutOfSyncDocuments()
hasOutOfSyncDocuments
in interface GlobalModel
public boolean hasOutOfSyncDocuments(List<OpenDefinitionsDocument> lod)
hasOutOfSyncDocuments
in interface GlobalModel
public void cleanBuildDirectory()
GlobalModel
cleanBuildDirectory
in interface GlobalModel
public List<File> getClassFiles()
getClassFiles
in interface GlobalModel
public OpenDefinitionsDocument getDocumentForFile(File file) throws IOException
GlobalModel
getDocumentForFile
in interface GlobalModel
file
- File contained by the document to be returned
IOException
public boolean isAlreadyOpen(File file)
public List<OpenDefinitionsDocument> getOpenDefinitionsDocuments()
GlobalModel
getOpenDefinitionsDocuments
in interface GlobalModel
public List<OpenDefinitionsDocument> getAuxiliaryDocuments()
getAuxiliaryDocuments
in interface GlobalModel
public List<OpenDefinitionsDocument> getSortedOpenDefinitionsDocuments()
public boolean hasModifiedDocuments()
GlobalModel
hasModifiedDocuments
in interface GlobalModel
public boolean hasModifiedDocuments(List<OpenDefinitionsDocument> lod)
GlobalModel
hasModifiedDocuments
in interface GlobalModel
public boolean hasUntitledDocuments()
GlobalModel
hasUntitledDocuments
in interface GlobalModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |