Questions tagged [mop]

A meta-object protocol (MOP) is an interpreter of the semantics of a program that is open and extensible.

MOP stand for meta-object protocol.

A MOP determines what a program means and what its behavior is. It is extensible in that a programmer (or meta-programmer) can alter program behavior by extending parts of the MOP.

The MOP exposes some or all internal structure of the interpreter to the programmer.

The MOP may manifest as a set of classes and methods that allow a program to inspect the state of the supporting system and alter its behavior.

MOP's are implemented as object-oriented programs where all objects are meta-objects.

48 questions
1
vote
2 answers

Groovy - unexpected MOP methods in the class node for com

No idea what this is coming from. Using groovy eclipse plugin v2.61, groovy compiler 1.8.6, eclipse 3.7 I could include some code here, but the error is generate in the middle of the comment header /** * * <-- somewhere here * */ Tried clean…
Francis Martens
  • 3,458
  • 4
  • 24
  • 26
0
votes
1 answer

Groovy customize MetaClassImpl cause 'Could not find matching constructor'

Here is a hello world level groovy mop program, just want to customize MetaClassImpl using my own, but it seems groovy not allowed, here is my code: MyMetaClassImpl.java import groovy.lang.MetaClassImpl; public class MyMetaClassImpl extends…
Crabime
  • 644
  • 11
  • 27
0
votes
1 answer

Modifying attributes of a Moose::Role at runtime

I have a Moose::Role that contains a network client as an attribute: package Widget; use Moose::Role; has 'network_thingy' => ( isa => Maybe[ThingyClient], ); And of course, I have a couple concrete Moose classes which use this role: package…
Mike Monkiewicz
  • 4,481
  • 1
  • 22
  • 19
1 2 3
4