List of snippet events

Michael Müller michael.mueller at mueller-bruehl.de
Sun Mar 19 10:03:34 UTC 2017


Why generates

int x=3, y=4;

two snippet events, whilst

int x=3; int y=4;

is only one?


Herzliche Grüße - Best Regards,

Michael Müller
Brühl, Germany
blog.mueller-bruehl.de <http://blog.mueller-bruehl.de/>
it-rezension.de <http://it-rezension.de/>
@muellermi


Read my books
   "Web Development with Java and JSF": https://leanpub.com/jsf
   "Java Lambdas and Parallel Streams": 
http://www.apress.com/de/book/9781484224861
   "Visitors" a photographic image book: https://leanpub.com/visitors


On 03/19/2017 09:37 AM, Robert Field wrote:
>
> Good question.
>
> int x, y, z;
>
> Robert
>
> On March 19, 2017 12:48:51 AM Michael Müller 
> <michael.mueller at mueller-bruehl.de> wrote:
>
>> List<SnippetEvent> events = js.eval(input);
>>
>>
>> input: "int i = 4;" --> one snippet event
>>
>> input: "for (int i = 1; i < 10; i++) {System.out.println(i);}" --> 
>> one snippet event
>>
>> Till now, I every call to eval I made resulted in a list with exactly 
>> one element. In which situationwill the eval method return a 
>> different count of elemts?
>>
>> Or is is one element every time? If yes, why need the result to be a 
>> list?
>>
>>
>> Herzliche Grüße - Best Regards,
>>
>> Michael Müller
>> Brühl, Germany
>> blog.mueller-bruehl.de <http://blog.mueller-bruehl.de/>
>> it-rezension.de <http://it-rezension.de/>
>> @muellermi
>>
>>
>> Read my books
>>   "Web Development with Java and JSF": https://leanpub.com/jsf
>>   "Java Lambdas and Parallel Streams": 
>> http://www.apress.com/de/book/9781484224861
>>   "Visitors" a photographic image book: https://leanpub.com/visitors
>>



More information about the kulla-dev mailing list