I am trying to resolve the proxies I get in my DSL.
The problem is that the resourceDescriptionsProvider is null so I cannot get the resource descriptions.
I am trying to define type check rules for my DSL, so I have a class DSLTypeSystem that extends from the Switch class. In one of the overridden methods I need to know the actual name of the referenced element.
Th part of the grammar related to my problem is the following:
PrimaryExpression: ((minusSign?='-') | '+')? primary=Primary (methodCall+=DataMethodCall)* ;
DataMethodCall: (useCaret?='^')? method=[DataMethod|IDENTIFIER] ('(' (arguments=ListOfExpressions)? ')')?;
I need to know the name of the method referenced in DataMethodCall.
In a world that's fully controlled by Guice injection works just fine, but sometimes I find myself in a situation where instances need to be created explicitly. Even "injector.getInstance(X.class)" doesn't always do the trick. In those cases I tend to say:
X x = new X(argFoo, argBar);
this seems to be the best compromise between "fully controlled by Guice" and "fully controlled by my code".