01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: *
15: * See the License for the specific language governing permissions and
16: * limitations under the License.
17: */
18:
19: /**
20: * @author Aleksey V. Yantsen
21: * @version $Revision: 1.2 $
22: */
23:
24: /**
25: * Created on 11.29.2004
26: */package org.apache.harmony.jpda.tests.framework.jdwp;
27:
28: /**
29: * This class provides description of event request.
30: */
31: public class Event {
32:
33: public byte eventKind;
34: public byte suspendPolicy;
35:
36: /** List of event modifiers. */
37: public EventMod[] mods;
38: public int modifiers;
39:
40: /**
41: * Creates new instance with empty data.
42: */
43: public Event() {
44: eventKind = 0;
45: suspendPolicy = 0;
46: modifiers = -1;
47: mods = null;
48: }
49:
50: /**
51: * Create new instance with specified data.
52: */
53: public Event(byte eventKind, byte suspendPolicy, EventMod[] mods) {
54: this.eventKind = eventKind;
55: this.suspendPolicy = suspendPolicy;
56: this.modifiers = mods.length;
57: this.mods = mods;
58: }
59: }
|