org.spongepowered.asm.mixin.Pseudo Java Examples
The following examples show how to use
org.spongepowered.asm.mixin.Pseudo.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AnnotatedMixin.java From Mixin with MIT License | 6 votes |
public AnnotatedMixin(IMixinAnnotationProcessor ap, TypeElement type) { this.typeProvider = ap.getTypeProvider(); this.obf = ap.getObfuscationManager(); this.mappings = this.obf.createMappingConsumer(); this.messager = ap; this.mixin = type; this.handle = new TypeHandle(type); this.methods = new ArrayList<ExecutableElement>(this.handle.<ExecutableElement>getEnclosedElements(ElementKind.METHOD)); this.virtual = this.handle.getAnnotation(Pseudo.class).exists(); this.annotation = this.handle.getAnnotation(Mixin.class); this.classRef = TypeUtils.getInternalName(type); this.primaryTarget = this.initTargets(); this.remap = this.annotation.getBoolean("remap", true) && this.targets.size() > 0; this.overwrites = new AnnotatedMixinElementHandlerOverwrite(ap, this); this.shadows = new AnnotatedMixinElementHandlerShadow(ap, this); this.injectors = new AnnotatedMixinElementHandlerInjector(ap, this); this.accessors = new AnnotatedMixinElementHandlerAccessor(ap, this); this.softImplements = new AnnotatedMixinElementHandlerSoftImplements(ap, this); }
Example #2
Source File: MixinInfo.java From Mixin with MIT License | 4 votes |
protected boolean readPseudo(ClassNode classNode) { return Annotations.getInvisible(classNode, Pseudo.class) != null; }