📄 classinfo.java
字号:
/* * FindBugs - Find Bugs in Java programs * Copyright (C) 2006, University of Maryland * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */package edu.umd.cs.findbugs.classfile.analysis;import edu.umd.cs.findbugs.classfile.ClassDescriptor;import edu.umd.cs.findbugs.classfile.FieldDescriptor;import edu.umd.cs.findbugs.classfile.ICodeBaseEntry;import edu.umd.cs.findbugs.classfile.MethodDescriptor;/** * ClassInfo represents important metadata about a * loaded class, such as its superclass, access flags, codebase entry, * etc. * * @author David Hovemeyer */public class ClassInfo extends ClassNameAndSuperclassInfo { private FieldDescriptor[] fieldDescriptorList; private MethodDescriptor[] methodDescriptorList; private ClassDescriptor[] referencedClassDescriptorList; /** * Constructor. * Does not initialize any fields; setters should be called * before the object is used. */ public ClassInfo() { } /** * * @param classDescriptor ClassDescriptor representing the class name * @param superclassDescriptor ClassDescriptor representing the superclass name * @param interfaceDescriptorList ClassDescriptors representing implemented interface names * @param codeBaseEntry codebase entry class was loaded from * @param accessFlags class's access flags * @param fieldDescriptorList FieldDescriptors of fields defined in the class * @param methodDescriptorList MethodDescriptors of methods defined in the class * @param referencedClassDescriptorList ClassDescriptors of all classes/interfaces referenced by the class */ public ClassInfo( ClassDescriptor classDescriptor, ClassDescriptor superclassDescriptor, ClassDescriptor[] interfaceDescriptorList, ICodeBaseEntry codeBaseEntry, int accessFlags, FieldDescriptor[] fieldDescriptorList, MethodDescriptor[] methodDescriptorList, ClassDescriptor[] referencedClassDescriptorList) { super(classDescriptor, superclassDescriptor, interfaceDescriptorList, codeBaseEntry, accessFlags); this.fieldDescriptorList = fieldDescriptorList; this.methodDescriptorList = methodDescriptorList; this.referencedClassDescriptorList = referencedClassDescriptorList; } /** * @return Returns the fieldDescriptorList. */ public FieldDescriptor[] getFieldDescriptorList() { return fieldDescriptorList; } /** * @return Returns the methodDescriptorList. */ public MethodDescriptor[] getMethodDescriptorList() { return methodDescriptorList; } /** * @return Returns the referencedClassDescriptorList. */ public ClassDescriptor[] getReferencedClassDescriptorList() { return referencedClassDescriptorList; } /** * @param fieldDescriptorList The fieldDescriptorList to set. */ public void setFieldDescriptorList(FieldDescriptor[] fieldDescriptorList) { this.fieldDescriptorList = fieldDescriptorList; } /** * @param methodDescriptorList The methodDescriptorList to set. */ public void setMethodDescriptorList(MethodDescriptor[] methodDescriptorList) { this.methodDescriptorList = methodDescriptorList; } /** * @param referencedClassDescriptorList The referencedClassDescriptorList to set. */ public void setReferencedClassDescriptorList( ClassDescriptor[] referencedClassDescriptorList) { this.referencedClassDescriptorList = referencedClassDescriptorList; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -