001: /*
002: * JBoss, Home of Professional Open Source
003: * Copyright 2005, JBoss Inc., and individual contributors as indicated
004: * by the @authors tag. See the copyright.txt in the distribution for a
005: * full listing of individual contributors.
006: *
007: * This is free software; you can redistribute it and/or modify it
008: * under the terms of the GNU Lesser General Public License as
009: * published by the Free Software Foundation; either version 2.1 of
010: * the License, or (at your option) any later version.
011: *
012: * This software is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * Lesser General Public License for more details.
016: *
017: * You should have received a copy of the GNU Lesser General Public
018: * License along with this software; if not, write to the Free
019: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
020: * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
021: */
022:
023: package org.jboss.profiler.jvmti;
024:
025: public class ReferenceDataPoint {
026: public ReferenceDataPoint(long referenceHolder,
027: long referencedObject, long classTag, long index,
028: long method, byte referenceType) {
029: this .referenceHolder = referenceHolder;
030: this .referencedObject = referencedObject;
031: this .classTag = classTag;
032: this .index = index;
033: this .method = method;
034: this .referenceType = referenceType;
035: }
036:
037: private long referenceHolder;
038: private long referencedObject;
039: private long classTag;
040: private long index;
041: private long method;
042: private byte referenceType;
043:
044: public long getIndex() {
045: return index;
046: }
047:
048: public void setIndex(long index) {
049: this .index = index;
050: }
051:
052: public long getMethod() {
053: return method;
054: }
055:
056: public void setMethod(long method) {
057: this .method = method;
058: }
059:
060: public long getReferencedObject() {
061: return referencedObject;
062: }
063:
064: public void setReferencedObject(long referencedObject) {
065: this .referencedObject = referencedObject;
066: }
067:
068: public long getReferenceHolder() {
069: return referenceHolder;
070: }
071:
072: public void setReferenceHolder(long referenceHolder) {
073: this .referenceHolder = referenceHolder;
074: }
075:
076: public byte getReferenceType() {
077: return referenceType;
078: }
079:
080: public void setReferenceType(byte referenceType) {
081: this .referenceType = referenceType;
082: }
083:
084: public long getClassTag() {
085: return classTag;
086: }
087:
088: public void setClassTag(long classTag) {
089: this .classTag = classTag;
090: }
091:
092: public String toString() {
093: return super .toString() + " {referenceHolder="
094: + referenceHolder + "\n referencedObject="
095: + referencedObject + "\n classTag=" + classTag
096: + "\n index=" + index + "\n method=" + method
097: + "\n referenceType=" + referenceType + "}";
098: }
099:
100: }
|