gnu.jemacs.buffer
Class Mode
java.lang.Object
gnu.mapping.Procedure
gnu.mapping.Procedure0
gnu.expr.ModuleBody
gnu.jemacs.buffer.Mode
- All Implemented Interfaces:
- Named
- Direct Known Subclasses:
- ProcessMode
public class Mode
- extends ModuleBody
Represents a "mode instance" - a mode active for a specific Buffer
.
Constructor Summary |
Mode()
|
Method Summary |
java.lang.Object |
apply0(ModuleMethod proc)
A subclass will typically override this like:
switch (method.selector) {
case 3: return function3();
case 5: return function5();
default: super.apply0(method);
} |
java.lang.Object |
apply1(ModuleMethod proc,
java.lang.Object arg1)
|
java.lang.Object |
apply2(ModuleMethod proc,
java.lang.Object arg1,
java.lang.Object arg2)
|
java.lang.Object |
apply3(ModuleMethod proc,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
|
java.lang.Object |
apply4(ModuleMethod proc,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4)
|
java.lang.Object |
applyN(ModuleMethod proc,
java.lang.Object[] args)
|
Buffer |
getBuffer()
|
Methods inherited from class gnu.expr.ModuleBody |
apply, apply0, getMainPrintValues, match0, match1, match2, match3, match4, matchN, processArgs, run, run, run, runAsMain, runAsMain, runCleanup, setMainPrintValues |
Methods inherited from class gnu.mapping.Procedure |
apply, check0, check1, check2, check3, check4, checkArgCount, checkN, getName, getProperty, getSetter, getSymbol, match0, match1, match2, match3, match4, matchN, maxArgs, minArgs, name, removeProperty, set0, set1, setN, setName, setProperty, setProperty, setSetter, setSymbol, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
buffer
public Buffer buffer
next
public Mode next
Mode
public Mode()
getBuffer
public Buffer getBuffer()
apply0
public java.lang.Object apply0(ModuleMethod proc)
- Description copied from class:
ModuleBody
- A subclass will typically override this like:
switch (method.selector) {
case 3: return function3();
case 5: return function5();
default: super.apply0(method);
}
- Overrides:
apply0
in class ModuleBody
apply1
public java.lang.Object apply1(ModuleMethod proc,
java.lang.Object arg1)
- Overrides:
apply1
in class ModuleBody
apply2
public java.lang.Object apply2(ModuleMethod proc,
java.lang.Object arg1,
java.lang.Object arg2)
- Overrides:
apply2
in class ModuleBody
apply3
public java.lang.Object apply3(ModuleMethod proc,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
- Overrides:
apply3
in class ModuleBody
apply4
public java.lang.Object apply4(ModuleMethod proc,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4)
- Overrides:
apply4
in class ModuleBody
applyN
public java.lang.Object applyN(ModuleMethod proc,
java.lang.Object[] args)
- Overrides:
applyN
in class ModuleBody