public class IntentCorrect extends Intent
Intent.Type
baseNode, contextChain, endingVertex, grammarContext, ID, initialVertex, nodeRepair, nodeSequence, SEPARATOR
Constructor and Description |
---|
IntentCorrect(java.util.List<Node> nodeSequence,
Context grammarContext)
Creates a new instance of the correct correction intent.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
computeIdentifierPostfix()
Computes the postfix part of the intent local identifier.
|
protected java.lang.String |
computeIntentSignature()
Computes the intent signature string.
|
static void |
generateIntentFix(java.util.List<Mend> sequenceMends)
Generates all mends for the particular intent repair of correct type.
|
java.util.Set<Intent.Type> |
getAllowedIntents()
Returns the set of correction intent types allowed for nesting.
|
Intent.Type |
getIntentType()
Returns the type of the given correction intent.
|
computeChainSignature, computeIdentifierPrefix, computeIntentIdentifier, equals, generateNestedIntents, getBaseNode, getContextChain, getEndingVertex, getGlobalSignature, getGrammarContext, getInitialVertex, getLastStratum, getLocalIdentifier, getNodeRepair, getNodesSequence, getSequenceLength, getSourceState, getTargetStates, getUniqueLabel, hashCode, printDebugDump, resetIdProvider
public Intent.Type getIntentType()
Intent
getIntentType
in class Intent
public java.util.Set<Intent.Type> getAllowedIntents()
Intent
getAllowedIntents
in class Intent
protected java.lang.String computeIntentSignature()
Intent
computeIntentSignature
in class Intent
protected java.lang.String computeIdentifierPostfix()
Intent
computeIdentifierPostfix
in class Intent
public static void generateIntentFix(java.util.List<Mend> sequenceMends)
sequenceMends
- Set of all mends of the sequence repair.