001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: *
015: * See the License for the specific language governing permissions and
016: * limitations under the License.
017: */
018:
019: /**
020: * @author Aleksey V. Yantsen
021: * @version $Revision: 1.2 $
022: */
023:
024: /**
025: * Created on 11.29.2004
026: */package org.apache.harmony.jpda.tests.framework.jdwp;
027:
028: import org.apache.harmony.jpda.tests.framework.jdwp.Location;
029:
030: /**
031: * This class provides specific event modifiers for event request.
032: */
033: public class EventMod {
034:
035: public class ModKind {
036: public static final byte Count = 1;
037:
038: public static final byte Conditional = 2;
039:
040: public static final byte ThreadOnly = 3;
041:
042: public static final byte ClassOnly = 4;
043:
044: public static final byte ClassMatch = 5;
045:
046: public static final byte ClassExclude = 6;
047:
048: public static final byte LocationOnly = 7;
049:
050: public static final byte ExceptionOnly = 8;
051:
052: public static final byte FieldOnly = 9;
053:
054: public static final byte Step = 10;
055:
056: public static final byte InstanceOnly = 11;
057: }
058:
059: public byte modKind;
060: public int count;
061: public int exprID;
062:
063: // threadID
064: public long thread;
065:
066: // referenceTypeID
067: public long clazz;
068:
069: public String classPattern;
070:
071: public Location loc;
072:
073: // referenceTypeID
074: public long exceptionOrNull;
075:
076: public boolean caught;
077:
078: public boolean uncaught;
079:
080: // referenceTypeID
081: public long declaring;
082:
083: // fieldID
084: public long fieldID;
085:
086: public int size;
087:
088: public int depth;
089:
090: // objectID
091: public long instance;
092:
093: /**
094: * Creates new instance with empty data.
095: */
096: public EventMod() {
097: modKind = 0;
098: count = -1;
099: exprID = -1;
100: // threadID
101: thread = -1;
102: // referenceTypeID
103: clazz = -1;
104: classPattern = new String();
105: loc = new Location();
106: // referenceTypeID
107: exceptionOrNull = -1;
108: caught = false;
109: uncaught = false;
110: // referenceTypeID
111: declaring = -1;
112: // fieldID
113: fieldID = -1;
114: size = -1;
115: depth = -1;
116: // objectID
117: instance = -1;
118: }
119: }
|