|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gate.jape.RightHandSide
The RHS of a CPSL rule. The action part. Contains an inner class created from the code in the grammar RHS.
Fields inherited from interface gate.jape.JapeConstants |
APPELT_STYLE, BRILL_STYLE, DEFAULT_PRIORITY, FIRST_STYLE, INDENT_PADDING, KLEENE_PLUS, KLEENE_QUERY, KLEENE_STAR, MULTI_SPAN_BINDING, NO_BINDING, NO_KLEENE_OP, SINGLE_SPAN_BINDING |
Constructor Summary | |
RightHandSide(String transducerName,
String ruleName,
LeftHandSide lhs)
Construction from the transducer name, rule name and the LHS. |
Method Summary | |
void |
addBlock(String anonymousBlock)
Add an anonymous block to the action class |
void |
addBlock(String name,
String namedBlock)
Add a named block to the action class |
static void |
cleanUp()
Remove class files created for actions. |
void |
compileActionClass()
Compile the action class. |
void |
createActionClass()
Create the action class and an instance of it. |
void |
defineActionClass()
Define the action class (after deserialisation). |
String |
getActionClassString()
For debugging. |
void |
instantiateActionClass()
Create an instance of the action class. |
void |
loadActionClass()
Load the action class. |
void |
readActionClass()
Read action class bytes, for storing during serialisation. |
static void |
setActionClassNumber(int n)
Allow setting of the initial action class number. |
String |
shortDesc()
Create a string representation of the object. |
String |
toString()
Create a string representation of the object. |
String |
toString(String pad)
Create a string representation of the object. |
void |
transduce(Document doc,
AnnotationSet annotations,
Map bindings)
Makes changes to the document, using LHS bindings. |
void |
writeActionClass()
Write out the action class file. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RightHandSide(String transducerName, String ruleName, LeftHandSide lhs)
Method Detail |
public static void setActionClassNumber(int n)
public String getActionClassString()
public void addBlock(String anonymousBlock)
public void addBlock(String name, String namedBlock)
public void createActionClass() throws JapeException
public void writeActionClass() throws JapeException
public void compileActionClass() throws JapeException
public void readActionClass() throws JapeException
public void loadActionClass() throws JapeException
public void defineActionClass() throws JapeException
public void instantiateActionClass() throws JapeException
public static void cleanUp()
public void transduce(Document doc, AnnotationSet annotations, Map bindings) throws JapeException
public String toString()
toString
in class Object
public String toString(String pad)
public String shortDesc()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |