From 665908d32ec4f638cf9848c2d9e46c742d7a9b00 Mon Sep 17 00:00:00 2001 From: Mumfrey Date: Mon, 8 Feb 2016 13:23:41 +0000 Subject: [PATCH] Javadoc tweaks --- .../org/spongepowered/asm/mixin/injection/code/Injector.java | 3 ++- .../asm/mixin/injection/invoke/InvokeInjector.java | 2 ++ .../asm/mixin/injection/points/BeforeInvoke.java | 4 ++-- .../asm/mixin/transformer/MixinTargetContext.java | 4 ++-- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/spongepowered/asm/mixin/injection/code/Injector.java b/src/main/java/org/spongepowered/asm/mixin/injection/code/Injector.java index 27933b4c..1bc1c694 100644 --- a/src/main/java/org/spongepowered/asm/mixin/injection/code/Injector.java +++ b/src/main/java/org/spongepowered/asm/mixin/injection/code/Injector.java @@ -195,6 +195,7 @@ public abstract class Injector { * Invoke the handler method * * @param insns Instruction list to inject into + * @return injected insn node */ protected AbstractInsnNode invokeHandler(InsnList insns) { return this.invokeHandler(insns, this.methodNode); @@ -206,7 +207,7 @@ public abstract class Injector { * @param insns Instruction list to inject into * @param handler Actual method to invoke (may be different if using a * surrogate) - * @return + * @return injected insn node */ protected AbstractInsnNode invokeHandler(InsnList insns, MethodNode handler) { boolean isPrivate = (handler.access & Opcodes.ACC_PRIVATE) != 0; diff --git a/src/main/java/org/spongepowered/asm/mixin/injection/invoke/InvokeInjector.java b/src/main/java/org/spongepowered/asm/mixin/injection/invoke/InvokeInjector.java index 6281003d..23d5d651 100644 --- a/src/main/java/org/spongepowered/asm/mixin/injection/invoke/InvokeInjector.java +++ b/src/main/java/org/spongepowered/asm/mixin/injection/invoke/InvokeInjector.java @@ -96,6 +96,7 @@ public abstract class InvokeInjector extends Injector { * @param args handler arguments * @param insns InsnList to inject insns into * @param argMap Mapping of args to local variables + * @return injected insn node */ protected AbstractInsnNode invokeHandlerWithArgs(Type[] args, InsnList insns, int[] argMap) { return this.invokeHandlerWithArgs(args, insns, argMap, 0, args.length); @@ -107,6 +108,7 @@ public abstract class InvokeInjector extends Injector { * @param argMap Mapping of args to local variables * @param startArg Starting arg to consume * @param endArg Ending arg to consume + * @return injected insn node */ protected AbstractInsnNode invokeHandlerWithArgs(Type[] args, InsnList insns, int[] argMap, int startArg, int endArg) { if (!this.isStatic) { diff --git a/src/main/java/org/spongepowered/asm/mixin/injection/points/BeforeInvoke.java b/src/main/java/org/spongepowered/asm/mixin/injection/points/BeforeInvoke.java index e57b4af8..9249322d 100644 --- a/src/main/java/org/spongepowered/asm/mixin/injection/points/BeforeInvoke.java +++ b/src/main/java/org/spongepowered/asm/mixin/injection/points/BeforeInvoke.java @@ -71,9 +71,9 @@ public class BeforeInvoke extends InjectionPoint { protected final MemberInfo target; /** - * This strategy can be used to identify a particular invokation if the same + * This strategy can be used to identify a particular invocation if the same * method is invoked at multiple points, if this value is -1 then the - * strategy returns all invokations of the method. + * strategy returns all invocations of the method. */ protected final int ordinal; diff --git a/src/main/java/org/spongepowered/asm/mixin/transformer/MixinTargetContext.java b/src/main/java/org/spongepowered/asm/mixin/transformer/MixinTargetContext.java index 4531c885..1b79ab26 100644 --- a/src/main/java/org/spongepowered/asm/mixin/transformer/MixinTargetContext.java +++ b/src/main/java/org/spongepowered/asm/mixin/transformer/MixinTargetContext.java @@ -290,7 +290,7 @@ public class MixinTargetContext implements IReferenceMapperContext { /** * Handles "re-parenting" the method supplied, changes all references to the * mixin class to refer to the target class (for field accesses and method - * invokations) and also handles fixing up the targets of INVOKESPECIAL + * invocations) and also handles fixing up the targets of INVOKESPECIAL * opcodes for mixins with detached targets. * * @param method Method to transform @@ -520,7 +520,7 @@ public class MixinTargetContext implements IReferenceMapperContext { } /** - * Handle "imaginary super" invokations, these are invokations in + * Handle "imaginary super" invocations, these are invocations in * non-derived mixins for accessing methods known to exist in a supermixin * which is not directly inherited by this mixix. The method can only call * its own super-implmentation and the methd must also be tagged with