📄 and.java
字号:
package test;
public class AND extends NonLeaf{
public AND(AND q)
{
super(q);
this.operator=new String("*");
}
public AND()
{
super("*");
}
public C_Event work(NonLeaf n,Node n1)//n父结点;n1子结点 chronic
{
C_Event ce=null;
Node n2;
if(n1==n.getlchild()){
n2=n.getrchild();
}else n2=n.getlchild();
Leaf q1,q2;
q1=(Leaf)n1;
q2=(Leaf)n2;
//
if(q2.getevents().size()!=0){
ce=new C_Event(q1.getevents().removeFirst(),q2.getevents().removeFirst(),n);
}
if(ce!=null) tran[2]+=ce.getel().size();
return ce;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -