|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.overturetool.vdmj.patterns.Pattern
org.overturetool.vdmj.patterns.ConcatenationPattern
public class ConcatenationPattern
| Field Summary | |
|---|---|
Pattern |
left
|
Pattern |
right
|
| Fields inherited from class org.overturetool.vdmj.patterns.Pattern |
|---|
location |
| Constructor Summary | |
|---|---|
ConcatenationPattern(Pattern left,
LexLocation location,
Pattern right)
|
|
| Method Summary | |
|---|---|
DefinitionList |
getDefinitions(Type type,
NameScope scope)
Get a list of definitions for the pattern's variables. |
int |
getLength()
|
Expression |
getMatchingExpression()
An expression that matches the pattern. |
NameValuePairList |
getNamedValues(Value expval,
Context ctxt)
Get a name/value pair list for the pattern's variables. |
Type |
getPossibleType()
Get the type(s) that could match this pattern. |
LexNameList |
getVariableNames()
|
boolean |
isConstrained()
|
java.lang.String |
toString()
|
void |
typeResolve(Environment env)
Resolve any types that the pattern may use by looking up the type names in the environment passed. |
void |
unResolve()
Clear the recursive type resolution flag. |
| Methods inherited from class org.overturetool.vdmj.patterns.Pattern |
|---|
detail, detail2, patternFail, patternFail, report |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final Pattern left
public final Pattern right
| Constructor Detail |
|---|
public ConcatenationPattern(Pattern left,
LexLocation location,
Pattern right)
| Method Detail |
|---|
public void unResolve()
Pattern
unResolve in class Patternpublic void typeResolve(Environment env)
Pattern
typeResolve in class Patternenv - The environment to resolve types.public java.lang.String toString()
toString in class Patternpublic Expression getMatchingExpression()
Pattern
getMatchingExpression in class Pattern
public DefinitionList getDefinitions(Type type,
NameScope scope)
Pattern
getDefinitions in class Patternpublic int getLength()
getLength in class Patternpublic LexNameList getVariableNames()
getVariableNames in class Pattern
public NameValuePairList getNamedValues(Value expval,
Context ctxt)
throws PatternMatchException
Pattern
getNamedValues in class PatternPatternMatchExceptionpublic Type getPossibleType()
Pattern
getPossibleType in class Patternpublic boolean isConstrained()
isConstrained in class Pattern
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||