本文整理汇总了Java中edu.umd.cs.findbugs.ba.ObjectTypeFactory.getInstance方法的典型用法代码示例。如果您正苦于以下问题:Java ObjectTypeFactory.getInstance方法的具体用法?Java ObjectTypeFactory.getInstance怎么用?Java ObjectTypeFactory.getInstance使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类edu.umd.cs.findbugs.ba.ObjectTypeFactory
的用法示例。
在下文中一共展示了ObjectTypeFactory.getInstance方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: IOStreamFactory
import edu.umd.cs.findbugs.ba.ObjectTypeFactory; //导入方法依赖的package包/类
public IOStreamFactory(String baseClass, String[] uninterestingSubclassList, String bugType) {
this.baseClassType = ObjectTypeFactory.getInstance(baseClass);
this.uninterestingSubclassTypeList = new ObjectType[uninterestingSubclassList.length];
for (int i = 0; i < uninterestingSubclassList.length; ++i) {
this.uninterestingSubclassTypeList[i] = ObjectTypeFactory.getInstance(uninterestingSubclassList[i]);
}
this.bugType = bugType;
}
示例2: getObjectType
import edu.umd.cs.findbugs.ba.ObjectTypeFactory; //导入方法依赖的package包/类
/**
* @return the underlying ObjectType for this Generic Object
*/
public ObjectType getObjectType() {
String cName = ClassName.fromFieldSignature(getSignature());
if (cName == null) {
throw new IllegalStateException("Can't provide ObjectType for " + this);
}
@DottedClassName
String c = ClassName.toDottedClassName(cName);
return ObjectTypeFactory.getInstance(c);
}
示例3: Subtypes2
import edu.umd.cs.findbugs.ba.ObjectTypeFactory; //导入方法依赖的package包/类
/**
* Constructor.
*/
public Subtypes2() {
this.graph = new InheritanceGraph();
this.classDescriptorToVertexMap = new HashMap<ClassDescriptor, ClassVertex>();
this.supertypeSetMap = new MapCache<ClassDescriptor, SupertypeQueryResults>(500);
this.subtypeSetMap = new MapCache<ClassDescriptor, Set<ClassDescriptor>>(500);
this.xclassSet = new HashSet<XClass>();
this.SERIALIZABLE = ObjectTypeFactory.getInstance("java.io.Serializable");
this.CLONEABLE = ObjectTypeFactory.getInstance("java.lang.Cloneable");
this.firstCommonSuperclassQueryCache = new DualKeyHashMap<ReferenceType, ReferenceType, ReferenceType>();
}
示例4: setUp
import edu.umd.cs.findbugs.ba.ObjectTypeFactory; //导入方法依赖的package包/类
@Override
protected void setUp() throws Exception {
super.setUp();
typeSerializable = ObjectTypeFactory.getInstance("java.io.Serializable");
typeClonable = ObjectTypeFactory.getInstance("java.lang.Cloneable");
typeObject = ObjectTypeFactory.getInstance("java.lang.Object");
typeInteger = ObjectTypeFactory.getInstance("java.lang.Integer");
typeString = ObjectTypeFactory.getInstance("java.lang.String");
typeComparable = ObjectTypeFactory.getInstance("java.lang.Comparable");
typeList = ObjectTypeFactory.getInstance("java.util.List");
typeCollection = ObjectTypeFactory.getInstance("java.util.Collection");
typeHashSet = ObjectTypeFactory.getInstance("java.util.HashSet");
typeArrayClonable = new ArrayType(typeClonable, 1);
typeArrayComparable = new ArrayType(typeComparable, 1);
typeArrayObject = new ArrayType(typeObject, 1);
typeArrayInteger = new ArrayType(typeInteger, 1);
typeArrayString = new ArrayType(typeString, 1);
typeArrayArrayObject = new ArrayType(typeObject, 2);
typeArrayArraySerializable = new ArrayType(typeSerializable, 2);
typeArrayArrayString = new ArrayType(typeString, 2);
typeArrayInt = new ArrayType(Type.INT, 1);
typeArrayArrayInt = new ArrayType(Type.INT, 2);
typeArrayArrayArrayInt = new ArrayType(Type.INT, 3);
typeArrayChar = new ArrayType(Type.CHAR, 1);
typeArrayArrayChar = new ArrayType(Type.CHAR, 2);
typeArrayArrayArrayChar = new ArrayType(Type.CHAR, 3);
typeDynamicString = new FindRefComparison.DynamicStringType();
typeStaticString = new FindRefComparison.StaticStringType();
typeParameterString = new FindRefComparison.ParameterStringType();
}
示例5: AnyMethodReturnValueStreamFactory
import edu.umd.cs.findbugs.ba.ObjectTypeFactory; //导入方法依赖的package包/类
public AnyMethodReturnValueStreamFactory(String streamBase) {
this.baseClassType = ObjectTypeFactory.getInstance(streamBase);
this.bugType = null;
}
示例6: Obligation
import edu.umd.cs.findbugs.ba.ObjectTypeFactory; //导入方法依赖的package包/类
public Obligation(@DottedClassName String className, int id) {
this.className = className;
this.type = ObjectTypeFactory.getInstance(className);
this.id = id;
}
示例7: MethodReturnValueStreamFactory
import edu.umd.cs.findbugs.ba.ObjectTypeFactory; //导入方法依赖的package包/类
/**
* Constructor. The Streams created will be marked as uninteresting.
*
* @param baseClass
* base class through which the method will be called (we check
* instances of the base class and all subtypes)
* @param methodName
* name of the method called
* @param methodSig
* signature of the method called
*/
public MethodReturnValueStreamFactory(String baseClass, String methodName, String methodSig) {
this.baseClassType = ObjectTypeFactory.getInstance(baseClass);
this.methodName = methodName;
this.methodSig = methodSig;
this.isUninteresting = true;
}