当前位置: 首页>>代码示例>>Java>>正文


Java ImmutableUtils类代码示例

本文整理汇总了Java中org.jf.util.ImmutableUtils的典型用法代码示例。如果您正苦于以下问题:Java ImmutableUtils类的具体用法?Java ImmutableUtils怎么用?Java ImmutableUtils使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ImmutableUtils类属于org.jf.util包,在下文中一共展示了ImmutableUtils类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: ImmutableClassDef

import org.jf.util.ImmutableUtils; //导入依赖的package包/类
public ImmutableClassDef(@Nonnull String type,
                         int accessFlags,
                         @Nullable String superclass,
                         @Nullable ImmutableSet<String> interfaces,
                         @Nullable String sourceFile,
                         @Nullable ImmutableSet<? extends ImmutableAnnotation> annotations,
                         @Nullable ImmutableSortedSet<? extends ImmutableField> staticFields,
                         @Nullable ImmutableSortedSet<? extends ImmutableField> instanceFields,
                         @Nullable ImmutableSortedSet<? extends ImmutableMethod> directMethods,
                         @Nullable ImmutableSortedSet<? extends ImmutableMethod> virtualMethods) {
    this.type = type;
    this.accessFlags = accessFlags;
    this.superclass = superclass;
    this.interfaces = ImmutableUtils.nullToEmptySet(interfaces);
    this.sourceFile = sourceFile;
    this.annotations = ImmutableUtils.nullToEmptySet(annotations);
    this.staticFields = ImmutableUtils.nullToEmptySortedSet(staticFields);
    this.instanceFields = ImmutableUtils.nullToEmptySortedSet(instanceFields);
    this.directMethods = ImmutableUtils.nullToEmptySortedSet(directMethods);
    this.virtualMethods = ImmutableUtils.nullToEmptySortedSet(virtualMethods);
}
 
开发者ID:CvvT,项目名称:andbg,代码行数:22,代码来源:ImmutableClassDef.java

示例2: ImmutableClassDef

import org.jf.util.ImmutableUtils; //导入依赖的package包/类
public ImmutableClassDef( String type,
                         int accessFlags,
                          String superclass,
                          ImmutableList<String> interfaces,
                          String sourceFile,
                          ImmutableSet<? extends ImmutableAnnotation> annotations,
                          ImmutableSortedSet<? extends ImmutableField> staticFields,
                          ImmutableSortedSet<? extends ImmutableField> instanceFields,
                          ImmutableSortedSet<? extends ImmutableMethod> directMethods,
                          ImmutableSortedSet<? extends ImmutableMethod> virtualMethods) {
    this.type = type;
    this.accessFlags = accessFlags;
    this.superclass = superclass;
    this.interfaces = ImmutableUtils.nullToEmptyList(interfaces);
    this.sourceFile = sourceFile;
    this.annotations = ImmutableUtils.nullToEmptySet(annotations);
    this.staticFields = ImmutableUtils.nullToEmptySortedSet(staticFields);
    this.instanceFields = ImmutableUtils.nullToEmptySortedSet(instanceFields);
    this.directMethods = ImmutableUtils.nullToEmptySortedSet(directMethods);
    this.virtualMethods = ImmutableUtils.nullToEmptySortedSet(virtualMethods);
}
 
开发者ID:AndreJCL,项目名称:JCL,代码行数:22,代码来源:ImmutableClassDef.java

示例3: ImmutableClassDef

import org.jf.util.ImmutableUtils; //导入依赖的package包/类
public ImmutableClassDef(@Nonnull String type,
                         int accessFlags,
                         @Nullable String superclass,
                         @Nullable ImmutableList<String> interfaces,
                         @Nullable String sourceFile,
                         @Nullable ImmutableSet<? extends ImmutableAnnotation> annotations,
                         @Nullable ImmutableSortedSet<? extends ImmutableField> staticFields,
                         @Nullable ImmutableSortedSet<? extends ImmutableField> instanceFields,
                         @Nullable ImmutableSortedSet<? extends ImmutableMethod> directMethods,
                         @Nullable ImmutableSortedSet<? extends ImmutableMethod> virtualMethods) {
    this.type = type;
    this.accessFlags = accessFlags;
    this.superclass = superclass;
    this.interfaces = ImmutableUtils.nullToEmptyList(interfaces);
    this.sourceFile = sourceFile;
    this.annotations = ImmutableUtils.nullToEmptySet(annotations);
    this.staticFields = ImmutableUtils.nullToEmptySortedSet(staticFields);
    this.instanceFields = ImmutableUtils.nullToEmptySortedSet(instanceFields);
    this.directMethods = ImmutableUtils.nullToEmptySortedSet(directMethods);
    this.virtualMethods = ImmutableUtils.nullToEmptySortedSet(virtualMethods);
}
 
开发者ID:johnlee175,项目名称:dex,代码行数:22,代码来源:ImmutableClassDef.java

示例4: ImmutableMethodImplementation

import org.jf.util.ImmutableUtils; //导入依赖的package包/类
public ImmutableMethodImplementation(int registerCount,
                                     @Nullable ImmutableList<? extends ImmutableInstruction> instructions,
                                     @Nullable ImmutableList<? extends ImmutableTryBlock> tryBlocks,
                                     @Nullable ImmutableList<? extends ImmutableDebugItem> debugItems) {
    this.registerCount = registerCount;
    this.instructions = ImmutableUtils.nullToEmptyList(instructions);
    this.tryBlocks = ImmutableUtils.nullToEmptyList(tryBlocks);
    this.debugItems = ImmutableUtils.nullToEmptyList(debugItems);
}
 
开发者ID:CvvT,项目名称:andbg,代码行数:10,代码来源:ImmutableMethodImplementation.java

示例5: ImmutableAnnotation

import org.jf.util.ImmutableUtils; //导入依赖的package包/类
public ImmutableAnnotation(int visibility,
                           @Nonnull String type,
                           @Nullable ImmutableSet<? extends ImmutableAnnotationElement> elements) {
    this.visibility = visibility;
    this.type = type;
    this.elements = ImmutableUtils.nullToEmptySet(elements);
}
 
开发者ID:CvvT,项目名称:andbg,代码行数:8,代码来源:ImmutableAnnotation.java

示例6: ImmutableArrayPayload

import org.jf.util.ImmutableUtils; //导入依赖的package包/类
public ImmutableArrayPayload(int elementWidth,
                             @Nullable ImmutableList<Number> arrayElements) {
    super(OPCODE);
    //TODO: need to ensure this is a valid width (1, 2, 4, 8)
    this.elementWidth = elementWidth;
    //TODO: need to validate the elements fit within the width
    this.arrayElements = ImmutableUtils.nullToEmptyList(arrayElements);
}
 
开发者ID:CvvT,项目名称:andbg,代码行数:9,代码来源:ImmutableArrayPayload.java

示例7: ImmutableTryBlock

import org.jf.util.ImmutableUtils; //导入依赖的package包/类
public ImmutableTryBlock(int startCodeAddress,
                         int codeUnitCount,
                         @Nullable ImmutableList<? extends ImmutableExceptionHandler> exceptionHandlers) {
    this.startCodeAddress = startCodeAddress;
    this.codeUnitCount = codeUnitCount;
    this.exceptionHandlers = ImmutableUtils.nullToEmptyList(exceptionHandlers);
}
 
开发者ID:CvvT,项目名称:andbg,代码行数:8,代码来源:ImmutableTryBlock.java

示例8: ImmutableMethod

import org.jf.util.ImmutableUtils; //导入依赖的package包/类
public ImmutableMethod(@Nonnull String definingClass,
                       @Nonnull String name,
                       @Nullable ImmutableList<? extends ImmutableMethodParameter> parameters,
                       @Nonnull String returnType,
                       int accessFlags,
                       @Nullable ImmutableSet<? extends ImmutableAnnotation> annotations,
                       @Nullable ImmutableMethodImplementation methodImplementation) {
    this.definingClass = definingClass;
    this.name = name;
    this.parameters = ImmutableUtils.nullToEmptyList(parameters);
    this.returnType = returnType;
    this.accessFlags = accessFlags;
    this.annotations = ImmutableUtils.nullToEmptySet(annotations);
    this.methodImplementation = methodImplementation;
}
 
开发者ID:CvvT,项目名称:andbg,代码行数:16,代码来源:ImmutableMethod.java

示例9: ImmutableMethodParameter

import org.jf.util.ImmutableUtils; //导入依赖的package包/类
public ImmutableMethodParameter(@Nonnull String type,
                                @Nullable ImmutableSet<? extends ImmutableAnnotation> annotations,
                                @Nullable String name) {
    this.type = type;
    this.annotations = ImmutableUtils.nullToEmptySet(annotations);
    this.name = name;
}
 
开发者ID:CvvT,项目名称:andbg,代码行数:8,代码来源:ImmutableMethodParameter.java

示例10: ImmutableMethodReference

import org.jf.util.ImmutableUtils; //导入依赖的package包/类
public ImmutableMethodReference(@Nonnull String definingClass,
                                @Nonnull String name,
                                @Nullable ImmutableList<String> parameters,
                                @Nonnull String returnType) {
    this.definingClass = definingClass;
    this.name = name;
    this.parameters = ImmutableUtils.nullToEmptyList(parameters);
    this.returnType = returnType;
}
 
开发者ID:CvvT,项目名称:andbg,代码行数:10,代码来源:ImmutableMethodReference.java

示例11: ImmutableField

import org.jf.util.ImmutableUtils; //导入依赖的package包/类
public ImmutableField(@Nonnull String definingClass,
                      @Nonnull String name,
                      @Nonnull String type,
                      int accessFlags,
                      @Nullable ImmutableEncodedValue initialValue,
                      @Nullable ImmutableSet<? extends ImmutableAnnotation> annotations) {
    this.definingClass = definingClass;
    this.name = name;
    this.type = type;
    this.accessFlags = accessFlags;
    this.initialValue = initialValue;
    this.annotations = ImmutableUtils.nullToEmptySet(annotations);
}
 
开发者ID:CvvT,项目名称:andbg,代码行数:14,代码来源:ImmutableField.java

示例12: ImmutableMethodImplementation

import org.jf.util.ImmutableUtils; //导入依赖的package包/类
public ImmutableMethodImplementation(int registerCount,
                                      ImmutableList<? extends ImmutableInstruction> instructions,
                                      ImmutableList<? extends ImmutableTryBlock> tryBlocks,
                                      ImmutableList<? extends ImmutableDebugItem> debugItems) {
    this.registerCount = registerCount;
    this.instructions = ImmutableUtils.nullToEmptyList(instructions);
    this.tryBlocks = ImmutableUtils.nullToEmptyList(tryBlocks);
    this.debugItems = ImmutableUtils.nullToEmptyList(debugItems);
}
 
开发者ID:AndreJCL,项目名称:JCL,代码行数:10,代码来源:ImmutableMethodImplementation.java

示例13: ImmutableAnnotation

import org.jf.util.ImmutableUtils; //导入依赖的package包/类
public ImmutableAnnotation(int visibility,
                            String type,
                            ImmutableSet<? extends ImmutableAnnotationElement> elements) {
    this.visibility = visibility;
    this.type = type;
    this.elements = ImmutableUtils.nullToEmptySet(elements);
}
 
开发者ID:AndreJCL,项目名称:JCL,代码行数:8,代码来源:ImmutableAnnotation.java

示例14: ImmutableArrayPayload

import org.jf.util.ImmutableUtils; //导入依赖的package包/类
public ImmutableArrayPayload(int elementWidth,
                              ImmutableList<Number> arrayElements) {
    super(OPCODE);
    //TODO: need to ensure this is a valid width (1, 2, 4, 8)
    this.elementWidth = elementWidth;
    //TODO: need to validate the elements fit within the width
    this.arrayElements = ImmutableUtils.nullToEmptyList(arrayElements);
}
 
开发者ID:AndreJCL,项目名称:JCL,代码行数:9,代码来源:ImmutableArrayPayload.java

示例15: ImmutableTryBlock

import org.jf.util.ImmutableUtils; //导入依赖的package包/类
public ImmutableTryBlock(int startCodeAddress,
                         int codeUnitCount,
                          ImmutableList<? extends ImmutableExceptionHandler> exceptionHandlers) {
    this.startCodeAddress = startCodeAddress;
    this.codeUnitCount = codeUnitCount;
    this.exceptionHandlers = ImmutableUtils.nullToEmptyList(exceptionHandlers);
}
 
开发者ID:AndreJCL,项目名称:JCL,代码行数:8,代码来源:ImmutableTryBlock.java


注:本文中的org.jf.util.ImmutableUtils类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。