public class TypeExtensionWithCondition extends TypeExtension
| Modifier and Type | Field and Description |
|---|---|
private RegEx |
conditionExpression
The value of the variable.
|
private NamedVariableType |
conditionIdentifier
The variable is used in the Typextensioncondition.
|
private TypeFileManager |
typeFileManager
The reference to the typeFileManager to get the VariableAssigment.
|
| Constructor and Description |
|---|
TypeExtensionWithCondition(NamedVariableType variableIdentifier,
TypeFileManager typeFileManager,
RegEx expression,
NamedVariableType conditionIdentifier,
RegEx condition) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(TypeExtensionVisitor vis)
accept method for visitor pattern.
|
void |
checkValidation()
Check if condition of TypeExentionVariable is fulfilled.
|
(package private) java.lang.String |
convertExpression(java.lang.String expression)
Convert expression, if whole expressions are evaluated, this method will be dropped.
|
private boolean |
executeCheckValidation()
Creates an automat to check the condition.
|
RegEx |
getConditionExpression() |
NamedVariableType |
getConditionIdentifier()
get the getConditionIdentifier.
|
RegEx |
getExpression()
Return the field expression.
|
NamedVariableType |
getExtensionIdentifier() |
java.lang.String |
getMeldung() |
TypeFileManager |
getTypeFileManager()
get the TypeFileManager.
|
void |
setConditionExpression(RegEx regEx) |
void |
setConditionIdentifier(NamedVariableType namedVariableType) |
void |
setExpression(RegEx expression) |
void |
setMeldung(java.lang.String meldung) |
isVariableConditionFlag, setVariableConditionFlag, toStringResolvedmatchesprivate NamedVariableType conditionIdentifier
private RegEx conditionExpression
private final TypeFileManager typeFileManager
public TypeExtensionWithCondition(NamedVariableType variableIdentifier, TypeFileManager typeFileManager, RegEx expression, NamedVariableType conditionIdentifier, RegEx condition)
variableIdentifier - the used Variable in TypExtension.typeFileManager - the reference to the typeFileManager.expression - the reference to the expressoion.conditionIdentifier - the reference to the conditionIdentifier.condition - the reference to the condition.public RegEx getExpression()
AbstractTypegetExpression in class AbstractTypepublic void setExpression(RegEx expression)
setExpression in class AbstractTypeexpression - the regEx to setpublic java.lang.String getMeldung()
getMeldung in class TypeExtensionpublic void setMeldung(java.lang.String meldung)
setMeldung in class TypeExtensionmeldung - the meldung to setpublic NamedVariableType getExtensionIdentifier()
getExtensionIdentifier in class TypeExtensionpublic RegEx getConditionExpression()
public void setConditionExpression(RegEx regEx)
regEx - the value to setpublic NamedVariableType getConditionIdentifier()
public void setConditionIdentifier(NamedVariableType namedVariableType)
namedVariableType - the variable to setpublic TypeFileManager getTypeFileManager()
public void accept(TypeExtensionVisitor vis) throws TypeDoesNotExistException, TypeExceptions
TypeExtensionaccept in class TypeExtensionvis - the visitor.TypeDoesNotExistException - TypeDoesNotExistExceptionReferenceIsUnresolvedException - ReferenceIsUnresolvedExceptionTypeExceptions - TypeExceptionspublic void checkValidation()
throws java.lang.IllegalArgumentException,
ReferenceIsUnresolvedException
ReferenceIsUnresolvedException - the ReferenceIsUnresolvedExceptionjava.lang.IllegalArgumentException - the IllegalArgumentExceptionprivate boolean executeCheckValidation()
throws java.lang.IllegalArgumentException,
ReferenceIsUnresolvedException
ReferenceIsUnresolvedException - the ReferenceIsUnresolvedExceptionjava.lang.IllegalArgumentException - the IllegalArgumentExceptionjava.lang.String convertExpression(java.lang.String expression)
expression - expression to be converted