|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.teatrove.tea.parsetree.Node
org.teatrove.tea.parsetree.Expression
org.teatrove.tea.parsetree.NotExpression
public class NotExpression
NotExpression is a simple unary expression that calculates the logical "not" value of an expression. The expression it operates on must return a Boolean type.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.teatrove.tea.parsetree.Expression |
|---|
Expression.Conversion |
| Constructor Summary | |
|---|---|
NotExpression(SourceInfo info,
Expression expr)
|
|
| Method Summary | |
|---|---|
Object |
accept(NodeVisitor visitor)
Every subclass of Node must override this method with the following: return visitor.visit(this). |
Object |
clone()
Returns a clone of this Node and all its children. |
void |
convertTo(Type type,
boolean preferCast)
Applies a type conversion to this expression which is chained to all previous conversions. |
Expression |
getExpression()
|
boolean |
isExceptionPossible()
Returns true if an exception can be thrown while executing this Expression. |
void |
setExpression(Expression expr)
|
void |
setType(Type type)
Sets the type of this expression, clearing the conversion chain. |
| Methods inherited from class org.teatrove.tea.parsetree.Expression |
|---|
convertTo, forceConversion, getConversionChain, getInitialType, getType, getValue, isValueKnown, setInitialType |
| Methods inherited from class org.teatrove.tea.parsetree.Node |
|---|
getSourceInfo, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NotExpression(SourceInfo info,
Expression expr)
| Method Detail |
|---|
public Object accept(NodeVisitor visitor)
Nodereturn visitor.visit(this).
accept in class Expressionvisitor - A visitor of this Node
NodeVisitorpublic Object clone()
Node
clone in class Expressionpublic boolean isExceptionPossible()
Expression
isExceptionPossible in class Expression
public void convertTo(Type type,
boolean preferCast)
Expression
convertTo in class Expressiontype - the type to convert to.preferCast - a hint that the conversion should be performed by a
type cast operation, by default is true.public void setType(Type type)
Expression
setType in class Expressionpublic Expression getExpression()
public void setExpression(Expression expr)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||