public class LeftRightContext extends Context
EMPTY_CONTEXT
Modifier and Type | Method and Description |
---|---|
static LeftRightContext |
get(Unit[] leftContext,
Unit[] rightContext)
Factory method for creating a left/right context
|
static java.lang.String |
getContextName(Unit[] context)
Gets the context name for a particular array of units
|
Unit[] |
getLeftContext()
Retrieves the left context for this unit
|
Unit[] |
getRightContext()
Retrieves the right context for this unit
|
boolean |
isPartialMatch(Context context)
Checks to see if there is a partial match with the given context.
|
java.lang.String |
toString()
Provides a string representation of a context
|
public java.lang.String toString()
public static LeftRightContext get(Unit[] leftContext, Unit[] rightContext)
leftContext
- the left context or null if no left contextrightContext
- the right context or null if no right contextpublic Unit[] getLeftContext()
public Unit[] getRightContext()
public static java.lang.String getContextName(Unit[] context)
context
- the contextpublic boolean isPartialMatch(Context context)
isPartialMatch
in class Context
context
- the context to check