本文整理了Java中com.strobel.core.ArrayUtilities.append()
方法的一些代码示例,展示了ArrayUtilities.append()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ArrayUtilities.append()
方法的具体详情如下:
包路径:com.strobel.core.ArrayUtilities
类名称:ArrayUtilities
方法名:append
暂无
代码示例来源:origin: org.bitbucket.mstrobel/procyon-core
return append(array, values);
代码示例来源:origin: org.jboss.windup.decompiler.procyon/procyon-core
return append(array, values);
代码示例来源:origin: org.jboss.windup.decompiler.procyon/windup-procyon-core
return append(array, values);
代码示例来源:origin: org.bitbucket.mstrobel/procyon-reflection
private MethodBuilder defineMethodCore(
final String name,
final int modifiers,
final Type<?> returnType,
final TypeList parameterTypes,
final TypeList thrownTypes) {
VerifyArgument.notNullOrWhitespace(name, "name");
verifyNotGeneric();
verifyNotCreated();
final MethodBuilder method = new MethodBuilder(
name,
modifiers,
returnType,
parameterTypes,
thrownTypes,
this
);
methodBuilders.add(method);
_methods = new MethodList(ArrayUtilities.append(_methods.toArray(), method));
return method;
}
代码示例来源:origin: org.jboss.windup.decompiler.procyon/procyon-reflection
private MethodBuilder defineMethodCore(
final String name,
final int modifiers,
final Type<?> returnType,
final TypeList parameterTypes,
final TypeList thrownTypes) {
VerifyArgument.notNullOrWhitespace(name, "name");
verifyNotGeneric();
verifyNotCreated();
final MethodBuilder method = new MethodBuilder(
name,
modifiers,
returnType,
parameterTypes,
thrownTypes,
this
);
methodBuilders.add(method);
_methods = new MethodList(ArrayUtilities.append(_methods.toArray(), method));
return method;
}
代码示例来源:origin: org.jboss.windup.decompiler.procyon/windup-procyon-reflection
private MethodBuilder defineMethodCore(
final String name,
final int modifiers,
final Type<?> returnType,
final TypeList parameterTypes,
final TypeList thrownTypes) {
VerifyArgument.notNullOrWhitespace(name, "name");
verifyNotGeneric();
verifyNotCreated();
final MethodBuilder method = new MethodBuilder(
name,
modifiers,
returnType,
parameterTypes,
thrownTypes,
this
);
methodBuilders.add(method);
_methods = new MethodList(ArrayUtilities.append(_methods.toArray(), method));
return method;
}
代码示例来源:origin: org.jboss.windup.decompiler.procyon/procyon-reflection
public ConstructorBuilder defineConstructor(
final int modifiers,
final TypeList parameterTypes,
final TypeList thrownTypes) {
verifyNotGeneric();
verifyNotCreated();
final ConstructorBuilder constructor = new ConstructorBuilder(
modifiers & Modifier.constructorModifiers(),
parameterTypes,
thrownTypes,
this
);
constructorBuilders.add(constructor);
_constructors = new ConstructorList(ArrayUtilities.append(_constructors.toArray(), constructor));
return constructor;
}
代码示例来源:origin: org.bitbucket.mstrobel/procyon-reflection
public ConstructorBuilder defineConstructor(
final int modifiers,
final TypeList parameterTypes,
final TypeList thrownTypes) {
verifyNotGeneric();
verifyNotCreated();
final ConstructorBuilder constructor = new ConstructorBuilder(
modifiers & Modifier.constructorModifiers(),
parameterTypes,
thrownTypes,
this
);
constructorBuilders.add(constructor);
_constructors = new ConstructorList(ArrayUtilities.append(_constructors.toArray(), constructor));
return constructor;
}
代码示例来源:origin: org.jboss.windup.decompiler.procyon/windup-procyon-reflection
public ConstructorBuilder defineConstructor(
final int modifiers,
final TypeList parameterTypes,
final TypeList thrownTypes) {
verifyNotGeneric();
verifyNotCreated();
final ConstructorBuilder constructor = new ConstructorBuilder(
modifiers & Modifier.constructorModifiers(),
parameterTypes,
thrownTypes,
this
);
constructorBuilders.add(constructor);
_constructors = new ConstructorList(ArrayUtilities.append(_constructors.toArray(), constructor));
return constructor;
}
代码示例来源:origin: org.bitbucket.mstrobel/procyon-reflection
private FieldBuilder defineFieldCore(
final String name,
final Type<?> type,
final int modifiers,
final Object constantValue) {
VerifyArgument.notNullOrWhitespace(name, "name");
verifyNotGeneric();
verifyNotCreated();
if (constantValue != null &&
!TypeUtils.isAutoUnboxed(Type.of(constantValue.getClass()))) {
throw Error.valueMustBeConstant();
}
final FieldBuilder field = new FieldBuilder(
this,
name,
type,
modifiers & Modifier.fieldModifiers(),
constantValue
);
fieldBuilders.add(field);
_fields = new FieldList(ArrayUtilities.append(_fields.toArray(), field));
return field;
}
代码示例来源:origin: org.jboss.windup.decompiler.procyon/procyon-reflection
private FieldBuilder defineFieldCore(
final String name,
final Type<?> type,
final int modifiers,
final Object constantValue) {
VerifyArgument.notNullOrWhitespace(name, "name");
verifyNotGeneric();
verifyNotCreated();
if (constantValue != null &&
!TypeUtils.isAutoUnboxed(Type.of(constantValue.getClass()))) {
throw Error.valueMustBeConstant();
}
final FieldBuilder field = new FieldBuilder(
this,
name,
type,
modifiers & Modifier.fieldModifiers(),
constantValue
);
fieldBuilders.add(field);
_fields = new FieldList(ArrayUtilities.append(_fields.toArray(), field));
return field;
}
代码示例来源:origin: org.jboss.windup.decompiler.procyon/windup-procyon-reflection
private FieldBuilder defineFieldCore(
final String name,
final Type<?> type,
final int modifiers,
final Object constantValue) {
VerifyArgument.notNullOrWhitespace(name, "name");
verifyNotGeneric();
verifyNotCreated();
if (constantValue != null &&
!TypeUtils.isAutoUnboxed(Type.of(constantValue.getClass()))) {
throw Error.valueMustBeConstant();
}
final FieldBuilder field = new FieldBuilder(
this,
name,
type,
modifiers & Modifier.fieldModifiers(),
constantValue
);
fieldBuilders.add(field);
_fields = new FieldList(ArrayUtilities.append(_fields.toArray(), field));
return field;
}
代码示例来源:origin: org.bitbucket.mstrobel/procyon-reflection
genericParameters = ArrayUtilities.append(genericParameters, gp);
代码示例来源:origin: org.jboss.windup.decompiler.procyon/procyon-reflection
genericParameters = ArrayUtilities.append(genericParameters, gp);
代码示例来源:origin: org.jboss.windup.decompiler.procyon/windup-procyon-reflection
genericParameters = ArrayUtilities.append(genericParameters, gp);
代码示例来源:origin: org.bitbucket.mstrobel/procyon-reflection
public ConstructorBuilder defineDefaultConstructor(final int modifiers) {
verifyNotGeneric();
verifyNotCreated();
if (isInterface()) {
throw Error.interfacesCannotDefineConstructors();
}
final ConstructorInfo baseConstructor = _baseType.getConstructor(BindingFlags.AllExact);
if (baseConstructor == null || baseConstructor.isPrivate()) {
throw Error.baseTypeHasNoDefaultConstructor(_baseType);
}
final ConstructorBuilder constructor = new ConstructorBuilder(
modifiers & Modifier.constructorModifiers(),
baseConstructor.getParameters().getParameterTypes(),
TypeList.empty(),
this
);
final CodeGenerator code = constructor.getCodeGenerator();
code.emitThis();
for (final ParameterInfo parameter : baseConstructor.getParameters()) {
code.emitLoadArgument(parameter.getPosition());
}
code.call(baseConstructor);
code.emitReturn();
constructor.returnCodeGenerator = false;
constructorBuilders.add(constructor);
_constructors = new ConstructorList(ArrayUtilities.append(_constructors.toArray(), constructor));
return constructor;
}
代码示例来源:origin: org.jboss.windup.decompiler.procyon/procyon-reflection
public ConstructorBuilder defineDefaultConstructor(final int modifiers) {
verifyNotGeneric();
verifyNotCreated();
if (isInterface()) {
throw Error.interfacesCannotDefineConstructors();
}
final ConstructorInfo baseConstructor = _baseType.getConstructor(BindingFlags.AllExact);
if (baseConstructor == null || baseConstructor.isPrivate()) {
throw Error.baseTypeHasNoDefaultConstructor(_baseType);
}
final ConstructorBuilder constructor = new ConstructorBuilder(
modifiers & Modifier.constructorModifiers(),
baseConstructor.getParameters().getParameterTypes(),
TypeList.empty(),
this
);
final CodeGenerator code = constructor.getCodeGenerator();
code.emitThis();
for (final ParameterInfo parameter : baseConstructor.getParameters()) {
code.emitLoadArgument(parameter.getPosition());
}
code.call(baseConstructor);
code.emitReturn();
constructor.returnCodeGenerator = false;
constructorBuilders.add(constructor);
_constructors = new ConstructorList(ArrayUtilities.append(_constructors.toArray(), constructor));
return constructor;
}
代码示例来源:origin: org.jboss.windup.decompiler.procyon/windup-procyon-reflection
public ConstructorBuilder defineDefaultConstructor(final int modifiers) {
verifyNotGeneric();
verifyNotCreated();
if (isInterface()) {
throw Error.interfacesCannotDefineConstructors();
}
final ConstructorInfo baseConstructor = _baseType.getConstructor(BindingFlags.AllExact);
if (baseConstructor == null || baseConstructor.isPrivate()) {
throw Error.baseTypeHasNoDefaultConstructor(_baseType);
}
final ConstructorBuilder constructor = new ConstructorBuilder(
modifiers & Modifier.constructorModifiers(),
baseConstructor.getParameters().getParameterTypes(),
TypeList.empty(),
this
);
final CodeGenerator code = constructor.getCodeGenerator();
code.emitThis();
for (final ParameterInfo parameter : baseConstructor.getParameters()) {
code.emitLoadArgument(parameter.getPosition());
}
code.call(baseConstructor);
code.emitReturn();
constructor.returnCodeGenerator = false;
constructorBuilders.add(constructor);
_constructors = new ConstructorList(ArrayUtilities.append(_constructors.toArray(), constructor));
return constructor;
}
代码示例来源:origin: org.bitbucket.mstrobel/procyon-compilertools
return ArrayUtilities.append(
oldStack,
new StackSlot(stackMapper.getStackValue(0), oldStack[oldStack.length - 1].definitions)
return ArrayUtilities.append(
oldStack,
new StackSlot(stackMapper.getStackValue(1), oldStack[oldStack.length - 2].definitions),
代码示例来源:origin: org.jboss.windup.decompiler.procyon/windup-procyon-compilertools
return ArrayUtilities.append(
oldStack,
new StackSlot(stackMapper.getStackValue(0), oldStack[oldStack.length - 1].definitions)
return ArrayUtilities.append(
oldStack,
new StackSlot(stackMapper.getStackValue(1), oldStack[oldStack.length - 2].definitions),
内容来源于网络,如有侵权,请联系作者删除!