|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectscale.common.Root
scale.score.Note
scale.score.expr.Expr
scale.score.expr.BinaryExpr
scale.score.expr.MatchExpr
public abstract class MatchExpr
This class represents expressions that compare two values and return "true" or "false".
$Id: CompareMode.java,v 1.10 2007-10-18 16:55:30 burrill Exp $
Copyright 2007 by the
Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.
Field Summary |
---|
Fields inherited from class scale.score.expr.Expr |
---|
fpReorder, SE_DOMAIN, SE_NONE, SE_OVERFLOW, SE_STATE |
Constructor Summary | |
---|---|
MatchExpr(Type t,
Expr e1,
Expr e2)
|
Method Summary | |
---|---|
abstract MatchExpr |
complement()
Return the complement expression. |
abstract Expr |
create(Type t,
Expr e1,
Expr e2)
|
abstract CompareMode |
getMatchOp()
Return the type of comparison. |
boolean |
hasTrueFalseResult()
Return true if the result of the expression is either true (1) or false (0). |
boolean |
isMatchExpr()
Return true if this is a match expression. |
Expr |
reduce()
Return a simplied equivalent expression. |
Methods inherited from class scale.score.Note |
---|
getChord, getEssentialUse, setAnnotationLevel, setReportLevel, toString, visit |
Methods inherited from class scale.common.Root |
---|
addAnnotation, allAnnotations, allMatchingAnnotations, getAnnotation, getDisplayName, getDisplayString, getNodeCount, getNodeID, hasAnnotation, hasEqualAnnotation, hashCode, removeAnnotation, removeAnnotations, toStringAnnotations, toStringClass, trace, trace, trace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MatchExpr(Type t, Expr e1, Expr e2)
Method Detail |
---|
public final boolean isMatchExpr()
isMatchExpr
in class Expr
public abstract CompareMode getMatchOp()
public abstract MatchExpr complement()
public boolean hasTrueFalseResult()
hasTrueFalseResult
in class Expr
public abstract Expr create(Type t, Expr e1, Expr e2)
public Expr reduce()
Expr
reduce
in class Expr
SubscriptExpr.lower()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |