New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1".." reader for more complicated java expressions, using javaparser #52

Closed
wants to merge 3 commits into
base: master
from

Conversation

Projects
None yet
2 participants
@alanruttenberg
Collaborator

alanruttenberg commented Jun 8, 2017

This is the base class for using the java parser library. JSS will use this (in another commit) to enable writing more complicated java expressions using #1"..." e.g.

(#1"new ByteBuddy().subclass(Object.class,t)
.method(ElementMatchers.named("toString"))
.intercept(FixedValue.value("Hello World!"))
.make()
.load(getClass().getClassLoader())
.getLoaded()" )

@alanruttenberg alanruttenberg changed the title from Javaparser, preliminary to hook in jss. to #1".." reader for more complicated java expressions, using javaparser Jun 8, 2017

@easye

This comment has been minimized.

Show comment
Hide comment
@easye

easye Jun 9, 2017

Collaborator

I'll merge this work based on javaparser, but have doubts that this will work on Java 6 (but who knows).

If we have problems on non-Java 8, we will need to conditionalize its usage in JSS based on whether the javaparser jar can be loaded, as a lot of the other contribs depend on JSS.

Collaborator

easye commented Jun 9, 2017

I'll merge this work based on javaparser, but have doubts that this will work on Java 6 (but who knows).

If we have problems on non-Java 8, we will need to conditionalize its usage in JSS based on whether the javaparser jar can be loaded, as a lot of the other contribs depend on JSS.

easye pushed a commit that referenced this pull request Jun 9, 2017

mevenson@1c010e3e-69d0-11dd-93a8-456734b0d56f
Javaparser, preliminary to hook in jss
(Alan Ruttenberg)

From <291289e>

Part of merge <#52>.

easye pushed a commit that referenced this pull request Jun 9, 2017

mevenson@1c010e3e-69d0-11dd-93a8-456734b0d56f
Utility for jss
(Alan Ruttenberg)

From <987c18f>.

Part of merge <#52>.

easye pushed a commit that referenced this pull request Jun 9, 2017

mevenson@1c010e3e-69d0-11dd-93a8-456734b0d56f
Add jss hook and test
(Alan Ruttenberg)

From <155db3e>.

Part of merge <#52>.
@easye

This comment has been minimized.

Show comment
Hide comment
@easye

easye Jun 9, 2017

Collaborator

I had to refactor the JAVAPARSER and JSS systems to rationalize load behavior 64203af, otherwise loading JSS was failing for me.

In addition, you are missing the declarations for REPLACE-ALL and TREE-REPLACE in the javaparser code, so it doesn't work for other users at the moment.

Collaborator

easye commented Jun 9, 2017

I had to refactor the JAVAPARSER and JSS systems to rationalize load behavior 64203af, otherwise loading JSS was failing for me.

In addition, you are missing the declarations for REPLACE-ALL and TREE-REPLACE in the javaparser code, so it doesn't work for other users at the moment.

@easye easye closed this Jun 9, 2017

@alanruttenberg

This comment has been minimized.

Show comment
Hide comment
@alanruttenberg

alanruttenberg Jun 9, 2017

Collaborator
Collaborator

alanruttenberg commented Jun 9, 2017

@alanruttenberg

This comment has been minimized.

Show comment
Hide comment
@alanruttenberg

alanruttenberg Jun 9, 2017

Collaborator
Collaborator

alanruttenberg commented Jun 9, 2017

svn2github pushed a commit to svn2github/abcl that referenced this pull request Jun 9, 2017

mevenson
Javaparser, preliminary to hook in jss
(Alan Ruttenberg)

From <armedbear/abcl@291289e>

Part of merge <armedbear/abcl#52>.

git-svn-id: http://abcl.org/svn@15062 1c010e3e-69d0-11dd-93a8-456734b0d56f

svn2github pushed a commit to svn2github/abcl that referenced this pull request Jun 9, 2017

mevenson
Utility for jss
(Alan Ruttenberg)

From <armedbear/abcl@987c18f>.

Part of merge <armedbear/abcl#52>.

git-svn-id: http://abcl.org/svn@15063 1c010e3e-69d0-11dd-93a8-456734b0d56f

svn2github pushed a commit to svn2github/abcl that referenced this pull request Jun 9, 2017

mevenson
Add jss hook and test
(Alan Ruttenberg)

From <armedbear/abcl@155db3e>.

Part of merge <armedbear/abcl#52>.

git-svn-id: http://abcl.org/svn@15064 1c010e3e-69d0-11dd-93a8-456734b0d56f
@easye

This comment has been minimized.

Show comment
Hide comment
@easye

easye Jun 9, 2017

Collaborator

Further fixes, including "stacking" the JAVAPARSER READ-INVOKE definitions in 80f8222

Collaborator

easye commented Jun 9, 2017

Further fixes, including "stacking" the JAVAPARSER READ-INVOKE definitions in 80f8222

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment