Searched refs:methodBuilder (Results 1 – 12 of 12) sorted by relevance
61 .addMethod(MethodSpec.methodBuilder("toString") in basic()127 .addMethod(MethodSpec.methodBuilder("doSomething") in anonymousInnerClass()136 .addMethod(MethodSpec.methodBuilder("call") in anonymousInnerClass()242 .addMethod(MethodSpec.methodBuilder("fooBar") in retrofitStyleInterface()356 .addMethod(MethodSpec.methodBuilder("toString") in enumWithSubclassing()412 .addMethod(MethodSpec.methodBuilder("fold") in enumsMayDefineAbstractMethods()417 .addMethod(MethodSpec.methodBuilder("fold") in enumsMayDefineAbstractMethods()459 .addMethod(MethodSpec.methodBuilder("toString") in enumWithMembersButNoConstructorCall()511 .addMethod(MethodSpec.methodBuilder("throwOne") in methodThrows()514 .addMethod(MethodSpec.methodBuilder("throwTwo") in methodThrows()[all …]
69 MethodSpec.methodBuilder("doSomething").addAnnotations(null); in nullAnnotationsAddition()78 MethodSpec.methodBuilder("doSomething").addTypeVariables(null); in nullTypeVariablesAddition()87 MethodSpec.methodBuilder("doSomething").addParameters(null); in nullParametersAddition()96 MethodSpec.methodBuilder("doSomething").addExceptions(null); in nullExceptionsAddition()261 a = MethodSpec.methodBuilder("taco").build(); in equalsAndHashCode()262 b = MethodSpec.methodBuilder("taco").build(); in equalsAndHashCode()276 MethodSpec methodSpec = MethodSpec.methodBuilder("duplicateExceptions") in duplicateExceptionsIgnored()289 MethodSpec.methodBuilder(null); in nullIsNotAValidMethodName()298 MethodSpec.methodBuilder("taco") in addModifiersVarargsShouldNotBeNull()
38 MethodSpec beyond = MethodSpec.methodBuilder("beyond") in importStaticReadmeExample()78 MethodSpec method = MethodSpec.methodBuilder("method").build(); in importStaticForCrazyFormatsWorks()143 .addMethod(MethodSpec.methodBuilder("main") in importStaticDynamic()235 MethodSpec method = MethodSpec.methodBuilder("minutesToSeconds") in importStaticTypeSpec()595 .addMethod(MethodSpec.methodBuilder("main") in defaultPackage()
66 .addMethod(MethodSpec.methodBuilder("fooBar").build()) in javaFileObjectCharacterContent()91 .addMethod(MethodSpec.methodBuilder("call") in compileJavaFile()
192 MethodSpec varargsMethod = MethodSpec.methodBuilder("m") in annotatedArrayTypeVarargsParameter()207 MethodSpec varargsMethod = MethodSpec.methodBuilder("m") in annotatedArrayTypeInVarargsParameter()
173 .addMethod(MethodSpec.methodBuilder("main") in filerClassesWithTabIndent()
353 MethodImplementationBuilder methodBuilder;381 $method::methodBuilder = new MethodImplementationBuilder($method::totalMethodRegisters);387 $method::methodBuilder = new MethodImplementationBuilder(0);408 methodImplementation = $method::methodBuilder.getMethodImplementation();542 $method::methodBuilder.addLabel($SIMPLE_NAME.text);552 $method::methodBuilder.addCatch(dexBuilder.internTypeReference($nonvoid_type_descriptor.type),559 $method::methodBuilder.addCatch($from.label, $to.label, $using.label);611 $method::methodBuilder.addLineNumber($integral_literal.value);618 $method::methodBuilder.addStartLocal(registerNumber,628 $method::methodBuilder.addEndLocal(registerNumber);[all …]
172 public static Builder methodBuilder(String name) { in methodBuilder() method in MethodSpec205 MethodSpec.Builder methodBuilder = MethodSpec.methodBuilder(methodName); in overriding() local207 methodBuilder.addAnnotation(Override.class); in overriding()212 methodBuilder.addModifiers(modifiers); in overriding()216 methodBuilder.addTypeVariable(TypeVariableName.get(var)); in overriding()219 methodBuilder.returns(TypeName.get(method.getReturnType())); in overriding()220 methodBuilder.addParameters(ParameterSpec.parametersOf(method)); in overriding()221 methodBuilder.varargs(method.isVarArgs()); in overriding()224 methodBuilder.addException(TypeName.get(thrownType)); in overriding()227 return methodBuilder; in overriding()
28 MethodSpec main = MethodSpec.methodBuilder("main")66 MethodSpec main = MethodSpec.methodBuilder("main")92 MethodSpec main = MethodSpec.methodBuilder("main")105 return MethodSpec.methodBuilder(name)141 return MethodSpec.methodBuilder(name)177 return MethodSpec.methodBuilder(name)209 MethodSpec today = MethodSpec.methodBuilder("today")246 MethodSpec today = MethodSpec.methodBuilder("tomorrow")277 MethodSpec beyond = MethodSpec.methodBuilder("beyond")316 MethodSpec beyond = MethodSpec.methodBuilder("beyond")[all …]
242 MethodSpec.methodBuilder(methodName) in buildOpMethod()372 MethodSpec.methodBuilder("withSubScope") in buildTopClass()384 MethodSpec.methodBuilder("withName") in buildTopClass()399 MethodSpec.methodBuilder("scope") in buildTopClass()413 MethodSpec.methodBuilder(entry.getKey()) in buildTopClass()423 MethodSpec.methodBuilder("create") in buildTopClass()
2070 MethodImplementationBuilder methodBuilder; field in smaliTreeWalker.method_scope2149 …method_stack.peek().methodBuilder = new MethodImplementationBuilder(method_stack.peek().totalMetho… in method()2160 method_stack.peek().methodBuilder = new MethodImplementationBuilder(0); in method()2198 methodImplementation = method_stack.peek().methodBuilder.getMethodImplementation(); in method()2660 … method_stack.peek().methodBuilder.addLabel((SIMPLE_NAME84!=null?SIMPLE_NAME84.getText():null)); in label_def()2793 …method_stack.peek().methodBuilder.addCatch(dexBuilder.internTypeReference((nonvoid_type_descriptor… in catch_directive()2839 method_stack.peek().methodBuilder.addCatch(from, to, using); in catchall_directive()3139 method_stack.peek().methodBuilder.addLineNumber(integral_literal90); in line()3263 method_stack.peek().methodBuilder.addStartLocal(registerNumber, in local()3299 method_stack.peek().methodBuilder.addEndLocal(registerNumber); in end_local()[all …]
67 MethodImplementationBuilder methodBuilder = new MethodImplementationBuilder(1); in testJumboStringConversion() local69 methodBuilder.addInstruction(new BuilderInstruction21c(Opcode.CONST_STRING, 0, in testJumboStringConversion()72 methodBuilder.addInstruction(new BuilderInstruction10x(Opcode.RETURN_VOID)); in testJumboStringConversion()90 methodBuilder.getMethodImplementation()))); in testJumboStringConversion()