Update of /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/commun
In directory usw-pr-cvs1:/tmp/cvs-serv21880
Modified Files:
IProf.java
Log Message:
auxiliary function for recognition info objects
Index: IProf.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/commun/IProf.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** IProf.java 2001/11/27 23:56:31 1.6
--- IProf.java 2001/12/03 10:02:23 1.7
***************
*** 1738,1740 ****
--- 1738,1776 ----
}
}
+
+ /** Returns true if operation extracts objets, which have their own info.
+ **(I can call getInfo or getAll with 'includeInfo' argument for them)
+ **
+ ** @param opType type of operation for getAll()/getChanged() methods
+ **
+ ** @return true if operation extracts objets, which have their own info.
+ **
+ ** @see getChanged(), getData(), getAll(), getInfo()
+ **/
+ public static boolean isObjWithInfo( int opType ) {
+ switch( opType) {
+
+ case CLASSES:
+ case METHODS:
+ case CLASS_METHODS:
+ case CPU_METHOD_TRACES:
+ case ALLOC_METHOD_TRACES:
+ case MON_METHOD_TRACES:
+ case CPU_TRACES:
+ case ALLOC_TRACES:
+ case MON_TRACES:
+ case OBJECT_TYPES:
+ case GROUPS_OF_THREADS:
+ case GROUP_THREADS:
+ case THREADS:
+ //??
+ case CLASS_FIELDS_STATICS:
+ case CLASS_FIELDS_INSTANCES:
+
+ return true;
+
+ default:
+ return false;
+ }
+ }
};
|