本文整理汇总了Java中com.strobel.core.StringUtilities.equals方法的典型用法代码示例。如果您正苦于以下问题:Java StringUtilities.equals方法的具体用法?Java StringUtilities.equals怎么用?Java StringUtilities.equals使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.strobel.core.StringUtilities
的用法示例。
在下文中一共展示了StringUtilities.equals方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: makeWildcard
import com.strobel.core.StringUtilities; //导入方法依赖的package包/类
public WildcardType makeWildcard(
final FieldTypeSignature superBound,
final FieldTypeSignature extendsBound) {
if (superBound == null || superBound == BottomSignature.make()) {
if (extendsBound == null ||
(extendsBound instanceof SimpleClassTypeSignature &&
StringUtilities.equals("java.lang.Object", (
(SimpleClassTypeSignature) extendsBound)
.getName()))) {
return WildcardType.unbounded();
}
return WildcardType.makeExtends(makeTypeBound(extendsBound));
} else {
return WildcardType.makeSuper(makeTypeBound(superBound));
}
}
示例2: findTypeVariable
import com.strobel.core.StringUtilities; //导入方法依赖的package包/类
public GenericParameter findTypeVariable(final String name) {
for (int i = _tempScope.size() - 1; i >= 0; i--) {
final GenericParameter genericParameter = _tempScope.get(i);
if (genericParameter != null && StringUtilities.equals
(genericParameter.getName(), name)) {
return genericParameter;
}
}
final IGenericContext scope = getScope();
if (scope != null) {
return scope.findTypeVariable(name);
}
return null;
}
示例3: findInnerClassEntry
import com.strobel.core.StringUtilities; //导入方法依赖的package包/类
private InnerClassEntry findInnerClassEntry(final String name) {
if (_owner == null) {
return null;
}
final String internalName = name.replace('.', '/');
final SourceAttribute attribute = SourceAttribute.find(AttributeNames
.InnerClasses, _owner.getSourceAttributes());
if (attribute instanceof InnerClassesAttribute) {
final List<InnerClassEntry> entries = ((InnerClassesAttribute)
attribute).getEntries();
for (final InnerClassEntry entry : entries) {
if (StringUtilities.equals(entry.getInnerClassName(),
internalName)) {
return entry;
}
}
}
return null;
}
示例4: equiMethods
import com.strobel.core.StringUtilities; //导入方法依赖的package包/类
private static boolean equiMethods(final MethodReference left, final MethodReference right) {
return StringUtilities.equals(left.getFullName(), right.getFullName()) &&
StringUtilities.equals(left.getErasedSignature(), right.getErasedSignature());
}
示例5: equiFields
import com.strobel.core.StringUtilities; //导入方法依赖的package包/类
private static boolean equiFields(final FieldReference left, final FieldReference right) {
return StringUtilities.equals(left.getFullName(), right.getFullName());
}