On 12 янв, 01:01, Chouser <chou...@gmail.com> wrote: > On Sun, Jan 11, 2009 at 3:30 PM, wal <valebe...@gmail.com> wrote: > > > Is it possible to access a constant inside a public static class which > > is defined inside a public interface? > > > For example: > > > package com.rabbitmq.client; > > > import java.io.IOException; > > [...skipped...] > > > public interface AMQP > > { > > public static class PROTOCOL { > > public static final int MAJOR = 8; > > public static final int MINOR = 0; > > public static final int PORT = 5672; > > } > > > public static final int FRAME_METHOD = 1; > > public static final int FRAME_HEADER = 2; > > public static final int FRAME_BODY = 3; > > > [...skipped...] > > } > > Probably com.rabbitmq.client.AMQP$PROTOCOL/PORT without parens since > it's a field not a method. > > Documented athttp://clojure.org/java_interop-- search for NestedClass > > --Chouser
Yes, it worked! Thanks a lot! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---