|
|
@ -41,43 +41,27 @@ public class DeclarationBool extends DeclarationType |
|
|
setType(TypeBool.getInstance()); |
|
|
setType(TypeBool.getInstance()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Return the default start value for a variable of this type. |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
@Override |
|
|
public Expression getDefaultStart() |
|
|
public Expression getDefaultStart() |
|
|
{ |
|
|
{ |
|
|
return Expression.False(); |
|
|
return Expression.False(); |
|
|
} |
|
|
} |
|
|
/*TODO |
|
|
|
|
|
public Expression getStart(ModulesFile parent) |
|
|
|
|
|
{ |
|
|
|
|
|
if (parent != null && parent.getInitialStates() != null) |
|
|
|
|
|
return null; |
|
|
|
|
|
|
|
|
|
|
|
return start != null ? start : Expression.False(); |
|
|
|
|
|
}*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Methods required for ASTElement: |
|
|
// Methods required for ASTElement: |
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Visitor method. |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
@Override |
|
|
public Object accept(ASTVisitor v) throws PrismLangException |
|
|
public Object accept(ASTVisitor v) throws PrismLangException |
|
|
{ |
|
|
{ |
|
|
return v.visit(this); |
|
|
return v.visit(this); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Convert to string. |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
@Override |
|
|
public String toString() |
|
|
public String toString() |
|
|
{ |
|
|
{ |
|
|
return "bool"; |
|
|
return "bool"; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Perform a deep copy. |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
@Override |
|
|
public ASTElement deepCopy() |
|
|
public ASTElement deepCopy() |
|
|
{ |
|
|
{ |
|
|
DeclarationBool ret = new DeclarationBool(); |
|
|
DeclarationBool ret = new DeclarationBool(); |
|
|
|