?? not.java
字號:
package com.javapatterns.interpreter;
public class Not extends Expression
{
private Expression exp;
public Not(Expression exp)
{
this.exp = exp;
}
public boolean interpret(Context ctx)
{
return !exp.interpret(ctx);
}
public boolean equals(Object o)
{
if (o != null && o instanceof Not)
{
return this.exp.equals(((Not)o).exp);
}
return false;
}
public int hashCode()
{
return (this.toString()).hashCode();
}
public String toString()
{
return " (Not " + exp.toString() + ")";
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -