public class RightHandSide extends Object implements JapeConstants, Serializable
ALL_STYLE, APPELT_STYLE, BRILL_STYLE, DEFAULT_PRIORITY, FIRST_STYLE, INDENT_PADDING, KLEENE_PLUS, KLEENE_QUERY, KLEENE_STAR, MULTI_SPAN_BINDING, NO_BINDING, NO_KLEENE_OP, ONCE_STYLE, SINGLE_SPAN_BINDING
Constructor and Description |
---|
RightHandSide(RightHandSide existingRhs)
Construction from an existing RHS
|
RightHandSide(String transducerName,
String ruleName,
LeftHandSide lhs,
String importblock)
Construction from the transducer name, rule name and the LHS.
|
Modifier and Type | Method and Description |
---|---|
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 |
createActionClass()
Create the action class and an instance of it.
|
void |
finish(GateClassLoader classloader) |
String |
getActionClassName() |
String |
getActionClassString()
Returns the string for the java code
|
String |
getPhaseName() |
String |
getRuleName() |
void |
instantiateActionClass()
Create an instance of the action class.
|
void |
setPhaseName(String phaseName) |
void |
setRuleName(String ruleName) |
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,
Map<String,AnnotationSet> bindings,
AnnotationSet inputAS,
AnnotationSet outputAS,
Ontology ontology,
ActionContext actionContext)
Makes changes to the document, using LHS bindings.
|
public RightHandSide(String transducerName, String ruleName, LeftHandSide lhs, String importblock)
public RightHandSide(RightHandSide existingRhs)
public String getActionClassString()
public String getActionClassName()
public void finish(GateClassLoader classloader)
public void createActionClass() throws JapeException
JapeException
public void instantiateActionClass() throws JapeException
JapeException
public static void cleanUp()
public void transduce(Document doc, Map<String,AnnotationSet> bindings, AnnotationSet inputAS, AnnotationSet outputAS, Ontology ontology, ActionContext actionContext) throws JapeException
JapeException
public void setPhaseName(String phaseName)
public String getPhaseName()
public void setRuleName(String ruleName)
public String getRuleName()