text
stringlengths
2
1.05M
repo_name
stringlengths
5
101
path
stringlengths
4
991
language
stringclasses
3 values
license
stringclasses
5 values
size
int64
2
1.05M
<!DOCTYPE html> <title>drag &amp; drop - event sequence for draggable elements</title> <script type="text/javascript" src="/resources/testharness.js"></script> <style type="text/css"> /* use margins instead of padding to make sure the body begins at the top of the page */ html, body { margin: 0; } body { padding: 116px 8px 8px; } #testhere div { height: 100px; width: 100px; position: absolute; top: 8px; } #orange { background-color: orange; left: 8px; } #fuchsia { background-color: fuchsia; left: 158px; } #yellow { background-color: yellow; left: 308px; } #blue { background-color: navy; left: 458px; } </style> <script> setup(function () {},{explicit_done:true,timeout:30000}); window.onload = function () { var orange = document.querySelector('#orange') var fuchsia = document.querySelector('#fuchsia') var yellow = document.querySelector('#yellow') var blue = document.querySelector('#blue') var body = document.body; var events = new Array orange.ondragstart = function (e) { events.push('orange.ondragstart'); e.dataTransfer.effectAllowed = 'copy'; e.dataTransfer.setData('Text', 'foo'); }; orange.ondrag = function () { events.push('orange.ondrag'); }; orange.ondragenter = function () { events.push('orange.ondragenter'); }; orange.ondragover = function () { events.push('orange.ondragover'); }; orange.ondragleave = function () { events.push('orange.ondragleave'); }; orange.ondrop = function () { events.push('orange.ondrop'); return false; }; orange.ondragend = function () { events.push('orange.ondragend'); }; orange.onmousedown = function () { events.push('orange.onmousedown'); }; orange.onmouseup = function () { events.push('orange.onmouseup'); }; /* Events for the fuchsia box */ fuchsia.ondragstart = function () { events.push('pink.ondragstart'); }; fuchsia.ondrag = function () { events.push('pink.ondrag'); }; fuchsia.ondragenter = function () { events.push('pink.ondragenter'); }; fuchsia.ondragover = function () { events.push('pink.ondragover'); }; fuchsia.ondragleave = function () { events.push('pink.ondragleave'); }; fuchsia.ondrop = function () { events.push('pink.ondrop'); return false; }; fuchsia.ondragend = function () { events.push('pink.ondragend'); }; fuchsia.onmousedown = function () { events.push('pink.onmousedown'); }; fuchsia.onmouseup = function () { events.push('pink.onmouseup'); }; /* Events for the fuchsia box */ yellow.ondragstart = function () { events.push('yellow.ondragstart'); }; yellow.ondrag = function () { events.push('yellow.ondrag'); }; yellow.ondragenter = function () { events.push('yellow.ondragenter'); return false; }; yellow.ondragover = function () { events.push('yellow.ondragover'); return false; }; yellow.ondragleave = function () { events.push('yellow.ondragleave'); }; yellow.ondrop = function () { events.push('yellow.ondrop'); return false; }; yellow.ondragend = function () { events.push('yellow.ondragend'); }; yellow.onmousedown = function () { events.push('yellow.onmousedown'); }; yellow.onmouseup = function () { events.push('yellow.onmouseup'); }; /* Events for the blue box (droppable) */ blue.ondragstart = function () { events.push('blue.ondragstart'); }; blue.ondrag = function () { events.push('blue.ondrag'); }; blue.ondragenter = function () { events.push('blue.ondragenter'); return false; }; blue.ondragover = function () { events.push('blue.ondragover'); return false; }; blue.ondragleave = function () { events.push('blue.ondragleave'); }; blue.ondrop = function () { events.push('blue.ondrop'); return false; }; blue.ondragend = function () { events.push('blue.ondragend'); }; blue.onmousedown = function () { events.push('blue.onmousedown'); }; blue.onmouseup = function () { events.push('blue.onmouseup'); }; /* Events for the page body */ body.ondragstart = function (e) { events.push( ( e.target == body ) ? 'body.ondragstart': 'bubble.ondragstart' ); }; body.ondrag = function (e) { events.push( ( e.target == body ) ? 'body.ondrag': 'bubble.ondrag' ); }; body.ondragenter = function (e) { events.push( ( e.target == body ) ? 'body.ondragenter': 'bubble.ondragenter' ); }; body.ondragover = function (e) { events.push( ( e.target == body ) ? 'body.ondragover': 'bubble.ondragover' ); }; body.ondragleave = function (e) { events.push( ( e.target == body ) ? 'body.ondragleave': 'bubble.ondragleave' ); }; body.ondrop = function (e) { events.push( ( e.target == body ) ? 'body.ondrop': 'bubble.ondrop' ); }; body.ondragend = function (e) { events.push( ( e.target == body ) ? 'body.ondragend': 'bubble.ondragend' ); setTimeout(finish,100); }; body.onmousedown = function (e) { events.push( ( e.target == body ) ? 'body.onmousedown': 'bubble.onmousedown' ); }; body.onmouseup = function (e) { events.push( ( e.target == body ) ? 'body.onmouseup': 'bubble.onmouseup' ); }; function finish(e) { var i, evindex; events = events.join('-'); /* Normalise; reduce repeating event sequences to only 2 occurrences. This makes the final event sequence predictable, no matter how many times the drag->dragover sequences repeat. Two occurrances are kept in each case to allow testing to make sure the sequence really is repeating. */ //spec compliant - div dragenter is not cancelled, so body dragenter fires and body becomes current target //repeats while drag is over orange or fuchsia or the body events = events.replace(/(-orange\.ondrag-bubble\.ondrag-body\.ondragover){3,}/g,'$1$1'); //repeats while dragging over yellow events = events.replace(/(-orange\.ondrag-bubble\.ondrag-yellow\.ondragover-bubble\.ondragover){3,}/g,'$1$1'); //repeats while dragging over blue events = events.replace(/(-orange\.ondrag-bubble\.ondrag-blue\.ondragover-bubble\.ondragover){3,}/g,'$1$1'); //non-spec-compliant repeats while dragging over orange events = events.replace(/(-orange\.ondrag-bubble\.ondrag-orange\.ondragover-bubble\.ondragover){3,}/g,'$1$1'); //non-spec-compliant repeats while dragging over fuchsia events = events.replace(/(-orange\.ondrag-bubble\.ondrag-pink\.ondragover-bubble\.ondragover){3,}/g,'$1$1'); events = events.split(/-/g); test(function () { assert_equals( events.length, 74 ); }, "Normalised number of events"); test(function () { assert_equals(events.join(','), /* 1 */ 'orange.onmousedown,'+ //mouse down /* 2 */ 'bubble.onmousedown,'+ /* 3 */ 'orange.ondragstart,'+ //dragging begins /* 4 */ 'bubble.ondragstart,'+ /* 5 */ 'orange.ondrag,'+ //mouse is over orange /* 6 */ 'bubble.ondrag,'+ /* 7 */ 'orange.ondragenter,'+ //not cancelled /* 8 */ 'bubble.ondragenter,'+ /* 9 */ 'body.ondragenter,'+ //so body becomes current target, and the event fires there as well /* 10 */ 'body.ondragover,'+ /* 11 */ 'orange.ondrag,'+ //start repeating (some over orange, some over body) /* 12 */ 'bubble.ondrag,'+ /* 13 */ 'body.ondragover,'+ /* 14 */ 'orange.ondrag,'+ //...twice to make sure it actually repeats /* 15 */ 'bubble.ondrag,'+ /* 16 */ 'body.ondragover,'+ //end repeating /* 17 */ 'orange.ondrag,'+ //mouse moves over pink /* 18 */ 'bubble.ondrag,'+ /* 19 */ 'pink.ondragenter,'+ //not cancelled /* 20 */ 'bubble.ondragenter,'+ /* 21 */ 'body.ondragover,'+ //so body becomes current target, but since it was already the target, dragenter does not need to fire again /* 22 */ 'orange.ondrag,'+ //start repeating (some over pink, some over body) /* 23 */ 'bubble.ondrag,'+ /* 24 */ 'body.ondragover,'+ /* 25 */ 'orange.ondrag,'+ //...twice to make sure it actually repeats /* 26 */ 'bubble.ondrag,'+ /* 27 */ 'body.ondragover,'+ //end repeating /* 28 */ 'orange.ondrag,'+ //mouse moves over yellow /* 29 */ 'bubble.ondrag,'+ /* 30 */ 'yellow.ondragenter,'+ /* 31 */ 'bubble.ondragenter,'+ /* 32 */ 'body.ondragleave,'+ /* 33 */ 'yellow.ondragover,'+ /* 34 */ 'bubble.ondragover,'+ /* 35 */ 'orange.ondrag,'+ //start repeating (over yellow) /* 36 */ 'bubble.ondrag,'+ /* 37 */ 'yellow.ondragover,'+ /* 38 */ 'bubble.ondragover,'+ /* 39 */ 'orange.ondrag,'+ //...twice to make sure it actually repeats /* 40 */ 'bubble.ondrag,'+ /* 41 */ 'yellow.ondragover,'+ /* 42 */ 'bubble.ondragover,'+ //end repeating /* 43 */ 'orange.ondrag,'+ //mouse moves over body /* 44 */ 'bubble.ondrag,'+ /* 45 */ 'body.ondragenter,'+ //not cancelled /* 46 */ 'body.ondragenter,'+ //so it fires again and sets body as current target /* 47 */ 'yellow.ondragleave,'+ /* 48 */ 'bubble.ondragleave,'+ /* 49 */ 'body.ondragover,'+ /* 50 */ 'orange.ondrag,'+ //start repeating (over body) /* 51 */ 'bubble.ondrag,'+ /* 52 */ 'body.ondragover,'+ /* 53 */ 'orange.ondrag,'+ //...twice to make sure it actually repeats /* 54 */ 'bubble.ondrag,'+ /* 55 */ 'body.ondragover,'+ //end repeating /* 56 */ 'orange.ondrag,'+ //mouse moves over blue /* 57 */ 'bubble.ondrag,'+ /* 58 */ 'blue.ondragenter,'+ /* 59 */ 'bubble.ondragenter,'+ /* 60 */ 'body.ondragleave,'+ /* 61 */ 'blue.ondragover,'+ /* 62 */ 'bubble.ondragover,'+ /* 63 */ 'orange.ondrag,'+ //start repeating (over blue) /* 64 */ 'bubble.ondrag,'+ /* 65 */ 'blue.ondragover,'+ /* 66 */ 'bubble.ondragover,'+ /* 67 */ 'orange.ondrag,'+ //...twice to make sure it actually repeats /* 68 */ 'bubble.ondrag,'+ /* 69 */ 'blue.ondragover,'+ /* 70 */ 'bubble.ondragover,'+ //end repeating /* 71 */ 'blue.ondrop,'+ //release /* 72 */ 'bubble.ondrop,'+ /* 73 */ 'orange.ondragend,'+ /* 74 */ 'bubble.ondragend' ); }, 'Overall sequence'); /* ondragstart */ test(function () { assert_true( events.indexOf('orange.ondragstart') != -1 ); }, "orange.ondragstart should fire"); test(function () { assert_equals( events.filter(function (e) { if (e == 'orange.ondragstart') return e; }).length, 1); }, "orange.ondragstart should fire 1 time"); test(function () { assert_equals( events[2], 'orange.ondragstart' ); }, "orange.ondragstart should be event handler #3"); test(function () { assert_equals( events.indexOf('pink.ondragstart'), -1 ); }, "pink.ondragstart should not fire"); test(function () { assert_equals( events.indexOf('yellow.ondragstart'), -1 ); }, "yellow.ondragstart should not fire"); test(function () { assert_equals( events.indexOf('blue.ondragstart'), -1 ); }, "blue.ondragstart should not fire"); test(function () { assert_equals( events.indexOf('body.ondragstart'), -1 ); }, "ondragstart should not fire at the body"); test(function () { assert_true( events.indexOf('bubble.ondragstart') != -1 ); }, "ondragstart should bubble to body"); test(function () { assert_equals( events.filter(function (e) { if (e == 'bubble.ondragstart') return e; }).length, 1); }, "ondragstart should only bubble to body 1 time"); test(function () { assert_equals( events[3], 'bubble.ondragstart' ); }, "ondragstart should bubble to body as event handler #4"); /* ondrag */ test(function () { assert_true( events.indexOf('orange.ondrag') != -1 ); }, "orange.ondrag should fire"); test(function () { assert_equals( events.filter(function (e) { if (e == 'orange.ondrag') return e; }).length, 15); }, "orange.ondrag should fire 15 times"); for( var i = 0, evindex = [4,10,13,16,21,24,27,34,38,42,49,52,55,62,66]; i < evindex.length; i++ ) { test(function () { assert_equals( events[evindex[i]], 'orange.ondrag' ); }, "orange.ondrag should be event handler #"+(evindex[i]+1)); } test(function () { assert_equals( events.indexOf('pink.ondrag'), -1 ); }, "pink.ondrag should not fire"); test(function () { assert_equals( events.indexOf('yellow.ondrag'), -1 ); }, "yellow.ondrag should not fire"); test(function () { assert_equals( events.indexOf('blue.ondrag'), -1 ); }, "blue.ondrag should not fire"); test(function () { assert_equals( events.indexOf('body.ondrag'), -1 ); }, "ondrag should not fire at the body"); test(function () { assert_true( events.indexOf('bubble.ondrag') != -1 ); }, "ondrag should bubble to body"); test(function () { assert_equals( events.filter(function (e) { if (e == 'bubble.ondrag') return e; }).length, 15); }, "ondrag should bubble to body 15 times"); for( var i = 0, evindex = [5,11,14,17,22,25,28,35,39,43,50,53,56,63,67]; i < evindex.length; i++ ) { test(function () { assert_equals( events[evindex[i]], 'bubble.ondrag' ); }, "ondrag should bubble to body as event handler #"+(evindex[i]+1)); } /* ondragenter */ test(function () { assert_true( events.indexOf('orange.ondragenter') != -1 ); }, "orange.ondragenter should fire"); test(function () { assert_equals( events.filter(function (e) { if (e == 'orange.ondragenter') return e; }).length, 1); }, "orange.ondragenter should fire 1 time"); test(function () { assert_equals( events[6], 'orange.ondragenter' ); }, "orange.ondragenter should be event handler #7"); test(function () { assert_true( events.indexOf('pink.ondragenter') != -1 ); }, "pink.ondragenter should fire"); test(function () { assert_equals( events.filter(function (e) { if (e == 'pink.ondragenter') return e; }).length, 1); }, "pink.ondragenter should fire 1 time"); test(function () { assert_equals( events[18], 'pink.ondragenter' ); }, "pink.ondragenter should be event handler #19"); test(function () { assert_true( events.indexOf('yellow.ondragenter') != -1 ); }, "yellow.ondragenter should fire"); test(function () { assert_equals( events.filter(function (e) { if (e == 'yellow.ondragenter') return e; }).length, 1); }, "yellow.ondragenter should fire 1 time"); test(function () { assert_equals( events[29], 'yellow.ondragenter' ); }, "yellow.ondragenter should be event handler #30"); test(function () { assert_true( events.indexOf('blue.ondragenter') != -1 ); }, "blue.ondragenter should fire"); test(function () { assert_equals( events.filter(function (e) { if (e == 'blue.ondragenter') return e; }).length, 1); }, "blue.ondragenter should fire 1 time"); test(function () { assert_equals( events[57], 'blue.ondragenter' ); }, "blue.ondragenter should be event handler #58"); test(function () { assert_true( events.indexOf('body.ondragenter') != -1 ); }, "ondragenter should fire at body"); test(function () { assert_equals( events.filter(function (e) { if (e == 'body.ondragenter') return e; }).length, 3); }, "ondragenter should fire at body 2 times"); for( var i = 0, evindex = [8,44,45]; i < evindex.length; i++ ) { test(function () { assert_equals( events[evindex[i]], 'body.ondragenter' ); }, "ondragenter should fire at body as event handler #"+(evindex[i]+1)); } test(function () { assert_true( events.indexOf('bubble.ondragenter') != -1 ); }, "ondragenter should bubble to body"); test(function () { assert_equals( events.filter(function (e) { if (e == 'bubble.ondragenter') return e; }).length, 4); }, "ondragenter should bubble to body 4 times"); for( var i = 0, evindex = [7,19,30,58]; i < evindex.length; i++ ) { test(function () { assert_equals( events[evindex[i]], 'bubble.ondragenter' ); }, "ondragenter should bubble to body as event handler #"+(evindex[i]+1)); } /* ondragover */ test(function () { assert_equals( events.indexOf('orange.ondragover'), -1 ); }, "orange.ondragover should not fire"); test(function () { assert_equals( events.indexOf('pink.ondragover'), -1 ); }, "pink.ondragover should not fire"); test(function () { assert_true( events.indexOf('yellow.ondragover') != -1 ); }, "yellow.ondragover should fire"); test(function () { assert_equals( events.filter(function (e) { if (e == 'yellow.ondragover') return e; }).length, 3); }, "yellow.ondragover should fire 3 times"); for( var i = 0, evindex = [32,36,40]; i < evindex.length; i++ ) { test(function () { assert_equals( events[evindex[i]], 'yellow.ondragover' ); }, "yellow.ondragover should be event handler #"+(evindex[i]+1)); } test(function () { assert_true( events.indexOf('blue.ondragover') != -1 ); }, "blue.ondragover should fire"); test(function () { assert_equals( events.filter(function (e) { if (e == 'blue.ondragover') return e; }).length, 3); }, "blue.ondragover should fire 9 times"); for( var i = 0, evindex = [60,64,68]; i < evindex.length; i++ ) { test(function () { assert_equals( events[evindex[i]], 'blue.ondragover' ); }, "blue.ondragover should be event handler #"+(evindex[i]+1)); } test(function () { assert_true( events.indexOf('body.ondragover') != -1 ); }, "ondragover should fire at body"); test(function () { assert_equals( events.filter(function (e) { if (e == 'body.ondragover') return e; }).length, 9); }, "ondragover should fire at body 2 times"); for( var i = 0, evindex = [9,12,15,20,23,26,48,51,54]; i < evindex.length; i++ ) { test(function () { assert_equals( events[evindex[i]], 'body.ondragover' ); }, "ondragover should fire at body as event handler #"+(evindex[i]+1)); } test(function () { assert_true( events.indexOf('bubble.ondragover') != -1 ); }, "ondragover should bubble to body"); test(function () { assert_equals( events.filter(function (e) { if (e == 'bubble.ondragover') return e; }).length, 6); }, "ondragover should bubble to body 6 times"); for( var i = 0, evindex = [33,37,41,61,65,69]; i < evindex.length; i++ ) { test(function () { assert_equals( events[evindex[i]], 'bubble.ondragover' ); }, "ondragover should bubble to body as event handler #"+(evindex[i]+1)); } /* ondragleave */ test(function () { assert_equals( events.indexOf('orange.ondragleave'), -1 ); }, "orange.ondragleave should not fire"); test(function () { assert_equals( events.indexOf('pink.ondragleave'), -1 ); }, "pink.ondragleave should not fire"); test(function () { assert_true( events.indexOf('yellow.ondragleave') != -1 ); }, "yellow.ondragleave should fire"); test(function () { assert_equals( events.filter(function (e) { if (e == 'yellow.ondragleave') return e; }).length, 1); }, "yellow.ondragleave should fire 1 time"); test(function () { assert_equals( events[46], 'yellow.ondragleave' ); }, "yellow.ondragleave should be event handler #47"); test(function () { assert_equals( events.indexOf('blue.ondragleave'), -1 ); }, "blue.ondragleave should not fire"); test(function () { assert_true( events.indexOf('body.ondragleave') != -1 ); }, "ondragleave should fire at body"); test(function () { assert_equals( events.filter(function (e) { if (e == 'body.ondragleave') return e; }).length, 2); }, "ondragleave should fire at body 2 times"); for( var i = 0, evindex = [31,59]; i < evindex.length; i++ ) { test(function () { assert_equals( events[evindex[i]], 'body.ondragleave' ); }, "ondragleave should fire at body as event handler #"+(evindex[i]+1)); } test(function () { assert_true( events.indexOf('bubble.ondragleave') != -1 ); }, "ondragleave should bubble to body"); test(function () { assert_equals( events.filter(function (e) { if (e == 'bubble.ondragleave') return e; }).length, 1); }, "ondragleave should bubble to body 1 time"); test(function () { assert_equals( events[47], 'bubble.ondragleave' ); }, "ondragleave should bubble to body as event handler #48"); /* ondrop */ test(function () { assert_equals( events.indexOf('orange.ondrop'), -1 ); }, "orange.ondrop should not fire"); test(function () { assert_equals( events.indexOf('pink.ondrop'), -1 ); }, "pink.ondrop should not fire"); test(function () { assert_equals( events.indexOf('yellow.ondrop'), -1 ); }, "yellow.ondrop should not fire"); test(function () { assert_true( events.indexOf('blue.ondrop') != -1 ); }, "blue.ondrop should fire"); test(function () { assert_equals( events.filter(function (e) { if (e == 'blue.ondrop') return e; }).length, 1); }, "blue.ondrop should fire 1 time"); test(function () { assert_equals( events[70], 'blue.ondrop' ); }, "blue.ondrop should be event handler #71"); test(function () { assert_equals( events.indexOf('body.ondrop'), -1 ); }, "ondrop should not fire at body"); test(function () { assert_true( events.indexOf('bubble.ondrop') != -1 ); }, "ondrop should bubble to body"); test(function () { assert_equals( events.filter(function (e) { if (e == 'bubble.ondrop') return e; }).length, 1); }, "ondrop should bubble to body 1 time"); test(function () { assert_equals( events[71], 'bubble.ondrop' ); }, "ondrop should bubble to body as event handler #72"); /* ondragend */ test(function () { assert_true( events.indexOf('orange.ondragend') != -1 ); }, "orange.ondragend should fire"); test(function () { assert_equals( events.filter(function (e) { if (e == 'orange.ondragend') return e; }).length, 1); }, "orange.ondragend should fire 1 time"); test(function () { assert_equals( events[72], 'orange.ondragend' ); }, "orange.ondragend should be event handler #73"); test(function () { assert_equals( events.indexOf('pink.ondragend'), -1 ); }, "pink.ondragend should not fire"); test(function () { assert_equals( events.indexOf('yellow.ondragend'), -1 ); }, "yellow.ondragend should not fire"); test(function () { assert_equals( events.indexOf('blue.ondragend'), -1 ); }, "blue.ondragend should not fire"); test(function () { assert_equals( events.indexOf('body.ondragend'), -1 ); }, "ondragend should not fire at body"); test(function () { assert_true( events.indexOf('bubble.ondragend') != -1 ); }, "ondragend should bubble to body"); test(function () { assert_equals( events.filter(function (e) { if (e == 'bubble.ondragend') return e; }).length, 1); }, "ondragend should bubble to body 1 time"); test(function () { assert_equals( events[73], 'bubble.ondragend' ); }, "ondragend should bubble to body as event handler #74"); /* onmousedown */ test(function () { assert_true( events.indexOf('orange.onmousedown') != -1 ); }, "orange.onmousedown should fire"); test(function () { assert_equals( events.filter(function (e) { if (e == 'orange.onmousedown') return e; }).length, 1); }, "orange.onmousedown should fire 1 time"); test(function () { assert_equals( events[0], 'orange.onmousedown' ); }, "orange.onmousedown should be event handler #1"); test(function () { assert_equals( events.indexOf('pink.onmousedown'), -1 ); }, "pink.onmousedown should not fire"); test(function () { assert_equals( events.indexOf('yellow.onmousedown'), -1 ); }, "yellow.onmousedown should not fire"); test(function () { assert_equals( events.indexOf('blue.onmousedown'), -1 ); }, "blue.onmousedown should not fire"); test(function () { assert_equals( events.indexOf('body.onmousedown'), -1 ); }, "onmousedown should not fire at body"); test(function () { assert_true( events.indexOf('bubble.onmousedown') != -1 ); }, "onmousedown should bubble to body"); test(function () { assert_equals( events.filter(function (e) { if (e == 'bubble.onmousedown') return e; }).length, 1); }, "onmousedown should bubble to body 1 time"); test(function () { assert_equals( events[1], 'bubble.onmousedown' ); }, "onmousedown should bubble to body as event handler #1"); /* onmouseup */ test(function () { assert_equals( events.indexOf('orange.onmouseup'), -1 ); }, "orange.onmouseup should not fire"); test(function () { assert_equals( events.indexOf('pink.onmouseup'), -1 ); }, "pink.onmouseup should not fire"); test(function () { assert_equals( events.indexOf('yellow.onmouseup'), -1 ); }, "yellow.onmouseup should not fire"); test(function () { assert_equals( events.indexOf('blue.onmouseup'), -1 ); }, "blue.onmouseup should not fire"); test(function () { assert_equals( events.indexOf('body.onmouseup'), -1 ); }, "onmouseup should not fire at body"); test(function () { assert_equals( events.indexOf('bubble.onmouseup'), -1 ); }, "onmouseup should not bubble to body"); done(); } }; </script> <div id="testhere"> <div draggable='true' id='orange'></div> <div id='fuchsia'></div> <div id='yellow'></div> <div id='blue'></div> </div> <p>If you have already clicked on this page, reload it.</p> <p>Use your pointing device to slowly drag the orange square over the pink square then the yellow square, then the blue square, and release it over the blue square (make sure the mouse remains over each square for at least 1 second, and over the gaps between squares for at least 1 second). Fail if no new text appears below.</p> <div id="log"></div>
frivoal/presto-testo
core/standards/dnd/events/events-suite.html
HTML
bsd-3-clause
24,906
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <head> <title>Forms :: textarea : padding</title> <style type="text/css"> form * { font-family: Ahem; font-size: 1em; line-height: 1em; } fieldset, form>div { padding: 0; margin: 10px; border: none; } textarea, div div { color: black; background: lime; padding: 2em; margin: 0; border: none; width: 1em; height: 1em; overflow: hidden; resize: none; } </style> </head> <body> <h4>Ahem font required for this test</h4> <p>there should be two identical patterns below</p> <form action=""> <fieldset> <textarea rows="" cols="">x</textarea> </fieldset> <div> <div>x</div> </div> </form> </body> </html>
frivoal/presto-testo
core/standards/forms/textarea-padding.html
HTML
bsd-3-clause
681
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>A quick animation test</title> </head> <body> <table> <tr> <td align="center">SVG Image</td> <td align="center">Reference Image</td> </tr> <tr> <td align="right"> <object data="../svggen/animate-elem-20-t.svg" width="480" height="360" type="image/svg+xml"/> </td> <td align="left"> <img alt="raster image of animate-elem-20-t" src="../png/full-animate-elem-20-t.png" width="480" height="360"/> </td> </tr> </table> <p> Click on "fade in", after completed animation compare with the reference image and then click on "fade out". With a second click on "fade in" the red square goes from white to red, and then goes back from red to white. </p> </body> </html>
frivoal/presto-testo
SVG/Testsuites/W3C/tiny/full-animate-elem-20-t.html
HTML
bsd-3-clause
950
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> <title>org.apache.commons.math3.geometry.euclidean.twod.hull (Apache Commons Math 3.5 API)</title> <link rel="stylesheet" type="text/css" href="../../../../../../../../stylesheet.css" title="Style"> </head> <body> <script type="text/javascript"><!-- if (location.href.indexOf('is-external=true') == -1) { parent.document.title="org.apache.commons.math3.geometry.euclidean.twod.hull (Apache Commons Math 3.5 API)"; } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar_top"> <!-- --> </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../../../../overview-summary.html">Overview</a></li> <li class="navBarCell1Rev">Package</li> <li>Class</li> <li><a href="package-use.html">Use</a></li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../../../../index-all.html">Index</a></li> <li><a href="../../../../../../../../help-doc.html">Help</a></li> </ul> <div class="aboutLanguage"><em><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script></em></div> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../../../../../org/apache/commons/math3/geometry/euclidean/twod/package-summary.html">PREV PACKAGE</a></li> <li><a href="../../../../../../../../org/apache/commons/math3/geometry/hull/package-summary.html">NEXT PACKAGE</a></li> </ul> <ul class="navList"> <li><a href="../../../../../../../../index.html?org/apache/commons/math3/geometry/euclidean/twod/hull/package-summary.html" target="_top">FRAMES</a></li> <li><a href="package-summary.html" target="_top">NO FRAMES</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../../../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip-navbar_top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <div class="header"> <h1 title="Package" class="title">Package&nbsp;org.apache.commons.math3.geometry.euclidean.twod.hull</h1> <p class="subTitle"> <div class="block"> This package provides algorithms to generate the convex hull for a set of points in an two-dimensional euclidean space.</div> </p> <p>See:&nbsp;<a href="#package_description">Description</a></p> </div> <div class="contentContainer"> <ul class="blockList"> <li class="blockList"> <table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Interface Summary table, listing interfaces, and an explanation"> <caption><span>Interface Summary</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Interface</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><a href="../../../../../../../../org/apache/commons/math3/geometry/euclidean/twod/hull/ConvexHullGenerator2D.html" title="interface in org.apache.commons.math3.geometry.euclidean.twod.hull">ConvexHullGenerator2D</a></td> <td class="colLast"> <div class="block">Interface for convex hull generators in the two-dimensional euclidean space.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"> <table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Class Summary table, listing classes, and an explanation"> <caption><span>Class Summary</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Class</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><a href="../../../../../../../../org/apache/commons/math3/geometry/euclidean/twod/hull/AklToussaintHeuristic.html" title="class in org.apache.commons.math3.geometry.euclidean.twod.hull">AklToussaintHeuristic</a></td> <td class="colLast"> <div class="block">A simple heuristic to improve the performance of convex hull algorithms.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../../../../../org/apache/commons/math3/geometry/euclidean/twod/hull/ConvexHull2D.html" title="class in org.apache.commons.math3.geometry.euclidean.twod.hull">ConvexHull2D</a></td> <td class="colLast"> <div class="block">This class represents a convex hull in an two-dimensional euclidean space.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../../../../../org/apache/commons/math3/geometry/euclidean/twod/hull/MonotoneChain.html" title="class in org.apache.commons.math3.geometry.euclidean.twod.hull">MonotoneChain</a></td> <td class="colLast"> <div class="block">Implements Andrew's monotone chain method to generate the convex hull of a finite set of points in the two-dimensional euclidean space.</div> </td> </tr> </tbody> </table> </li> </ul> <a name="package_description"> <!-- --> </a> <h2 title="Package org.apache.commons.math3.geometry.euclidean.twod.hull Description">Package org.apache.commons.math3.geometry.euclidean.twod.hull Description</h2> <div class="block"><p> This package provides algorithms to generate the convex hull for a set of points in an two-dimensional euclidean space. </p></div> </div> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar_bottom"> <!-- --> </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../../../../overview-summary.html">Overview</a></li> <li class="navBarCell1Rev">Package</li> <li>Class</li> <li><a href="package-use.html">Use</a></li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../../../../index-all.html">Index</a></li> <li><a href="../../../../../../../../help-doc.html">Help</a></li> </ul> <div class="aboutLanguage"><em><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script></em></div> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../../../../../org/apache/commons/math3/geometry/euclidean/twod/package-summary.html">PREV PACKAGE</a></li> <li><a href="../../../../../../../../org/apache/commons/math3/geometry/hull/package-summary.html">NEXT PACKAGE</a></li> </ul> <ul class="navList"> <li><a href="../../../../../../../../index.html?org/apache/commons/math3/geometry/euclidean/twod/hull/package-summary.html" target="_top">FRAMES</a></li> <li><a href="package-summary.html" target="_top">NO FRAMES</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../../../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip-navbar_bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> <p class="legalCopy"><small>Copyright &#169; 2003&#x2013;2015 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> </body> </html>
AlexFiliakov/BlackScholesCalculator
src/com/alexfiliakov/blackscholescalc/commons-math3-3.5/docs/apidocs/org/apache/commons/math3/geometry/euclidean/twod/hull/package-summary.html
HTML
mit
7,939
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>Class template time_duration</title> <link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> <link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset"> <link rel="up" href="../../date_time/doxy.html#header.boost.date_time.time_duration_hpp" title="Header &lt;boost/date_time/time_duration.hpp&gt;"> <link rel="prev" href="second_clock.html" title="Class template second_clock"> <link rel="next" href="subsecond_duration.html" title="Class template subsecond_duration"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td> <td align="center"><a href="../../../../index.html">Home</a></td> <td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td> <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> <td align="center"><a href="../../../../more/index.htm">More</a></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="second_clock.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../date_time/doxy.html#header.boost.date_time.time_duration_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="subsecond_duration.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="refentry"> <a name="boost.date_time.time_duration"></a><div class="titlepage"></div> <div class="refnamediv"> <h2><span class="refentrytitle">Class template time_duration</span></h2> <p>boost::date_time::time_duration &#8212; Represents some amount of elapsed time measure to a given resolution. </p> </div> <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2> <div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../date_time/doxy.html#header.boost.date_time.time_duration_hpp" title="Header &lt;boost/date_time/time_duration.hpp&gt;">boost/date_time/time_duration.hpp</a>&gt; </span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> rep_type<span class="special">&gt;</span> <span class="keyword">class</span> <a class="link" href="time_duration.html" title="Class template time_duration">time_duration</a> <span class="special">:</span> <span class="keyword">private</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">less_than_comparable</span><span class="special">&lt;</span> <span class="identifier">T</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">equality_comparable</span><span class="special">&lt;</span> <span class="identifier">T</span> <span class="special">&gt;</span> <span class="special">&gt;</span> <span class="special">{</span> <span class="keyword">public</span><span class="special">:</span> <span class="comment">// types</span> <span class="keyword">typedef</span> <span class="keyword">void</span> <a name="boost.date_time.time_duration.is__1_3_14_15_3_47_1_1_1_5"></a><span class="identifier">_is_boost_date_time_duration</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">T</span> <a name="boost.date_time.time_duration.duration_type"></a><span class="identifier">duration_type</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">rep_type</span> <a name="boost.date_time.time_duration.traits_type"></a><span class="identifier">traits_type</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">rep_type</span><span class="special">::</span><span class="identifier">day_type</span> <a name="boost.date_time.time_duration.day_type"></a><span class="identifier">day_type</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">rep_type</span><span class="special">::</span><span class="identifier">hour_type</span> <a name="boost.date_time.time_duration.hour_type"></a><span class="identifier">hour_type</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">rep_type</span><span class="special">::</span><span class="identifier">min_type</span> <a name="boost.date_time.time_duration.min_type"></a><span class="identifier">min_type</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">rep_type</span><span class="special">::</span><span class="identifier">sec_type</span> <a name="boost.date_time.time_duration.sec_type"></a><span class="identifier">sec_type</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">rep_type</span><span class="special">::</span><span class="identifier">fractional_seconds_type</span> <a name="boost.date_time.time_duration.fractional_seconds_type"></a><span class="identifier">fractional_seconds_type</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">rep_type</span><span class="special">::</span><span class="identifier">tick_type</span> <a name="boost.date_time.time_duration.tick_type"></a><span class="identifier">tick_type</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">rep_type</span><span class="special">::</span><span class="identifier">impl_type</span> <a name="boost.date_time.time_duration.impl_type"></a><span class="identifier">impl_type</span><span class="special">;</span> <span class="comment">// <a class="link" href="time_duration.html#boost.date_time.time_durationconstruct-copy-destruct">construct/copy/destruct</a></span> <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_16-bb"><span class="identifier">time_duration</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span> <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_17-bb"><span class="identifier">time_duration</span></a><span class="special">(</span><span class="identifier">hour_type</span><span class="special">,</span> <span class="identifier">min_type</span><span class="special">,</span> <span class="identifier">sec_type</span> <span class="special">=</span> <span class="number">0</span><span class="special">,</span> <span class="identifier">fractional_seconds_type</span> <span class="special">=</span> <span class="number">0</span><span class="special">)</span><span class="special">;</span> <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_18-bb"><span class="identifier">time_duration</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="time_duration.html" title="Class template time_duration">time_duration</a><span class="special">&lt;</span> <span class="identifier">T</span><span class="special">,</span> <span class="identifier">rep_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span> <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_19-bb"><span class="identifier">time_duration</span></a><span class="special">(</span><span class="identifier">special_values</span><span class="special">)</span><span class="special">;</span> <span class="keyword">explicit</span> <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_22-bb"><span class="identifier">time_duration</span></a><span class="special">(</span><span class="identifier">impl_type</span><span class="special">)</span><span class="special">;</span> <span class="comment">// <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_15-bb">public member functions</a></span> <span class="identifier">hour_type</span> <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_15_1-bb"><span class="identifier">hours</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="identifier">min_type</span> <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_15_2-bb"><span class="identifier">minutes</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="identifier">sec_type</span> <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_15_3-bb"><span class="identifier">seconds</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="identifier">sec_type</span> <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_15_4-bb"><span class="identifier">total_seconds</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="identifier">tick_type</span> <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_15_5-bb"><span class="identifier">total_milliseconds</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="identifier">tick_type</span> <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_15_6-bb"><span class="identifier">total_nanoseconds</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="identifier">tick_type</span> <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_15_7-bb"><span class="identifier">total_microseconds</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="identifier">fractional_seconds_type</span> <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_15_8-bb"><span class="identifier">fractional_seconds</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="identifier">duration_type</span> <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_15_9-bb"><span class="identifier">invert_sign</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">bool</span> <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_15_10-bb"><span class="identifier">is_negative</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">bool</span> <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_15_11-bb"><span class="keyword">operator</span><span class="special">&lt;</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="time_duration.html" title="Class template time_duration">time_duration</a> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">bool</span> <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_15_12-bb"><span class="keyword">operator</span><span class="special">==</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="time_duration.html" title="Class template time_duration">time_duration</a> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="identifier">duration_type</span> <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_15_13-bb"><span class="keyword">operator</span><span class="special">-</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="identifier">duration_type</span> <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_15_14-bb"><span class="keyword">operator</span><span class="special">-</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">duration_type</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="identifier">duration_type</span> <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_15_15-bb"><span class="keyword">operator</span><span class="special">+</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">duration_type</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="identifier">duration_type</span> <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_15_16-bb"><span class="keyword">operator</span><span class="special">/</span></a><span class="special">(</span><span class="keyword">int</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="identifier">duration_type</span> <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_15_17-bb"><span class="keyword">operator</span><span class="special">-=</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">duration_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span> <span class="identifier">duration_type</span> <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_15_18-bb"><span class="keyword">operator</span><span class="special">+=</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">duration_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span> <span class="identifier">duration_type</span> <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_15_19-bb"><span class="keyword">operator</span><span class="special">/=</span></a><span class="special">(</span><span class="keyword">int</span><span class="special">)</span><span class="special">;</span> <span class="identifier">duration_type</span> <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_15_20-bb"><span class="keyword">operator</span><span class="special">*</span></a><span class="special">(</span><span class="keyword">int</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="identifier">duration_type</span> <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_15_21-bb"><span class="keyword">operator</span><span class="special">*=</span></a><span class="special">(</span><span class="keyword">int</span><span class="special">)</span><span class="special">;</span> <span class="identifier">tick_type</span> <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_15_22-bb"><span class="identifier">ticks</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">bool</span> <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_15_23-bb"><span class="identifier">is_special</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">bool</span> <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_15_24-bb"><span class="identifier">is_pos_infinity</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">bool</span> <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_15_25-bb"><span class="identifier">is_neg_infinity</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">bool</span> <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_15_26-bb"><span class="identifier">is_not_a_date_time</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="identifier">impl_type</span> <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_15_27-bb"><span class="identifier">get_rep</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="comment">// <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_20-bb">public static functions</a></span> <span class="keyword">static</span> <span class="identifier">duration_type</span> <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_20_1-bb"><span class="identifier">unit</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span> <span class="keyword">static</span> <span class="identifier">tick_type</span> <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_20_2-bb"><span class="identifier">ticks_per_second</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span> <span class="keyword">static</span> <span class="identifier">time_resolutions</span> <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_20_3-bb"><span class="identifier">resolution</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span> <span class="keyword">static</span> <span class="keyword">unsigned</span> <span class="keyword">short</span> <a class="link" href="time_duration.html#id-1_3_14_15_3_47_1_1_1_20_4-bb"><span class="identifier">num_fractional_digits</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span> <span class="special">}</span><span class="special">;</span></pre></div> <div class="refsect1"> <a name="id-1.3.14.15.3.46.3.4"></a><h2>Description</h2> <p>This class represents a standard set of capabilities for all counted time durations. Time duration implementations should derive from this class passing their type as the first template parameter. This design allows the subclass duration types to provide custom construction policies or other custom features not provided here.</p> <p> </p> <div class="refsect2"> <a name="id-1.3.14.15.3.46.3.4.4"></a><h3> <a name="boost.date_time.time_durationconstruct-copy-destruct"></a><code class="computeroutput">time_duration</code> public construct/copy/destruct</h3> <div class="orderedlist"><ol class="orderedlist" type="1"> <li class="listitem"><pre class="literallayout"><a name="id-1_3_14_15_3_47_1_1_1_16-bb"></a><span class="identifier">time_duration</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li> <li class="listitem"><pre class="literallayout"><a name="id-1_3_14_15_3_47_1_1_1_17-bb"></a><span class="identifier">time_duration</span><span class="special">(</span><span class="identifier">hour_type</span> hours_in<span class="special">,</span> <span class="identifier">min_type</span> minutes_in<span class="special">,</span> <span class="identifier">sec_type</span> seconds_in <span class="special">=</span> <span class="number">0</span><span class="special">,</span> <span class="identifier">fractional_seconds_type</span> frac_sec_in <span class="special">=</span> <span class="number">0</span><span class="special">)</span><span class="special">;</span></pre></li> <li class="listitem"> <pre class="literallayout"><a name="id-1_3_14_15_3_47_1_1_1_18-bb"></a><span class="identifier">time_duration</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="time_duration.html" title="Class template time_duration">time_duration</a><span class="special">&lt;</span> <span class="identifier">T</span><span class="special">,</span> <span class="identifier">rep_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span> other<span class="special">)</span><span class="special">;</span></pre>Construct from another <code class="computeroutput"><a class="link" href="time_duration.html" title="Class template time_duration">time_duration</a></code> (Copy constructor) </li> <li class="listitem"> <pre class="literallayout"><a name="id-1_3_14_15_3_47_1_1_1_19-bb"></a><span class="identifier">time_duration</span><span class="special">(</span><span class="identifier">special_values</span> sv<span class="special">)</span><span class="special">;</span></pre>Construct from special_values. </li> <li class="listitem"><pre class="literallayout"><span class="keyword">explicit</span> <a name="id-1_3_14_15_3_47_1_1_1_22-bb"></a><span class="identifier">time_duration</span><span class="special">(</span><span class="identifier">impl_type</span> in<span class="special">)</span><span class="special">;</span></pre></li> </ol></div> </div> <div class="refsect2"> <a name="id-1.3.14.15.3.46.3.4.5"></a><h3> <a name="id-1_3_14_15_3_47_1_1_1_15-bb"></a><code class="computeroutput">time_duration</code> public member functions</h3> <div class="orderedlist"><ol class="orderedlist" type="1"> <li class="listitem"> <pre class="literallayout"><span class="identifier">hour_type</span> <a name="id-1_3_14_15_3_47_1_1_1_15_1-bb"></a><span class="identifier">hours</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Returns number of hours in the duration. </li> <li class="listitem"> <pre class="literallayout"><span class="identifier">min_type</span> <a name="id-1_3_14_15_3_47_1_1_1_15_2-bb"></a><span class="identifier">minutes</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Returns normalized number of minutes. </li> <li class="listitem"> <pre class="literallayout"><span class="identifier">sec_type</span> <a name="id-1_3_14_15_3_47_1_1_1_15_3-bb"></a><span class="identifier">seconds</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Returns normalized number of seconds (0..60) </li> <li class="listitem"> <pre class="literallayout"><span class="identifier">sec_type</span> <a name="id-1_3_14_15_3_47_1_1_1_15_4-bb"></a><span class="identifier">total_seconds</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Returns total number of seconds truncating any fractional seconds. </li> <li class="listitem"> <pre class="literallayout"><span class="identifier">tick_type</span> <a name="id-1_3_14_15_3_47_1_1_1_15_5-bb"></a><span class="identifier">total_milliseconds</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Returns total number of milliseconds truncating any fractional seconds. </li> <li class="listitem"> <pre class="literallayout"><span class="identifier">tick_type</span> <a name="id-1_3_14_15_3_47_1_1_1_15_6-bb"></a><span class="identifier">total_nanoseconds</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Returns total number of nanoseconds truncating any sub millisecond values. </li> <li class="listitem"> <pre class="literallayout"><span class="identifier">tick_type</span> <a name="id-1_3_14_15_3_47_1_1_1_15_7-bb"></a><span class="identifier">total_microseconds</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Returns total number of microseconds truncating any sub microsecond values. </li> <li class="listitem"> <pre class="literallayout"><span class="identifier">fractional_seconds_type</span> <a name="id-1_3_14_15_3_47_1_1_1_15_8-bb"></a><span class="identifier">fractional_seconds</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Returns count of fractional seconds at given resolution. </li> <li class="listitem"><pre class="literallayout"><span class="identifier">duration_type</span> <a name="id-1_3_14_15_3_47_1_1_1_15_9-bb"></a><span class="identifier">invert_sign</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li> <li class="listitem"><pre class="literallayout"><span class="keyword">bool</span> <a name="id-1_3_14_15_3_47_1_1_1_15_10-bb"></a><span class="identifier">is_negative</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li> <li class="listitem"><pre class="literallayout"><span class="keyword">bool</span> <a name="id-1_3_14_15_3_47_1_1_1_15_11-bb"></a><span class="keyword">operator</span><span class="special">&lt;</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="time_duration.html" title="Class template time_duration">time_duration</a> <span class="special">&amp;</span> rhs<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li> <li class="listitem"><pre class="literallayout"><span class="keyword">bool</span> <a name="id-1_3_14_15_3_47_1_1_1_15_12-bb"></a><span class="keyword">operator</span><span class="special">==</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="time_duration.html" title="Class template time_duration">time_duration</a> <span class="special">&amp;</span> rhs<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li> <li class="listitem"> <pre class="literallayout"><span class="identifier">duration_type</span> <a name="id-1_3_14_15_3_47_1_1_1_15_13-bb"></a><span class="keyword">operator</span><span class="special">-</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>unary- Allows for <code class="computeroutput"><a class="link" href="time_duration.html" title="Class template time_duration">time_duration</a></code> td = -td1 </li> <li class="listitem"><pre class="literallayout"><span class="identifier">duration_type</span> <a name="id-1_3_14_15_3_47_1_1_1_15_14-bb"></a><span class="keyword">operator</span><span class="special">-</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">duration_type</span> <span class="special">&amp;</span> d<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li> <li class="listitem"><pre class="literallayout"><span class="identifier">duration_type</span> <a name="id-1_3_14_15_3_47_1_1_1_15_15-bb"></a><span class="keyword">operator</span><span class="special">+</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">duration_type</span> <span class="special">&amp;</span> d<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li> <li class="listitem"><pre class="literallayout"><span class="identifier">duration_type</span> <a name="id-1_3_14_15_3_47_1_1_1_15_16-bb"></a><span class="keyword">operator</span><span class="special">/</span><span class="special">(</span><span class="keyword">int</span> divisor<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li> <li class="listitem"><pre class="literallayout"><span class="identifier">duration_type</span> <a name="id-1_3_14_15_3_47_1_1_1_15_17-bb"></a><span class="keyword">operator</span><span class="special">-=</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">duration_type</span> <span class="special">&amp;</span> d<span class="special">)</span><span class="special">;</span></pre></li> <li class="listitem"><pre class="literallayout"><span class="identifier">duration_type</span> <a name="id-1_3_14_15_3_47_1_1_1_15_18-bb"></a><span class="keyword">operator</span><span class="special">+=</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">duration_type</span> <span class="special">&amp;</span> d<span class="special">)</span><span class="special">;</span></pre></li> <li class="listitem"> <pre class="literallayout"><span class="identifier">duration_type</span> <a name="id-1_3_14_15_3_47_1_1_1_15_19-bb"></a><span class="keyword">operator</span><span class="special">/=</span><span class="special">(</span><span class="keyword">int</span> divisor<span class="special">)</span><span class="special">;</span></pre>Division operations on a duration with an integer. </li> <li class="listitem"> <pre class="literallayout"><span class="identifier">duration_type</span> <a name="id-1_3_14_15_3_47_1_1_1_15_20-bb"></a><span class="keyword">operator</span><span class="special">*</span><span class="special">(</span><span class="keyword">int</span> rhs<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Multiplication operations an a duration with an integer. </li> <li class="listitem"><pre class="literallayout"><span class="identifier">duration_type</span> <a name="id-1_3_14_15_3_47_1_1_1_15_21-bb"></a><span class="keyword">operator</span><span class="special">*=</span><span class="special">(</span><span class="keyword">int</span> divisor<span class="special">)</span><span class="special">;</span></pre></li> <li class="listitem"><pre class="literallayout"><span class="identifier">tick_type</span> <a name="id-1_3_14_15_3_47_1_1_1_15_22-bb"></a><span class="identifier">ticks</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li> <li class="listitem"> <pre class="literallayout"><span class="keyword">bool</span> <a name="id-1_3_14_15_3_47_1_1_1_15_23-bb"></a><span class="identifier">is_special</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Is ticks_ a special value? </li> <li class="listitem"> <pre class="literallayout"><span class="keyword">bool</span> <a name="id-1_3_14_15_3_47_1_1_1_15_24-bb"></a><span class="identifier">is_pos_infinity</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Is duration pos-infinity. </li> <li class="listitem"> <pre class="literallayout"><span class="keyword">bool</span> <a name="id-1_3_14_15_3_47_1_1_1_15_25-bb"></a><span class="identifier">is_neg_infinity</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Is duration neg-infinity. </li> <li class="listitem"> <pre class="literallayout"><span class="keyword">bool</span> <a name="id-1_3_14_15_3_47_1_1_1_15_26-bb"></a><span class="identifier">is_not_a_date_time</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Is duration not-a-date-time. </li> <li class="listitem"> <pre class="literallayout"><span class="identifier">impl_type</span> <a name="id-1_3_14_15_3_47_1_1_1_15_27-bb"></a><span class="identifier">get_rep</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Used for special_values output. </li> </ol></div> </div> <div class="refsect2"> <a name="id-1.3.14.15.3.46.3.4.6"></a><h3> <a name="id-1_3_14_15_3_47_1_1_1_20-bb"></a><code class="computeroutput">time_duration</code> public static functions</h3> <div class="orderedlist"><ol class="orderedlist" type="1"> <li class="listitem"> <pre class="literallayout"><span class="keyword">static</span> <span class="identifier">duration_type</span> <a name="id-1_3_14_15_3_47_1_1_1_20_1-bb"></a><span class="identifier">unit</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>Returns smallest representable duration. </li> <li class="listitem"> <pre class="literallayout"><span class="keyword">static</span> <span class="identifier">tick_type</span> <a name="id-1_3_14_15_3_47_1_1_1_20_2-bb"></a><span class="identifier">ticks_per_second</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>Return the number of ticks in a second. </li> <li class="listitem"> <pre class="literallayout"><span class="keyword">static</span> <span class="identifier">time_resolutions</span> <a name="id-1_3_14_15_3_47_1_1_1_20_3-bb"></a><span class="identifier">resolution</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>Provide the resolution of this duration type. </li> <li class="listitem"> <pre class="literallayout"><span class="keyword">static</span> <span class="keyword">unsigned</span> <span class="keyword">short</span> <a name="id-1_3_14_15_3_47_1_1_1_20_4-bb"></a><span class="identifier">num_fractional_digits</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>Returns number of possible digits in fractional seconds. </li> </ol></div> </div> </div> </div> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright &#169; 2001-2005 CrystalClear Software, Inc<p>Subject to the Boost Software License, Version 1.0. (See accompanying file <code class="filename">LICENSE_1_0.txt</code> or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)</p> </div></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="second_clock.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../date_time/doxy.html#header.boost.date_time.time_duration_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="subsecond_duration.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html>
nawawi/poedit
deps/boost/doc/html/boost/date_time/time_duration.html
HTML
mit
36,009
<p>Magra is a sans serif typeface designed for contexts in which both spatial economy and multiple composition styles are required. Its neutral personality and humanist features makes it a perfect candidate for corporate uses too. Its large x-height and robust stems provide good legibility and economy, plus great behavior in smaller sizes. Magra was selected to be part of the German editorial project Typodarium 2012.</p>
xErik/pdfmake-fonts-google
lib/ofl/magra/DESCRIPTION.en_us.html
HTML
mit
424
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <TITLE> Uses of Class org.apache.poi.hmef.Attachment (POI API Documentation) </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Class org.apache.poi.hmef.Attachment (POI API Documentation)"; } } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <HR> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../org/apache/poi/hmef/Attachment.html" title="class in org.apache.poi.hmef"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;PREV&nbsp; &nbsp;NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html?org/apache/poi/hmef/\class-useAttachment.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="Attachment.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <CENTER> <H2> <B>Uses of Class<br>org.apache.poi.hmef.Attachment</B></H2> </CENTER> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> Packages that use <A HREF="../../../../../org/apache/poi/hmef/Attachment.html" title="class in org.apache.poi.hmef">Attachment</A></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><A HREF="#org.apache.poi.hmef"><B>org.apache.poi.hmef</B></A></TD> <TD>&nbsp;&nbsp;</TD> </TR> </TABLE> &nbsp; <P> <A NAME="org.apache.poi.hmef"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> Uses of <A HREF="../../../../../org/apache/poi/hmef/Attachment.html" title="class in org.apache.poi.hmef">Attachment</A> in <A HREF="../../../../../org/apache/poi/hmef/package-summary.html">org.apache.poi.hmef</A></FONT></TH> </TR> </TABLE> &nbsp; <P> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../../../org/apache/poi/hmef/package-summary.html">org.apache.poi.hmef</A> that return types with arguments of type <A HREF="../../../../../org/apache/poi/hmef/Attachment.html" title="class in org.apache.poi.hmef">Attachment</A></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;java.util.List&lt;<A HREF="../../../../../org/apache/poi/hmef/Attachment.html" title="class in org.apache.poi.hmef">Attachment</A>&gt;</CODE></FONT></TD> <TD><CODE><B>HMEFMessage.</B><B><A HREF="../../../../../org/apache/poi/hmef/HMEFMessage.html#getAttachments()">getAttachments</A></B>()</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns all the Attachments of the message.</TD> </TR> </TABLE> &nbsp; <P> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../org/apache/poi/hmef/Attachment.html" title="class in org.apache.poi.hmef"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;PREV&nbsp; &nbsp;NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html?org/apache/poi/hmef/\class-useAttachment.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="Attachment.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> <i>Copyright 2016 The Apache Software Foundation or its licensors, as applicable.</i> </BODY> </HTML>
Sebaxtian/KDD
poi-3.14/docs/apidocs/org/apache/poi/hmef/class-use/Attachment.html
HTML
mit
7,936
<h1>Pin audio file from SoundCloud</h1> <form id="webaudioUploadFromComputer" name="webaudio_form" method="post" action="/webaudio_action" > <p>&nbsp;</p> &nbsp;&nbsp;&nbsp;&nbsp; Pin From : &nbsp; <input type="radio" name="sub" value="local"/>&nbsp; Local &nbsp; <input type="radio" name="sub" value="web" checked/>&nbsp; SoundCloud &nbsp; <p>&nbsp;</p> <select name="board_id" id="board_id" required class="inputText"> <option value="" selected="selected">Select Board</option> {{#each boards}} <option value="{{this._id}}">{{this.board_name}}</option> {{/each}} </select> <p>&nbsp;</p> <input type="text" class="inputText" name="audio_link" id="audio_link" value="" placeholder="Audio File Link" required/> <!-- <input type="button" id="get_song" value="Find Song">--> <div id="show_song" style="width:65%; margin:15px auto 0 15px;"></div> <br /> <textarea name="description" id="description" placeholder="Description" required class="inputText" ></textarea> <p>&nbsp;</p> <!-- <input type="submit" name="upload_webaudio" id="upload_webaudio" value="Upload" />--> </form> <script> $("input[type=radio][name=sub]").unbind('click').bind('click',function(){ var sub = $("input[type=radio][name=sub]:checked").val(); if(sub=='local'){ $("#pop_cont").load('/audio_upload',function(){ $('#get_img').html('Upload'); $('#get_img').unbind('click').bind('click',function(){ $("#audioUploadFromComputer").validate(); $('#audioUploadFromComputer').submit(); }); }); } }); </script>
peishenwu/pcboy_myyna
application/views/default/pin_image/webaudio_form.html
HTML
mit
1,753
<form name="deleteForm" ng-submit="confirmDelete(user.login)"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true" ng-click="clear()">&times;</button> <h4 class="modal-title">Confirm delete operation</h4> </div> <div class="modal-body"> <p>Are you sure you want to delete this User?</p> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal" ng-click="clear()"> <span class="glyphicon glyphicon-ban-circle"></span>&nbsp;<span>Cancel</span> </button> <button type="submit" ng-disabled="deleteForm.$invalid" class="btn btn-danger"> <span class="glyphicon glyphicon-remove-circle"></span>&nbsp;<span>Delete</span> </button> </div> </form>
spedepekka/skilldemon-server
src/main/webapp/scripts/app/admin/user-management/user-management-delete-dialog.html
HTML
mit
853
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>Class template visitor_ptr_t</title> <link rel="stylesheet" href="../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> <link rel="home" href="../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset"> <link rel="up" href="../variant/reference.html#header.boost.variant.visitor_ptr_hpp" title="Header &lt;boost/variant/visitor_ptr.hpp&gt;"> <link rel="prev" href="static_visitor.html" title="Class template static_visitor"> <link rel="next" href="visitor_ptr.html" title="Function template visitor_ptr"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../boost.png"></td> <td align="center"><a href="../../../index.html">Home</a></td> <td align="center"><a href="../../../libs/libraries.htm">Libraries</a></td> <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> <td align="center"><a href="../../../more/index.htm">More</a></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="static_visitor.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../variant/reference.html#header.boost.variant.visitor_ptr_hpp"><img src="../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="visitor_ptr.html"><img src="../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="refentry"> <a name="boost.visitor_ptr_t"></a><div class="titlepage"></div> <div class="refnamediv"> <h2><span class="refentrytitle">Class template visitor_ptr_t</span></h2> <p>boost::visitor_ptr_t &#8212; Adapts a function pointer for use as a static visitor.</p> </div> <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2> <div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../variant/reference.html#header.boost.variant.visitor_ptr_hpp" title="Header &lt;boost/variant/visitor_ptr.hpp&gt;">boost/variant/visitor_ptr.hpp</a>&gt; </span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> R<span class="special">&gt;</span> <span class="keyword">class</span> <a class="link" href="visitor_ptr_t.html" title="Class template visitor_ptr_t">visitor_ptr_t</a> <span class="special">:</span> <span class="keyword">public</span> <a class="link" href="static_visitor.html" title="Class template static_visitor">static_visitor</a><span class="special">&lt;</span><span class="identifier">R</span><span class="special">&gt;</span> <span class="special">{</span> <span class="keyword">public</span><span class="special">:</span> <span class="comment">// <a class="link" href="visitor_ptr_t.html#boost.visitor_ptr_tconstruct-copy-destruct">construct/copy/destruct</a></span> <span class="keyword">explicit</span> <a class="link" href="visitor_ptr_t.html#id-1_3_46_5_13_1_1_5-bb"><span class="identifier">visitor_ptr_t</span></a><span class="special">(</span><span class="identifier">R</span> <span class="special">(</span><span class="special">*</span><span class="special">)</span><span class="special">(</span><span class="identifier">T</span><span class="special">)</span><span class="special">)</span><span class="special">;</span> <span class="comment">// <a class="link" href="visitor_ptr_t.html#id-1_3_46_5_13_1_1_6-bb">static visitor interfaces</a></span> <span class="identifier">R</span> <a class="link" href="visitor_ptr_t.html#id-1_3_46_5_13_1_1_6_1_1-bb"><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span></a><span class="special">(</span><span class="emphasis"><em><span class="identifier">unspecified</span><span class="special">-</span><span class="identifier">forwarding</span><span class="special">-</span><span class="identifier">type</span></em></span><span class="special">)</span><span class="special">;</span> <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> U<span class="special">&gt;</span> <span class="keyword">void</span> <a class="link" href="visitor_ptr_t.html#id-1_3_46_5_13_1_1_6_1_2-bb"><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">U</span><span class="special">&amp;</span><span class="special">)</span><span class="special">;</span> <span class="special">}</span><span class="special">;</span></pre></div> <div class="refsect1"> <a name="id-1.3.46.5.14.3.4"></a><h2>Description</h2> <p>Adapts the function given at construction for use as a <a class="link" href="../variant/reference.html#variant.concepts.static-visitor" title="StaticVisitor">static visitor</a> of type <code class="computeroutput">T</code> with result type <code class="computeroutput">R</code>.</p> <div class="refsect2"> <a name="id-1.3.46.5.14.3.4.3"></a><h3> <a name="boost.visitor_ptr_tconstruct-copy-destruct"></a><code class="computeroutput">visitor_ptr_t</code> public construct/copy/destruct</h3> <div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"> <pre class="literallayout"><span class="keyword">explicit</span> <a name="id-1_3_46_5_13_1_1_5-bb"></a><span class="identifier">visitor_ptr_t</span><span class="special">(</span><span class="identifier">R</span> <span class="special">(</span><span class="special">*</span><span class="special">)</span><span class="special">(</span><span class="identifier">T</span><span class="special">)</span><span class="special">)</span><span class="special">;</span></pre> <div class="variablelist"><table border="0" class="variablelist compact"> <colgroup> <col align="left" valign="top"> <col> </colgroup> <tbody><tr> <td><p><span class="term">Effects:</span></p></td> <td>Constructs the visitor with the given function.</td> </tr></tbody> </table></div> </li></ol></div> </div> <div class="refsect2"> <a name="id-1.3.46.5.14.3.4.4"></a><h3> <a name="id-1_3_46_5_13_1_1_6-bb"></a><code class="computeroutput">visitor_ptr_t</code> static visitor interfaces</h3> <div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"> <pre class="literallayout"><a name="id-1_3_46_5_13_1_1_6_1-bb"></a><span class="identifier">R</span> <a name="id-1_3_46_5_13_1_1_6_1_1-bb"></a><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span><span class="special">(</span><span class="emphasis"><em><span class="identifier">unspecified</span><span class="special">-</span><span class="identifier">forwarding</span><span class="special">-</span><span class="identifier">type</span></em></span> operand<span class="special">)</span><span class="special">;</span> <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> U<span class="special">&gt;</span> <span class="keyword">void</span> <a name="id-1_3_46_5_13_1_1_6_1_2-bb"></a><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">U</span><span class="special">&amp;</span><span class="special">)</span><span class="special">;</span></pre> <div class="variablelist"><table border="0" class="variablelist compact"> <colgroup> <col align="left" valign="top"> <col> </colgroup> <tbody> <tr> <td><p><span class="term">Effects:</span></p></td> <td>If passed a value or reference of type <code class="computeroutput">T</code>, it invokes the function given at construction, appropriately forwarding <code class="computeroutput">operand</code>.</td> </tr> <tr> <td><p><span class="term">Returns:</span></p></td> <td>Returns the result of the function invocation.</td> </tr> <tr> <td><p><span class="term">Throws:</span></p></td> <td>The overload taking a value or reference of type <code class="computeroutput">T</code> throws if the invoked function throws. The overload taking all other values <span class="emphasis"><em>always</em></span> throws <code class="computeroutput"><a class="link" href="bad_visit.html" title="Class bad_visit">bad_visit</a></code>.</td> </tr> </tbody> </table></div> </li></ol></div> </div> </div> </div> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright &#169; 2002, 2003 Eric Friedman, Itay Maman<p>Distributed under the Boost Software License, Version 1.0. (See accompanying file <code class="filename">LICENSE_1_0.txt</code> or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> </div></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="static_visitor.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../variant/reference.html#header.boost.variant.visitor_ptr_hpp"><img src="../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="visitor_ptr.html"><img src="../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html>
nawawi/poedit
deps/boost/doc/html/boost/visitor_ptr_t.html
HTML
mit
10,060
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>Class template generated_by</title> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> <link rel="home" href="../../../../index.html" title="Boost.Test"> <link rel="up" href="../../../../header/boost/test/data/monomorphic/generate_hpp.html" title="Header &lt;boost/test/data/monomorphic/generate.hpp&gt;"> <link rel="prev" href="../../../../header/boost/test/data/monomorphic/generate_hpp.html" title="Header &lt;boost/test/data/monomorphic/generate.hpp&gt;"> <link rel="next" href="generated_by/iterator.html" title="Struct iterator"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <td align="center"><a href="../../../../../../../../index.html">Home</a></td> <td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="../../../../header/boost/test/data/monomorphic/generate_hpp.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../../header/boost/test/data/monomorphic/generate_hpp.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="generated_by/iterator.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="refentry"> <a name="boost.unit_test.data.monomorphic.generated_by"></a><div class="titlepage"></div> <div class="refnamediv"> <h2><span class="refentrytitle">Class template generated_by</span></h2> <p>boost::unit_test::data::monomorphic::generated_by &#8212; Generators interface. </p> </div> <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2> <div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../../../header/boost/test/data/monomorphic/generate_hpp.html" title="Header &lt;boost/test/data/monomorphic/generate.hpp&gt;">boost/test/data/monomorphic/generate.hpp</a>&gt; </span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Generator<span class="special">&gt;</span> <span class="keyword">class</span> <a class="link" href="generated_by.html" title="Class template generated_by">generated_by</a> <span class="special">{</span> <span class="keyword">public</span><span class="special">:</span> <span class="comment">// types</span> <span class="keyword">typedef</span> <span class="identifier">Generator</span><span class="special">::</span><span class="identifier">sample</span> <a name="boost.unit_test.data.monomorphic.generated_by.sample"></a><span class="identifier">sample</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">Generator</span> <a name="boost.unit_test.data.monomorphic.generated_by.generator_type"></a><span class="identifier">generator_type</span><span class="special">;</span> <span class="comment">// member classes/structs/unions</span> <span class="keyword">struct</span> <a class="link" href="generated_by/iterator.html" title="Struct iterator">iterator</a> <span class="special">{</span> <span class="comment">// <a class="link" href="generated_by/iterator.html#boost.unit_test.data.monomorphic.generated_by.iteratorconstruct-copy-destruct">construct/copy/destruct</a></span> <span class="keyword">explicit</span> <a class="link" href="generated_by/iterator.html#idp68465456-bb"><span class="identifier">iterator</span></a><span class="special">(</span><span class="identifier">Generator</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span> <span class="comment">// <a class="link" href="generated_by/iterator.html#idp68462768-bb">public member functions</a></span> <span class="identifier">sample</span> <span class="keyword">const</span> <span class="special">&amp;</span> <a class="link" href="generated_by/iterator.html#idp68463328-bb"><span class="keyword">operator</span><span class="special">*</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="keyword">void</span> <a class="link" href="generated_by/iterator.html#idp68464448-bb"><span class="keyword">operator</span><span class="special">++</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span> <span class="special">}</span><span class="special">;</span> <span class="keyword">enum</span> <a name="boost.unit_test.data.monomorphic.generated_by.@7"></a>@7 <span class="special">{</span> arity = = 1 <span class="special">}</span><span class="special">;</span> <span class="comment">// <a class="link" href="generated_by.html#boost.unit_test.data.monomorphic.generated_byconstruct-copy-destruct">construct/copy/destruct</a></span> <span class="keyword">explicit</span> <a class="link" href="generated_by.html#idp68473488-bb"><span class="identifier">generated_by</span></a><span class="special">(</span><span class="identifier">Generator</span> <span class="special">&amp;&amp;</span><span class="special">)</span><span class="special">;</span> <a class="link" href="generated_by.html#idp68474736-bb"><span class="identifier">generated_by</span></a><span class="special">(</span><a class="link" href="generated_by.html" title="Class template generated_by">generated_by</a> <span class="special">&amp;&amp;</span><span class="special">)</span><span class="special">;</span> <span class="comment">// <a class="link" href="generated_by.html#idp68469648-bb">public member functions</a></span> <a class="link" href="../size_t.html" title="Class size_t">data::size_t</a> <a class="link" href="generated_by.html#idp68470208-bb"><span class="identifier">size</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <a class="link" href="generated_by/iterator.html" title="Struct iterator">iterator</a> <a class="link" href="generated_by.html#idp68471760-bb"><span class="identifier">begin</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> <span class="special">}</span><span class="special">;</span></pre></div> <div class="refsect1"> <a name="idp95917968"></a><h2>Description</h2> <p>This class implements the dataset concept over a generator. Examples of generators are:</p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"><p><a class="link" href="xrange_t.html" title="Class template xrange_t">xrange_t</a></p></li> <li class="listitem"><p><a class="link" href="random_t.html" title="Class template random_t">random_t</a></p></li> </ul></div> <p> </p> <p>The generator concept is the following:</p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"><p>the type of the generated samples is given by field <code class="computeroutput">sample</code> </p></li> <li class="listitem"><p>the member function <code class="computeroutput">capacity</code> should return the size of the collection being generated (potentially infinite)</p></li> <li class="listitem"><p>the member function <code class="computeroutput">next</code> should change the state of the generator to the next generated value</p></li> <li class="listitem"><p>the member function <code class="computeroutput">reset</code> should put the state of the object in the same state as right after its instanciation </p></li> </ul></div> <p> </p> <div class="refsect2"> <a name="idp95926688"></a><h3> <a name="boost.unit_test.data.monomorphic.generated_byconstruct-copy-destruct"></a><code class="computeroutput">generated_by</code> public construct/copy/destruct</h3> <div class="orderedlist"><ol class="orderedlist" type="1"> <li class="listitem"><pre class="literallayout"><span class="keyword">explicit</span> <a name="idp68473488-bb"></a><span class="identifier">generated_by</span><span class="special">(</span><span class="identifier">Generator</span> <span class="special">&amp;&amp;</span> G<span class="special">)</span><span class="special">;</span></pre></li> <li class="listitem"><pre class="literallayout"><a name="idp68474736-bb"></a><span class="identifier">generated_by</span><span class="special">(</span><a class="link" href="generated_by.html" title="Class template generated_by">generated_by</a> <span class="special">&amp;&amp;</span> rhs<span class="special">)</span><span class="special">;</span></pre></li> </ol></div> </div> <div class="refsect2"> <a name="idp95939952"></a><h3> <a name="idp68469648-bb"></a><code class="computeroutput">generated_by</code> public member functions</h3> <div class="orderedlist"><ol class="orderedlist" type="1"> <li class="listitem"> <pre class="literallayout"><a class="link" href="../size_t.html" title="Class size_t">data::size_t</a> <a name="idp68470208-bb"></a><span class="identifier">size</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Size of the underlying dataset. </li> <li class="listitem"> <pre class="literallayout"><a class="link" href="generated_by/iterator.html" title="Struct iterator">iterator</a> <a name="idp68471760-bb"></a><span class="identifier">begin</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Iterator on the beginning of the dataset. </li> </ol></div> </div> </div> </div> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright &#169; 2001-2018 Boost.Test contributors<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> </div></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="../../../../header/boost/test/data/monomorphic/generate_hpp.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../../header/boost/test/data/monomorphic/generate_hpp.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="generated_by/iterator.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html>
nawawi/poedit
deps/boost/libs/test/doc/html/boost/unit_test/data/monomorphic/generated_by.html
HTML
mit
11,554
<p id="sherman_jason" data-toggle="tooltip" title="<img src='{{site.filesurl}}/people/sherman_jason.jpg' alt='Jason Sherman' />"> <span class="person">Jason Sherman</span> is an Oklahoma native, a student of the liberal arts, and an IT Analyst at the University of Oklahoma Libraries. He spends much of his time building infrastructure for developers, but also pitches in by writing the occasional integration module or migration script. </p>
ErinBecker/website
_includes/people/sherman_jason.html
HTML
mit
463
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>Function template is_permutation</title> <link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.78.1"> <link rel="home" href="../../index.html" title="The Boost Algorithm Library"> <link rel="up" href="../../header/boost/algorithm/cxx11/is_permutation_hpp.html" title="Header &lt;boost/algorithm/cxx11/is_permutation.hpp&gt;"> <link rel="prev" href="../../header/boost/algorithm/cxx11/is_permutation_hpp.html" title="Header &lt;boost/algorithm/cxx11/is_permutation.hpp&gt;"> <link rel="next" href="is_permutation_idp41162768.html" title="Function template is_permutation"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td> <td align="center"><a href="../../../../../../index.html">Home</a></td> <td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td> <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> <td align="center"><a href="../../../../../../more/index.htm">More</a></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="../../header/boost/algorithm/cxx11/is_permutation_hpp.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/algorithm/cxx11/is_permutation_hpp.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="is_permutation_idp41162768.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="refentry"> <a name="boost.algorithm.is_permutation_idp41153984"></a><div class="titlepage"></div> <div class="refnamediv"> <h2><span class="refentrytitle">Function template is_permutation</span></h2> <p>boost::algorithm::is_permutation &#8212; Tests to see if the sequence [first,last) is a permutation of the sequence starting at first2. </p> </div> <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2> <div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/algorithm/cxx11/is_permutation_hpp.html" title="Header &lt;boost/algorithm/cxx11/is_permutation.hpp&gt;">boost/algorithm/cxx11/is_permutation.hpp</a>&gt; </span> <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> ForwardIterator1<span class="special">,</span> <span class="keyword">typename</span> ForwardIterator2<span class="special">,</span> <span class="keyword">typename</span> BinaryPredicate<span class="special">&gt;</span> <span class="keyword">bool</span> <span class="identifier">is_permutation</span><span class="special">(</span><span class="identifier">ForwardIterator1</span> first1<span class="special">,</span> <span class="identifier">ForwardIterator1</span> last1<span class="special">,</span> <span class="identifier">ForwardIterator2</span> first2<span class="special">,</span> <span class="identifier">BinaryPredicate</span> p<span class="special">)</span><span class="special">;</span></pre></div> <div class="refsect1"> <a name="idp90182128"></a><h2>Description</h2> <p> </p> <div class="note"><table border="0" summary="Note"> <tr> <td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../../doc/src/images/note.png"></td> <th align="left">Note</th> </tr> <tr><td align="left" valign="top"><p>This function is part of the C++2011 standard library. We will use the standard one if it is available, otherwise we have our own implementation. </p></td></tr> </table></div> <p> </p> <div class="variablelist"><table border="0" class="variablelist compact"> <colgroup> <col align="left" valign="top"> <col> </colgroup> <tbody><tr> <td><p><span class="term">Parameters:</span></p></td> <td><div class="variablelist"><table border="0" class="variablelist compact"> <colgroup> <col align="left" valign="top"> <col> </colgroup> <tbody> <tr> <td><p><span class="term"><code class="computeroutput">first1</code></span></p></td> <td><p>The start of the input sequence </p></td> </tr> <tr> <td><p><span class="term"><code class="computeroutput">first2</code></span></p></td> <td><p>The start of the second sequence </p></td> </tr> <tr> <td><p><span class="term"><code class="computeroutput">last1</code></span></p></td> <td><p>One past the end of the input sequence </p></td> </tr> <tr> <td><p><span class="term"><code class="computeroutput">p</code></span></p></td> <td><p>The predicate to compare elements with</p></td> </tr> </tbody> </table></div></td> </tr></tbody> </table></div> </div> </div> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright &#169; 2010-2012 Marshall Clow<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> </div></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="../../header/boost/algorithm/cxx11/is_permutation_hpp.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/algorithm/cxx11/is_permutation_hpp.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="is_permutation_idp41162768.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html>
TyRoXx/cdm
original_sources/boost_1_59_0/libs/algorithm/doc/html/boost/algorithm/is_permutation_idp41153984.html
HTML
mit
6,251
<!DOCTYPE html> <html> <style> div { border-color: green; border-style: solid; border-width: 3px 10px; } </style> <div>This text should have top and bottom borders of 3px and left and right borders of 10px</div> </html>
lordmos/blink
LayoutTests/fast/css/variables/calc-expected.html
HTML
mit
232
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <link href="lib/mocha.css" rel="stylesheet" /> </head> <body> <div id="mocha"></div> <script src="http://localhost:8889/socket.io/socket.io.js"></script> <script src="lib/mocha.js"></script> <script data-main="integration.js" src="lib/require.js"></script> </body> </html>
klorenz/tcp-socket
test/integration/ws/integration.html
HTML
mit
395
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Preface</title> <link rel="stylesheet" href="gettingStarted.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.62.4" /> <link rel="home" href="index.html" title="Porting Berkeley DB" /> <link rel="up" href="index.html" title="Porting Berkeley DB" /> <link rel="previous" href="index.html" title="Porting Berkeley DB" /> <link rel="next" href="introduction.html" title="Chapter 1. Introduction to Porting Berkeley DB " /> </head> <body> <div class="navheader"> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center">Preface</th> </tr> <tr> <td width="20%" align="left"><a accesskey="p" href="index.html">Prev</a> </td> <th width="60%" align="center"> </th> <td width="20%" align="right"> <a accesskey="n" href="introduction.html">Next</a></td> </tr> </table> <hr /> </div> <div class="preface" lang="en" xml:lang="en"> <div class="titlepage"> <div> <div> <h2 class="title"><a id="preface"></a>Preface</h2> </div> </div> <div></div> </div> <div class="toc"> <p> <b>Table of Contents</b> </p> <dl> <dt> <span class="sect1"> <a href="preface.html#conventions">Conventions Used in this Book</a> </span> </dt> <dd> <dl> <dt> <span class="sect2"> <a href="preface.html#audience">Audience</a> </span> </dt> <dt> <span class="sect2"> <a href="preface.html#moreinfo">For More Information</a> </span> </dt> </dl> </dd> </dl> </div> <p> The Berkeley DB family of open source, embeddable databases provides developers with fast, reliable persistence with zero administration. Often deployed as "edge" databases, the Berkeley DB family provides very high performance, reliability, scalability, and availability for application use cases that do not require SQL. </p> <p> As an open source database, Berkeley DB works on many different platforms, from Wind River's Tornado system, to VMS, to Windows NT and Windows 95, and most existing UNIX platforms. It runs on 32 and 64-bit machines, little or big-endian. </p> <p> <span class="emphasis"><em>Berkeley DB Porting Guide</em></span> provides the information you need to port Berkeley DB to additional platforms. </p> <div class="sect1" lang="en" xml:lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a id="conventions"></a>Conventions Used in this Book</h2> </div> </div> <div></div> </div> <p> The following typographical conventions are used within in this manual: </p> <p> Structure names are represented in <tt class="classname">monospaced font</tt>, as are <tt class="methodname">method names</tt>. For example: "<tt class="methodname">DB-&gt;open()</tt> is a method on a <tt class="classname">DB</tt> handle." </p> <p> Variable or non-literal text is presented in <span class="emphasis"><em>italics</em></span>. For example: "Go to your <span class="emphasis"><em>DB_INSTALL</em></span> directory." </p> <p> Program examples are displayed in a <tt class="classname">monospaced font</tt> on a shaded background. For example: </p> <pre class="programlisting">/* File: gettingstarted_common.h */ typedef struct stock_dbs { DB *inventory_dbp; /* Database containing inventory information */ DB *vendor_dbp; /* Database containing vendor information */ char *db_home_dir; /* Directory containing the database files */ char *inventory_db_name; /* Name of the inventory database */ char *vendor_db_name; /* Name of the vendor database */ } STOCK_DBS; </pre> <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"> <h3 class="title">Note</h3> <p> Finally, notes of interest are represented using a note block such as this. </p> </div> <div class="sect2" lang="en" xml:lang="en"> <div class="titlepage"> <div> <div> <h3 class="title"><a id="audience"></a>Audience</h3> </div> </div> <div></div> </div> <p> This guide is intended for programmers porting Berkeley DB to a new platform. It assumes that these programmers possess: </p> <div class="itemizedlist"> <ul type="disc"> <li> <p> Familiarity with standard ANSI C and POSIX C 1003.1 and 1003.2 library and system calls. </p> </li> <li> <p> Working knowledge of the target platform as well as the development tools (for example, compilers, linkers, and debuggers) available on that platform. </p> </li> </ul> </div> </div> <div class="sect2" lang="en" xml:lang="en"> <div class="titlepage"> <div> <div> <h3 class="title"><a id="moreinfo"></a>For More Information</h3> </div> </div> <div></div> </div> <p> Beyond this manual, you may also find the following sources of information useful when building a DB application: </p> <div class="itemizedlist"> <ul type="disc"> <li> <p> <a href="http://www.oracle.com/technology/documentation/berkeley-db/db/gsg/C/index.html" target="_top"> Getting Started with Berkeley DB for C </a> </p> </li> <li> <p> <a href="http://www.oracle.com/technology/documentation/berkeley-db/db/gsg_txn/C/index.html" target="_top"> Getting Started with Transaction Processing for C </a> </p> </li> <li> <p> <a href="http://www.oracle.com/technology/documentation/berkeley-db/db/gsg_db_rep/C/index.html" target="_top"> Berkeley DB Getting Started with Replicated Applications for C </a> </p> </li> <li> <p> <a href="http://www.oracle.com/technology/documentation/berkeley-db/db/ref/toc.html" target="_top"> Berkeley DB Programmer's Reference Guide </a> </p> </li> <li> <p> <a href="http://www.oracle.com/technology/documentation/berkeley-db/db/api_c/frame.html" target="_top"> Berkeley DB C API </a> </p> </li> </ul> </div> </div> </div> </div> <div class="navfooter"> <hr /> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"><a accesskey="p" href="index.html">Prev</a> </td> <td width="20%" align="center"> <a accesskey="u" href="index.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="introduction.html">Next</a></td> </tr> <tr> <td width="40%" align="left" valign="top">Porting Berkeley DB </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> Chapter 1. Introduction to Porting Berkeley DB </td> </tr> </table> </div> </body> </html>
djsedulous/namecoind
libs/db-4.7.25.NC/docs/porting/preface.html
HTML
mit
8,808
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>BoostBook element using-class</title> <link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> <link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset"> <link rel="up" href="../../reference.html" title="Reference"> <link rel="prev" href="paramtype.html" title="BoostBook element paramtype"> <link rel="next" href="run-test.html" title="BoostBook element run-test"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td> <td align="center"><a href="../../../../index.html">Home</a></td> <td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td> <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> <td align="center"><a href="../../../../more/index.htm">More</a></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="paramtype.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../reference.html"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="run-test.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="refentry"> <a name="boostbook.dtd.using-class"></a><div class="titlepage"></div> <div class="refnamediv"> <h2><span class="refentrytitle"> BoostBook element <code class="sgmltag-element">using-class</code></span></h2> <p>using-class &#8212; Injects the method and function names of a class into the local scope</p> </div> <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2> <div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv">using-class ::= EMPTY </div> <div class="refsection"> <a name="idp209879776"></a><h2>Attributes</h2> <div class="informaltable"><table class="table"> <colgroup> <col> <col> <col> <col> </colgroup> <thead><tr> <th>Name</th> <th>Type</th> <th>Value</th> <th>Purpose</th> </tr></thead> <tbody> <tr> <td>last-revision</td> <td>#IMPLIED</td> <td>CDATA</td> <td>Set to $Date: 2009-10-10 15:53:46 +0100 (Sat, 10 Oct 2009) $ to keep "last revised" information in sync with CVS changes</td> </tr> <tr> <td>name</td> <td>#REQUIRED</td> <td>CDATA</td> <td>The name of the element being declared to referenced</td> </tr> <tr> <td>id</td> <td>#IMPLIED</td> <td>CDATA</td> <td>A global identifier for this element</td> </tr> <tr> <td>xml:base</td> <td>#IMPLIED</td> <td>CDATA</td> <td>Implementation detail used by XIncludes</td> </tr> </tbody> </table></div> </div> </div> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright &#169; 2003-2005 Douglas Gregor<p>Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>). </p> </div></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="paramtype.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../reference.html"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="run-test.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html>
mxrrow/zaicoin
src/deps/boost/doc/html/boostbook/dtd/using-class.html
HTML
mit
4,014
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>basic_datagram_socket::send</title> <link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> <link rel="home" href="../../../boost_asio.html" title="Boost.Asio"> <link rel="up" href="../basic_datagram_socket.html" title="basic_datagram_socket"> <link rel="prev" href="reuse_address.html" title="basic_datagram_socket::reuse_address"> <link rel="next" href="send/overload1.html" title="basic_datagram_socket::send (1 of 3 overloads)"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td> <td align="center"><a href="../../../../../index.html">Home</a></td> <td align="center"><a href="../../../../../libs/libraries.htm">Libraries</a></td> <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> <td align="center"><a href="../../../../../more/index.htm">More</a></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="reuse_address.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../basic_datagram_socket.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../boost_asio.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="send/overload1.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="section"> <div class="titlepage"><div><div><h4 class="title"> <a name="boost_asio.reference.basic_datagram_socket.send"></a><a class="link" href="send.html" title="basic_datagram_socket::send">basic_datagram_socket::send</a> </h4></div></div></div> <p> <a class="indexterm" name="idp34205456"></a> Send some data on a connected socket. </p> <pre class="programlisting"><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">typename</span> <a class="link" href="../ConstBufferSequence.html" title="Constant buffer sequence requirements">ConstBufferSequence</a><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <a class="link" href="send/overload1.html" title="basic_datagram_socket::send (1 of 3 overloads)">send</a><span class="special">(</span> <span class="keyword">const</span> <span class="identifier">ConstBufferSequence</span> <span class="special">&amp;</span> <span class="identifier">buffers</span><span class="special">);</span> <span class="emphasis"><em>&#187; <a class="link" href="send/overload1.html" title="basic_datagram_socket::send (1 of 3 overloads)">more...</a></em></span> <span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">typename</span> <a class="link" href="../ConstBufferSequence.html" title="Constant buffer sequence requirements">ConstBufferSequence</a><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <a class="link" href="send/overload2.html" title="basic_datagram_socket::send (2 of 3 overloads)">send</a><span class="special">(</span> <span class="keyword">const</span> <span class="identifier">ConstBufferSequence</span> <span class="special">&amp;</span> <span class="identifier">buffers</span><span class="special">,</span> <span class="identifier">socket_base</span><span class="special">::</span><span class="identifier">message_flags</span> <span class="identifier">flags</span><span class="special">);</span> <span class="emphasis"><em>&#187; <a class="link" href="send/overload2.html" title="basic_datagram_socket::send (2 of 3 overloads)">more...</a></em></span> <span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">typename</span> <a class="link" href="../ConstBufferSequence.html" title="Constant buffer sequence requirements">ConstBufferSequence</a><span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <a class="link" href="send/overload3.html" title="basic_datagram_socket::send (3 of 3 overloads)">send</a><span class="special">(</span> <span class="keyword">const</span> <span class="identifier">ConstBufferSequence</span> <span class="special">&amp;</span> <span class="identifier">buffers</span><span class="special">,</span> <span class="identifier">socket_base</span><span class="special">::</span><span class="identifier">message_flags</span> <span class="identifier">flags</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">system</span><span class="special">::</span><span class="identifier">error_code</span> <span class="special">&amp;</span> <span class="identifier">ec</span><span class="special">);</span> <span class="emphasis"><em>&#187; <a class="link" href="send/overload3.html" title="basic_datagram_socket::send (3 of 3 overloads)">more...</a></em></span> </pre> </div> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright &#169; 2003-2012 Christopher M. Kohlhoff<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> </div></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="reuse_address.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../basic_datagram_socket.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../boost_asio.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="send/overload1.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html>
mxrrow/zaicoin
src/deps/boost/doc/html/boost_asio/reference/basic_datagram_socket/send.html
HTML
mit
6,402
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: Adobe Illustrator 21.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 364.8 140.7" style="enable-background:new 0 0 364.8 140.7;" xml:space="preserve" height="{{ include.height }}" width="{{ include.width}}"> <style type="text/css"> .white{fill:#FFFFFF;} </style> <g id="XMLID_14_"> <g id="XMLID_15_"> <g id="XMLID_49_"> <path id="XMLID_456_" class="white" d="M0.1,130.6c1.6-4.3,8.5-10.9,11.3-10.9c0.9,0,1.3,0.6,1.5,1.7c0.4,0.6,2.1,4.5,9.3,4.5 c7.7,0,15-5.1,17.9-13.2c8.1-22.4-37.4-23.3-23.4-61.6C25.7,26.3,62.4,0,87.9,0c14.7,0,20.2,9.6,14.9,24.2 c-7.6,20.9-39,40.6-50.5,40.6c-6.6,0-8-7-6.6-10.9c1.2-3.2,2.2-1.3,5.4-1.3c10.1,0,32.8-15.8,37.3-28.2 c2.3-6.4,0.9-10.3-6.6-10.3c-13.9,0-43,16.5-50.5,37c-10.6,29.1,35.2,29.7,23.8,61.1C49.6,127.4,32.8,140,17,140 C1,140-0.3,131.7,0.1,130.6z"/> </g> </g> <path id="XMLID_16_" class="white" d="M362,113.1c-1.2,0-2.9,1.2-4.4,4c-3.2,5.8-8.5,14.3-13.5,14.3c-3.2,0-1.4-4.9-1-6.1L353,98 c2.2-6.1,2.9-13.3-5.4-13.3c-6.1,0-12.6,5.7-18.7,13.1l2.2-5.9c1.2-3.2-0.5-5.8-4.6-5.8c-1.7,0-3.6,0.9-4,2.2 c-0.3,0.9-0.1,1.7-1,4.2l-8.3,22.9c-0.4,0.5-0.8,1.1-1.1,1.8c-3.2,5.8-8.5,14.3-13.5,14.3c-3,0-3.1-3.2-2-6.1l7.9-21.8 c1.2-3.2-0.5-5.8-4.6-5.8c-1.7,0-3.6,0.9-4,2.2c-0.3,0.9-0.1,1.7-1,4.2l-7.4,20.3c-2.7,3.7-6.1,6.9-9.4,6.9c-4.3,0-5.6-4-3.1-10.8 c6.9-19,21.1-27.6,30.5-27.6c1.2,0,2.4,0.3,3.5,0.3c1.2,0,1.9-0.8,2.7-3c1.2-3.4-0.3-5.5-3.7-5.5c-15.1,0-34.4,13.5-42.4,35.5 c-0.4,1-0.7,2-0.9,3c-2.9,4.3-6.5,8.2-9.8,8.2c-3.2,0-1.4-4.9-1-6.1l9.9-27.3c2.2-6.1,3-13.3-5.1-13.3c-5.6,0-11.9,5.4-17.5,12.4 c1.9-5.9,2.2-12.4-5.3-12.4c-5.6,0-11.9,5.5-17.8,12.7l2-5.5c1.2-3.2-0.5-5.8-4.6-5.8c-1.7,0-3.6,0.9-4,2.2c-0.3,0.9-0.1,1.7-1,4.2 l-8.3,22.9c-0.4,0.5-0.8,1.1-1.1,1.8c-3.2,5.8-8.5,14.3-13.5,14.3c-2.6,0-3.5-1.8-2-6.1l15.2-41.8c6.6,0,13.9,0,23.9-0.3 c3.3-0.1,9-12.8,4.1-8.8c-8.6,0.4-17.3,0.5-24.9,0.5l8.4-23.1c1.2-3.2-0.5-5.8-4.6-5.8c-1.7,0-4.2,0.5-4.5,1.5 c-0.3,0.9,0.8,1.2-0.6,5L194.5,75c-6.7-0.1-11-0.4-11-0.4c-3.6,0-4.6,8.8-0.6,8.8c0,0,3,0.3,8.5,0.3l-12.9,35.5 c-3.3,5.6-8,12.5-12.5,12.5c-3.2,0-1.4-4.9-1-6.1l9.9-27.3c2.2-6.1,2.9-13.3-5.4-13.3c-6.1,0-12.6,5.7-18.7,13.1l2.2-5.9 c1.2-3.2-0.5-5.8-4.6-5.8c-1.7,0-3.6,0.9-4,2.2c-0.3,0.9-0.1,1.7-1,4.2l-8.3,22.9c-0.4,0.5-0.8,1.1-1.1,1.8 c-3.2,5.8-8.5,14.3-13.5,14.3c-3.2,0-1.4-4.9-1-6.1l12.2-33.5c1.2-3.2-0.5-5.8-4.6-5.8c-1.7,0-4.2,0.5-4.5,1.5 c-0.3,0.9,0.8,1.2-0.6,5l-7.7,21.3c-4.9,9.2-11.7,17.8-16.7,17.8c-3.6,0-4.3-3.8-1.7-11c4-11.1,7.5-16.9,13.3-26.7 c1.2-2,6.7-7.3,0.7-7.3c-6.6,0-6.7,2.6-8.4,4.9c0,0-10.2,15.7-15.3,29.7c-0.1,0.2-0.1,0.4-0.2,0.7c-3.1,4.8-7,9.5-10.7,9.5 c-2.6,0-3.5-1.8-2-6.1l15.2-41.8c6.6,0,13.9,0,23.9-0.3c3.3-0.1,9-12.8,4.1-8.8c-8.6,0.4-17.3,0.5-24.9,0.5l8.4-23.1 c1.2-3.2-0.5-5.8-4.6-5.8c-1.7,0-4.2,0.5-4.5,1.5c-0.3,0.9,0.8,1.2-0.6,5l-8.1,22.3c-6.7-0.1-11-0.4-11-0.4c-3.6,0-4.6,8.8-0.6,8.8 c0,0,3,0.3,8.5,0.3l-15.3,42c-3.8,10.4-0.6,14.7,6.1,14.7c5.2,0,10.1-2.9,14.4-6.8c0.6,4.4,3.3,6.9,8.2,6.9c5.5,0,10.9-4,15.9-9.5 c-1.1,5.3,1.2,9.4,6.8,9.4c4.7,0,9.2-2.3,13.1-5.7c-1.7,4.8,1.4,5.7,3.9,5.7c3.6,0,4.6-3.2,5.5-5.7l7-19.3 c4.7-10.4,16.5-21.8,20.1-21.8c2.4,0,1.4,3.4-0.1,7.5l-9.8,26.8c-2.5,6.7-0.7,12.4,5.9,12.4c5,0,9.8-2.6,13.9-6.4 c0.3,4.4,3.2,6.4,7.7,6.4c4.7,0,9.2-2.3,13.1-5.7c-1.7,4.8,1.4,5.7,3.9,5.7c3.6,0,4.6-3.2,5.5-5.7l7-19.3 c4.5-10.4,15.7-21.8,19.1-21.8c2.1,0,1.1,3.4-0.4,7.5l-12.2,33.4c-1.8,4.9,1.4,5.8,3.8,5.8c3.6,0,4.6-3.2,5.5-5.7l7-19.3 c4.5-10.4,15.7-21.8,19.1-21.8c2.1,0,1.1,3.4-0.4,7.5l-9.8,26.8c-2.5,6.7-0.7,12.4,5.9,12.4c5.3,0,10.2-2.9,14.5-6.9 c0.9,4.3,3.9,6.9,9.2,6.9c4.7,0,9.1-2.4,12.6-5.4c0.7,3.2,3.2,5.4,7.6,5.4c4.7,0,9.2-2.3,13.1-5.7c-1.7,4.8,1.4,5.7,3.9,5.7 c3.6,0,4.6-3.2,5.5-5.7l7-19.3c4.7-10.4,16.5-21.8,20.1-21.8c2.4,0,1.4,3.4-0.1,7.5l-9.8,26.8c-2.5,6.7-0.7,12.4,5.9,12.4 c10.7,0,20-11.9,25.2-20.6c0.3-0.5,0.4-0.8,0.5-0.9C365.3,116,364,113.1,362,113.1z"/> </g> </svg>
khalidabuhakmeh/stuntman
docs/_includes/svg/stuntman-text-white.html
HTML
mit
4,063
<div class="l-wrapper"> <div class="l-btn-group"> <button *ngFor="let tab of tabList" [class.active]="isActive(tab.key)" (click)="onClickTab(tab.key)"> {{tab.display}} </button> <button (click)="openDetailView()">Mixed View <i class="fas fa-external-link-square-alt" aria-hidden="true"></i></button> <button class="l-log-info" (click)="openLogView()" [class.disabled]="!hasInfo()" *ngIf="hasLogView()">{{transactionDetailInfo.logButtonName}} <i [ngClass]="getLogIcon()" aria-hidden="true"></i></button> </div> <span class="l-transaction-state" [hidden]="!hasState()" [ngClass]="getStateClass()"><i class="fas fa-th-list"></i> {{transactionDetailInfo?.completeState}}</span> </div>
naver/pinpoint
web/src/main/angular/src/app/core/components/transaction-detail-menu/transaction-detail-menu.component.html
HTML
apache-2.0
737
<!doctype html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:foo="http://www.w3.org/2000/svg"> <head> <title>Halogen Example - Todo list</title> <style> body { font-family: sans-serif; max-width: 570px; margin: auto; } ul { list-style: none; padding: 0; } li { margin-bottom: 5px; } input, button { font-family: sans-serif; font-size: 14px; } input[type=text] { width: 500px; margin: 0px 4px; } </style> </head> <body> <script src="example.js"></script> </body> </html>
nwolverson/purescript-halogen
examples/todo/dist/index.html
HTML
apache-2.0
638
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>TrTranslation.cdy</title> <style type="text/css"> * { margin: 0px; padding: 0px; } #CSConsole { background-color: #FAFAFA; border-top: 1px solid #333333; bottom: 0px; height: 200px; overflow-y: scroll; position: fixed; width: 100%; } </style> <script type="text/javascript" src="../build/js/Cindy.js"></script> <script id="csdraw" type="text/x-cindyscript"> draw(P1,P1i,arrow->true,color->(1,1,1)); draw(O,X,arrow->true,color->(0,0,1)); draw(Oi,Xi,arrow->true,color->(0,0,1)); </script> <script type="text/javascript"> CindyJS({ scripts: "cs*", defaultAppearance: { fontFamily: "sans-serif", lineSize: 1, pointSize: 5.0 }, angleUnit: "°", geometry: [ { name: "P1", type: "Free", pos: [ 4.0, -4.0, -0.6666666666666666 ], color: [ 0.0, 0.0, 0.0 ], labeled: true, size: 3.0 }, { name: "P1i", type: "Free", pos: [ 0.0, -4.0, -1.3333333333333333 ], color: [ 0.5019608, 0.5019608, 0.5019608 ], labeled: true, size: 3.0, printname: "P1'" }, { name: "Tr0", type: "TrTranslation", color: [ 0.0, 0.0, 1.0 ], args: [ "P1", "P1i" ] }, { name: "O", type: "Free", pos: [ 4.0, 3.3333333333333335, 0.6666666666666666 ], color: [ 1.0, 1.0, 1.0 ], labeled: true }, { name: "C0", type: "CircleByRadius", color: [ 1.0, 1.0, 0.0 ], radius: 2.999999999999999, args: [ "O" ], printname: "$C_{0}$" }, { name: "X", type: "PointOnCircle", pos: [ 4.0, { r: 2.2077737946188507, i: -1.3419095945542774E-16 }, { r: 0.4444531955041505, i: 1.6304775351968118E-19 } ], color: [ 0.0, 0.0, 1.0 ], args: [ "C0" ], labeled: true, size: 3.0 }, { name: "Oi", type: "Transform", pos: [ 4.0, { r: 0.6666666666666673, i: -3.996802888650567E-17 }, { r: 0.3333333333333333, i: 2.0400348077487273E-17 } ], color: [ 1.0, 1.0, 1.0 ], args: [ "Tr0", "O" ], labeled: true, printname: "O'" }, { name: "Xi", type: "Transform", pos: [ 4.0, { r: 0.5246443927888744, i: -1.4647937769530865E-16 }, { r: 0.2666698170233487, i: 2.095953600789266E-17 } ], color: [ 0.0, 0.0, 1.0 ], args: [ "Tr0", "X" ], labeled: true, size: 3.0, printname: "X'" }, { name: "C2", type: "Transform", color: [ 1.0, 1.0, 0.0 ], args: [ "Tr0", "C0" ], printname: "$C_{2}$" } ], ports: [ { id: "CSCanvas", width: 680, height: 350, transform: [ { visibleRect: [ -9.06, 9.34, 18.14, -4.66 ] } ], background: "rgb(168,176,192)" } ], cinderella: { build: 1798, version: [ 2, 9, 1798 ] } }); </script> </head> <body> <div id="CSCanvas"></div> </body> </html>
gagern/CindyJS
examples/112_TrTranslation.html
HTML
apache-2.0
2,651
<!DOCTYPE html> <html lang="en"> <!-- head头部分开始 --> <head> <include file="Public/public_head" title="开源项目-" keywords="{$Think.config.WEB_KEYWORDS}" description="{$Think.config.WEB_DESCRIPTION}" /> </head> <!-- head头部分结束 --> <body> <!-- 顶部导航开始 --> <include file="Public/public_nav" /> <!-- 顶部导航结束 --> <div class="b-h-70"></div> <!-- 主体部分开始 --> <div id="b-content" class="container"> <div class="row"> <!-- 左侧开源项目开始 --> <div class="col-xs-12 col-md-12 col-lg-8 b-chat"> <!-- bjyadmin开始 --> <script src='http://git.oschina.net/shuaibai123/thinkphp-bjyadmin/widget_preview'></script> <style> .pro_name a{color: #4183c4;} .osc_git_title{background-color: #d8e5f1;} .osc_git_box{background-color: #fafafa;} .osc_git_box{border-color: #ddd;} .osc_git_info{color: #666;} .osc_git_main a{color: #4183c4;} </style> <!-- bjyadmin结束 --> <!-- bjyblog开始 --> <script src='http://git.oschina.net/shuaibai123/thinkbjy/widget_preview'></script> <style> .pro_name a{color: #4183c4;} .osc_git_title{background-color: #d8e5f1;} .osc_git_box{background-color: #fafafa;} .osc_git_box{border-color: #ddd;} .osc_git_info{color: #666;} .osc_git_main a{color: #4183c4;} </style> <!-- bjyblog结束 --> <!-- sublime开始 --> <script src='http://git.oschina.net/shuaibai123/sublime-thinkphp-bjy/widget_preview'></script> <style> .pro_name a{color: #4183c4;} .osc_git_title{background-color: #d8e5f1;} .osc_git_box{background-color: #fafafa;} .osc_git_box{border-color: #ddd;} .osc_git_info{color: #666;} .osc_git_main a{color: #4183c4;} </style> <!-- sublime结束 --> <!-- 资源开始 --> <script src='http://git.oschina.net/shuaibai123/resources/widget_preview'></script> <style> .pro_name a{color: #4183c4;} .osc_git_title{background-color: #d8e5f1;} .osc_git_box{background-color: #fafafa;} .osc_git_box{border-color: #ddd;} .osc_git_info{color: #666;} .osc_git_main a{color: #4183c4;} </style> <!-- 资源结束 --> <!-- github 上的项目 --> <div class="github-widget" data-repo="baijunyao/thinkphp-bjyadmin"></div> <div class="github-widget" data-repo="baijunyao/thinkphp-bjyblog"></div> </div> <!-- 左侧开源项目结束 --> <!-- 通用右侧开始 --> <include file="Public/public_right" /> <!-- 通用右侧结束 --> </div> <div class="row"> <!-- 底部文件开始 --> <include file="Public/public_foot" /> <!-- 通用底部文件结束 --> </div> </div> <!-- 主体部分结束 --> <!-- 登录框开始 --> <include file="Public/public_login" /> <!-- 登录框结束 --> <script src="__PUBLIC__/static/js/jquery.githubRepoWidget.min.js"></script> <!-- 让osc的链接新窗口打开 --> <script type="text/javascript"> $(function(){ $('.osc_git_box a,.github-widget a').attr('target','_blank'); }) </script> </body> </html>
shuaibai/thinkphp-bjyblog
Template/default_src/Home/Index/git.html
HTML
apache-2.0
3,602
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>Guidelines for Boost Authors</title> <link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.78.1"> <link rel="home" href="../index.html" title="Boost.Config"> <link rel="up" href="../index.html" title="Boost.Config"> <link rel="prev" href="boost_macro_reference.html" title="Boost Macro Reference"> <link rel="next" href="rationale.html" title="Rationale"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td> <td align="center"><a href="../../../../../index.html">Home</a></td> <td align="center"><a href="../../../../../libs/libraries.htm">Libraries</a></td> <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> <td align="center"><a href="../../../../../more/index.htm">More</a></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="boost_macro_reference.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="rationale.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="section"> <div class="titlepage"><div><div><h2 class="title" style="clear: both"> <a name="boost_config.guidelines_for_boost_authors"></a><a class="link" href="guidelines_for_boost_authors.html" title="Guidelines for Boost Authors">Guidelines for Boost Authors</a> </h2></div></div></div> <div class="toc"><dl class="toc"> <dt><span class="section"><a href="guidelines_for_boost_authors.html#boost_config.guidelines_for_boost_authors.warnings">Disabling Compiler Warnings</a></span></dt> <dt><span class="section"><a href="guidelines_for_boost_authors.html#boost_config.guidelines_for_boost_authors.adding_new_defect_macros">Adding New Defect Macros</a></span></dt> <dt><span class="section"><a href="guidelines_for_boost_authors.html#boost_config.guidelines_for_boost_authors.adding_new_feature_test_macros">Adding New Feature Test Macros</a></span></dt> <dt><span class="section"><a href="guidelines_for_boost_authors.html#boost_config.guidelines_for_boost_authors.modifying_the_boost_configuration_headers">Modifying the Boost Configuration Headers</a></span></dt> </dl></div> <p> The <a href="../../../../../boost/config.hpp" target="_top">&lt;boost/config.hpp&gt;</a> header is used to pass configuration information to other boost files, allowing them to cope with platform dependencies such as arithmetic byte ordering, compiler pragmas, or compiler shortcomings. Without such configuration information, many current compilers would not work with the Boost libraries. </p> <p> Centralizing configuration information in this header reduces the number of files that must be modified when porting libraries to new platforms, or when compilers are updated. Ideally, no other files would have to be modified when porting to a new platform. </p> <p> Configuration headers are controversial because some view them as condoning broken compilers and encouraging non-standard subsets. Adding settings for additional platforms and maintaining existing settings can also be a problem. In other words, configuration headers are a necessary evil rather than a desirable feature. The boost config.hpp policy is designed to minimize the problems and maximize the benefits of a configuration header. </p> <p> Note that: </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> Boost library implementers are not required to "<code class="computeroutput"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">config</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code>", and are not required in any way to support compilers that do not comply with the C++ Standard (ISO/IEC 14882). </li> <li class="listitem"> If a library implementer wishes to support some non-conforming compiler, or to support some platform specific feature, "<code class="computeroutput"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">config</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code>" is the preferred way to obtain configuration information not available from the standard headers such as <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">climits</span><span class="special">&gt;</span></code>, etc. </li> <li class="listitem"> If configuration information can be deduced from standard headers such as <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">climits</span><span class="special">&gt;</span></code>, use those standard headers rather than <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">config</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code>. </li> <li class="listitem"> Boost files that use macros defined in <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">config</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code> should have sensible, standard conforming, default behavior if the macro is not defined. This means that the starting point for porting <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">config</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code> to a new platform is simply to define nothing at all specific to that platform. In the rare case where there is no sensible default behavior, an #error message should describe the problem. </li> <li class="listitem"> If a Boost library implementer wants something added to <code class="computeroutput"><span class="identifier">config</span><span class="special">.</span><span class="identifier">hpp</span></code>, post a request on the Boost mailing list. There is no guarantee such a request will be honored; the intent is to limit the complexity of config.hpp. </li> <li class="listitem"> The intent is to support only compilers which appear on their way to becoming C++ Standard compliant, and only recent releases of those compilers at that. </li> <li class="listitem"> The intent is not to disable mainstream features now well-supported by the majority of compilers, such as namespaces, exceptions, RTTI, or templates. </li> </ul></div> <div class="section"> <div class="titlepage"><div><div><h3 class="title"> <a name="boost_config.guidelines_for_boost_authors.warnings"></a><a class="link" href="guidelines_for_boost_authors.html#boost_config.guidelines_for_boost_authors.warnings" title="Disabling Compiler Warnings">Disabling Compiler Warnings</a> </h3></div></div></div> <p> The header <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">config</span><span class="special">/</span><span class="identifier">warning_disable</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code> can be used to disable certain compiler warnings that are hard or impossible to otherwise remove. </p> <p> Note that: </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> This header <span class="bold"><strong><span class="emphasis"><em>should never be included by another Boost header</em></span></strong></span>, it should only ever be used by a library source file or a test case. </li> <li class="listitem"> The header should be included <span class="bold"><strong><span class="emphasis"><em>before you include any other header</em></span></strong></span>. </li> <li class="listitem"> This header only disables warnings that are hard or impossible to otherwise deal with, and which are typically emitted by one compiler only, or in one compilers own standard library headers. </li> </ul></div> <p> Currently it disables the following warnings: </p> <div class="informaltable"><table class="table"> <colgroup> <col> <col> </colgroup> <thead><tr> <th> <p> Compiler </p> </th> <th> <p> Warning </p> </th> </tr></thead> <tbody> <tr> <td> <p> Visual C++ 8 and later </p> </td> <td> <p> <a href="http://msdn2.microsoft.com/en-us/library/ttcz0bys(VS.80).aspx" target="_top">C4996</a>: Error 'function': was declared deprecated </p> </td> </tr> <tr> <td> <p> Intel C++ </p> </td> <td> <p> Warning 1786: relates to the use of "deprecated" standard library functions rather like C4996 in Visual C++. </p> </td> </tr> </tbody> </table></div> </div> <div class="section"> <div class="titlepage"><div><div><h3 class="title"> <a name="boost_config.guidelines_for_boost_authors.adding_new_defect_macros"></a><a class="link" href="guidelines_for_boost_authors.html#boost_config.guidelines_for_boost_authors.adding_new_defect_macros" title="Adding New Defect Macros">Adding New Defect Macros</a> </h3></div></div></div> <p> When you need to add a new defect macro - either to fix a problem with an existing library, or when adding a new library - distil the issue down to a simple test case; often, at this point other (possibly better) workarounds may become apparent. Secondly always post the test case code to the boost mailing list and invite comments; remember that C++ is complex and that sometimes what may appear a defect, may in fact turn out to be a problem with the authors understanding of the standard. </p> <p> When you name the macro, follow the <code class="computeroutput"><span class="identifier">BOOST_NO_</span></code><span class="emphasis"><em>SOMETHING</em></span> naming convention, so that it's obvious that this is a macro reporting a defect. </p> <p> Finally, add the test program to the regression tests. You will need to place the test case in a <code class="computeroutput"><span class="special">.</span><span class="identifier">ipp</span></code> file with the following comments near the top: </p> <pre class="programlisting"><span class="comment">// MACRO: BOOST_NO_FOO</span> <span class="comment">// TITLE: foo</span> <span class="comment">// DESCRIPTION: If the compiler fails to support foo</span> </pre> <p> These comments are processed by the autoconf script, so make sure the format follows the one given. The file should be named "<code class="computeroutput"><span class="identifier">boost_no_foo</span><span class="special">.</span><span class="identifier">ipp</span></code>", where foo is the defect description - try and keep the file name under the Mac 30 character filename limit though. You will also need to provide a function prototype "<code class="computeroutput"><span class="keyword">int</span> <span class="identifier">test</span><span class="special">()</span></code>" that is declared in a namespace with the same name as the macro, but in all lower case, and which returns zero on success: </p> <pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost_no_foo</span> <span class="special">{</span> <span class="keyword">int</span> <span class="identifier">test</span><span class="special">()</span> <span class="special">{</span> <span class="comment">// test code goes here:</span> <span class="comment">//</span> <span class="keyword">return</span> <span class="number">0</span><span class="special">;</span> <span class="special">}</span> <span class="special">}</span> </pre> <p> Once the test code is in place in libs/config/test, updating the configuration test system proceeds as: </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> cd into <code class="computeroutput"><span class="identifier">libs</span><span class="special">/</span><span class="identifier">config</span><span class="special">/</span><span class="identifier">tools</span></code> and run <code class="computeroutput"><span class="identifier">bjam</span></code>. This generates the <code class="computeroutput"><span class="special">.</span><span class="identifier">cpp</span></code> file test cases from the <code class="computeroutput"><span class="special">.</span><span class="identifier">ipp</span></code> file, updates the libs/config/test/all/Jamfile.v2, <code class="computeroutput"><span class="identifier">config_test</span><span class="special">.</span><span class="identifier">cpp</span></code> and <code class="computeroutput"><span class="identifier">config_info</span><span class="special">.</span><span class="identifier">cpp</span></code>.<br> <br> </li> <li class="listitem"> cd into <code class="computeroutput"><span class="identifier">libs</span><span class="special">/</span><span class="identifier">config</span><span class="special">/</span><span class="identifier">test</span><span class="special">/</span><span class="identifier">all</span></code> and run <code class="computeroutput"><span class="identifier">bjam</span> </code><span class="emphasis"><em>MACRONAME<code class="computeroutput"> <span class="identifier">compiler</span><span class="special">-</span><span class="identifier">list</span></code></em></span>, where <span class="emphasis"><em>MACRONAME</em></span> is the name of the new macro, and <span class="emphasis"><em><code class="computeroutput"><span class="identifier">compiler</span><span class="special">-</span><span class="identifier">list</span></code></em></span> is a space separated list of compilers to test with.<br> <br> The xxx_pass_test and the xxx_fail_test <span class="bold"><strong>should both report <code class="computeroutput"><span class="special">**</span><span class="identifier">passed</span><span class="special">**</span></code></strong></span>.<br> <br> If <span class="emphasis"><em>MACRONAME</em></span> is not defined when it should be defined, xxx_pass_test will not report <code class="computeroutput"><span class="special">**</span><span class="identifier">passed</span><span class="special">**</span></code>. If <span class="emphasis"><em>MACRONAME</em></span> is defined when it should not be defined, xxx_fail_test will not report <code class="computeroutput"><span class="special">**</span><span class="identifier">passed</span><span class="special">**</span></code>.<br> <br> </li> <li class="listitem"> cd into <code class="computeroutput"><span class="identifier">libs</span><span class="special">/</span><span class="identifier">config</span><span class="special">/</span><span class="identifier">test</span></code> and run <code class="computeroutput"><span class="identifier">bjam</span> <span class="identifier">config_info</span> <span class="identifier">config_test</span> </code><span class="emphasis"><em><code class="computeroutput"><span class="identifier">compiler</span><span class="special">-</span><span class="identifier">list</span></code></em></span>. <code class="computeroutput"><span class="identifier">config_info</span></code> should build and run cleanly for all the compilers in <span class="emphasis"><em><code class="computeroutput"><span class="identifier">compiler</span><span class="special">-</span><span class="identifier">list</span></code></em></span> while <code class="computeroutput"><span class="identifier">config_test</span></code> should fail for those that have the defect, and pass for those that do not. </li> </ul></div> <p> Then you should: </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> Define the defect macro in those config headers that require it. </li> <li class="listitem"> Document the macro in this documentation (please do not forget this step!!) </li> <li class="listitem"> Commit everything. </li> <li class="listitem"> Keep an eye on the regression tests for new failures in Boost.Config caused by the addition. </li> <li class="listitem"> Start using the macro. </li> </ul></div> </div> <div class="section"> <div class="titlepage"><div><div><h3 class="title"> <a name="boost_config.guidelines_for_boost_authors.adding_new_feature_test_macros"></a><a class="link" href="guidelines_for_boost_authors.html#boost_config.guidelines_for_boost_authors.adding_new_feature_test_macros" title="Adding New Feature Test Macros">Adding New Feature Test Macros</a> </h3></div></div></div> <p> When you need to add a macro that describes a feature that the standard does not require, follow the convention for adding a new defect macro (above), but call the macro <code class="computeroutput"><span class="identifier">BOOST_HAS_FOO</span></code>, and name the test file "<code class="computeroutput"><span class="identifier">boost_has_foo</span><span class="special">.</span><span class="identifier">ipp</span></code>". Try not to add feature test macros unnecessarily, if there is a platform specific macro that can already be used (for example <code class="computeroutput"><span class="identifier">_WIN32</span></code>, <code class="computeroutput"><span class="identifier">__BEOS__</span></code>, or <code class="computeroutput"><span class="identifier">__linux</span></code>) to identify the feature then use that. Try to keep the macro to a feature group, or header name, rather than one specific API (for example <code class="computeroutput"><span class="identifier">BOOST_HAS_NL_TYPES_H</span></code> rather than <code class="computeroutput"><span class="identifier">BOOST_HAS_CATOPEN</span></code>). If the macro describes a POSIX feature group, then add boilerplate code to <a href="../../../../../boost/config/user.hpp" target="_top">&lt;boost/config/suffix.hpp&gt;</a> to auto-detect the feature where possible (if you are wondering why we can't use POSIX feature test macro directly, remember that many of these features can be added by third party libraries, and are not therefore identified inside <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">unistd</span><span class="special">.</span><span class="identifier">h</span><span class="special">&gt;</span></code>). </p> </div> <div class="section"> <div class="titlepage"><div><div><h3 class="title"> <a name="boost_config.guidelines_for_boost_authors.modifying_the_boost_configuration_headers"></a><a class="link" href="guidelines_for_boost_authors.html#boost_config.guidelines_for_boost_authors.modifying_the_boost_configuration_headers" title="Modifying the Boost Configuration Headers">Modifying the Boost Configuration Headers</a> </h3></div></div></div> <p> The aim of boost's configuration setup is that the configuration headers should be relatively stable - a boost user should not have to recompile their code just because the configuration for some compiler that they're not interested in has changed. Separating the configuration into separate compiler/standard library/platform sections provides for part of this stability, but boost authors require some amount of restraint as well, in particular: </p> <p> <a href="../../../../../boost/config.hpp" target="_top">&lt;boost/config.hpp&gt;</a> should never change, don't alter this file. </p> <p> <a href="../../../../../boost/config/user.hpp" target="_top">&lt;boost/config/user.hpp&gt;</a> is included by default, don't add extra code to this file unless you have to. If you do, please remember to update <a href="../../../tools/configure.in" target="_top">libs/config/tools/configure.in</a> as well. </p> <p> <a href="../../../../../boost/config/user.hpp" target="_top">&lt;boost/config/suffix.hpp&gt;</a> is always included so be careful about modifying this file as it breaks dependencies for everyone. This file should include only "boilerplate" configuration code, and generally should change only when new macros are added. </p> <p> <a href="../../../../../boost/config/select_compiler_config.hpp" target="_top">&lt;boost/config/select_compiler_config.hpp&gt;</a>, <a href="../../../../../boost/config/select_platform_config.hpp" target="_top">&lt;boost/config/select_platform_config.hpp&gt;</a> and <a href="../../../../../boost/config/select_stdlib_config.hpp" target="_top">&lt;boost/config/select_stdlib_config.hpp&gt;</a> are included by default and should change only if support for a new compiler/standard library/platform is added. </p> <p> The compiler/platform/standard library selection code is set up so that unknown platforms are ignored and assumed to be fully standards compliant - this gives unknown platforms a "sporting chance" of working "as is" even without running the configure script. </p> <p> When adding or modifying the individual mini-configs, assume that future, as yet unreleased versions of compilers, have all the defects of the current version. Although this is perhaps unnecessarily pessimistic, it cuts down on the maintenance of these files, and experience suggests that pessimism is better placed than optimism here! </p> </div> </div> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright &#169; 2001-2007 Beman Dawes, Vesa Karvonen, John Maddock<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> </div></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="boost_macro_reference.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="rationale.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html>
NixaSoftware/CVis
venv/bin/libs/config/doc/html/boost_config/guidelines_for_boost_authors.html
HTML
apache-2.0
24,988
<section id="advice"> <h2 class="page-header"><a href="#advice">A Word of Advice</a></h2> <p class="lead"> Before you go to see your new awesome theme, here are few tips on how to familiarize yourself with it: </p> <ul> <li><b>AdminLTE is based on <a href="http://getbootstrap.com/" target="_blank">Bootstrap 3</a>.</b> If you are unfamiliar with Bootstrap, visit their website and read through the documentation. All of Bootstrap components have been modified to fit the style of AdminLTE and provide a consistent look throughout the template. This way, we guarantee you will get the best of AdminLTE.</li> <li><b>Go through the pages that are bundled with the theme.</b> Most of the template example pages contain quick tips on how to create or use a component which can be really helpful when you need to create something on the fly.</li> <li><b>Documentation.</b> We are trying our best to make your experience with AdminLTE be smooth. One way to achieve that is to provide documentation and support. If you think that something is missing from the documentation, please do not hesitate to create an issue to tell us about it.</li> <li><b>Built with <a href="http://lesscss.org/" target="_blank">LESS</a>.</b> This theme uses the LESS compiler to make it easier to customize and use. LESS is easy to learn if you know CSS or SASS. It is not necessary to learn LESS but it will benefit you a lot in the future.</li> <li><b>Hosted on <a href="https://github.com/almasaeed2010/AdminLTE/" target="_blank">GitHub</a>.</b> Visit our GitHub repository to view issues, make requests, or contribute to the project.</li> </ul> <p> <b>Note:</b> LESS files are better commented than the compiled CSS file. </p> </section>
rogerfanrui/dubbo-monitor
src/main/resources/static/adminlte/documentation/build/include/advice.html
HTML
apache-2.0
1,774
<!DOCTYPE html> <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no"> <meta charset="utf-8"> <title>Google Maps JavaScript API v3 Example: Directions Draggable</title> <link href="default.css" rel="stylesheet"> <script type="text/javascript" src="https://www.google.com/jsapi"></script> <script> var rendererOptions = { draggable: true }; var directionsDisplay; var directionsService; var map; var australia; function initialize() { directionsDisplay = new google.maps.DirectionsRenderer(rendererOptions);; directionsService = new google.maps.DirectionsService(); australia = new google.maps.LatLng(-25.274398, 133.775136); var mapOptions = { zoom: 7, mapTypeId: google.maps.MapTypeId.ROADMAP, center: australia }; map = new google.maps.Map(document.getElementById('map_canvas'), mapOptions); directionsDisplay.setMap(map); directionsDisplay.setPanel(document.getElementById('directionsPanel')); google.maps.event.addListener(directionsDisplay, 'directions_changed', function() { computeTotalDistance(directionsDisplay.getDirections()); }); calcRoute(); } function calcRoute() { var request = { origin: 'Sydney, NSW', destination: 'Sydney, NSW', waypoints:[{location: 'Bourke, NSW'}, {location: 'Broken Hill, NSW'}], travelMode: google.maps.DirectionsTravelMode.DRIVING }; directionsService.route(request, function(response, status) { if (status == google.maps.DirectionsStatus.OK) { directionsDisplay.setDirections(response); } }); } function computeTotalDistance(result) { var total = 0; var myroute = result.routes[0]; for (var i = 0; i < myroute.legs.length; i++) { total += myroute.legs[i].distance.value; } total = total / 1000. document.getElementById('total').innerHTML = total + ' km'; } google.load('maps', '3.0', { callback: initialize, other_params: 'sensor=false' }); </script> </head> <body> <div id="map_canvas" style="float:left;width:70%; height:100%"></div> <div id="directionsPanel" style="float:right;width:30%;height 100%"> <p>Total Distance: <span id="total"></span></p> </div> </body> </html>
initaldk/caja
tests/com/google/caja/apitaming/maps/directions-draggable.html
HTML
apache-2.0
2,510
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>template test</title> <script src="js/jquery-1.7.2.min.js"></script> <script src="js/highcharts.js"></script> <script src="../dist/template-native.js"></script> <script src="js/tmpl.js"></script> <script src="js/doT.js"></script> <script src="js/juicer.js"></script> <script src="js/kissy.js"></script> <script src="js/template.js"></script> <script src="js/mustache.js"></script> <script src="js/handlebars.js"></script> <script src="js/baiduTemplate.js"></script> <script src="js/jquery.tmpl.js"></script> <script src="js/easytemplate.js"></script> <script src="js/underscore.js"></script> <script src="js/etpl.js"></script> <script> // 数据量 var length = 100; // 渲染次数 var number = 10000; var data = { list: [] }; for (var i = 0; i < length; i ++) { data.list.push({ index: i, user: '<strong style="color:red">糖饼</strong>', site: 'http://www.planeart.cn', weibo: 'http://weibo.com/planeart', QQweibo: 'http://t.qq.com/tangbin' }); }; // 待测试的引擎列表 var testList = [ { name: 'artTemplate', tester: function () { //template.config('escape', false); var source = document.getElementById('template').innerHTML; var fn = template.compile(source); for (var i = 0; i < number; i ++) { fn(data); } } }, { name: 'juicer', tester: function () { var config = {cache:true}; var source = document.getElementById('juicer').innerHTML; for (var i = 0; i < number; i ++) { juicer.to_html(source, data, config); } } }, { name: 'doT', tester: function () { var source = document.getElementById('doT').innerHTML; var doTtmpl = doT.template(source); for (var i = 0; i < number; i ++) { doTtmpl(data); } } }, { name: 'Handlebars', tester: function () { var source = document.getElementById('Handlebars').innerHTML; var fn = Handlebars.compile(source); for (var i = 0; i < number; i ++) { fn(data); } } }, { name: 'etpl', tester: function () { // dont escape html etpl.config({ defaultFilter: '' }); var source = document.getElementById('etpl').innerHTML; var fn = etpl.compile(source); for (var i = 0; i < number; i ++) { fn(data); } } }, { name: 'tmpl', tester: function () { var source = document.getElementById('tmpl').innerHTML; var fn = tmpl(source); for (var i = 0; i < number; i ++) { fn(data); } } }, { name: 'easyTemplate', tester: function () { var source = document.getElementById('easyTemplate').innerHTML; var fn = easyTemplate(source); for (var i = 0; i < number; i ++) { // easyTemplate 渲染方法被重写到 toString(), 需要取值操作才会运行 fn(data) + ''; } } }, { name: 'underscoreTemplate', tester: function () { var source = document.getElementById('underscoreTemplate').innerHTML; var fn = _.template(source); for (var i = 0; i < number; i ++) { fn(data); } } }, { name: 'baiduTemplate', tester: function () { var bt=baidu.template; bt.ESCAPE = false; for (var i = 0; i < number; i ++) { bt('baidu-template', data); } } }, // jqueryTmpl 太慢,可能导致浏览器停止响应 /*{ name: 'jqueryTmpl', tester: function () { var source = document.getElementById("jqueryTmpl").innerHTML; for (var i = 0; i < number; i ++) { $.tmpl(source, data); } } },*/ { name: 'Mustache', tester: function () { var source = document.getElementById('Mustache').innerHTML; for (var i = 0; i < number; i ++) { Mustache.to_html(source, data); } } } ]; KISSY.use('template',function(S,T) { testList.push({ name: 'kissyTemplate', tester: function () { var source= document.getElementById('kissy').innerHTML; for (var i = 0; i < number; i ++) { T(source).render(data); } } }); }); var startTest = function () { var Timer = function (){ this.startTime = + new Date; }; Timer.prototype.stop = function(){ return + new Date - this.startTime; }; var colors = Highcharts.getOptions().colors; var categories = []; for (var i = 0; i < testList.length; i ++) { categories.push(testList[i].name); } var chart = new Highcharts.Chart({ chart: { renderTo: 'container', height: categories.length * 40, type: 'bar' }, title: { text: 'JavaScript 模板引擎负荷测试' }, subtitle: { text: length + ' 条数据 × ' + number + ' 次渲染' }, xAxis: { categories: categories, labels: { align: 'right', style: { fontSize: '12px', fontFamily: 'Verdana, sans-serif' } } }, yAxis: { min: 0, title: { text: '耗时(毫秒)' } }, legend: { enabled: false }, tooltip: { formatter: function() { return '<b>'+ this.x +'</b><br/>'+ this.y + '毫秒'; } }, credits: { enabled: false }, plotOptions: { bar: { dataLabels: { enabled: true, formatter: function () { return this.y + 'ms'; } } } }, series: [{ data : [] }] }); var log = function (message) { document.getElementById('log').innerHTML = message; }; var tester = function (target) { var time = new Timer; target.tester(); var endTime = time.stop(); chart.series[0].addPoint({ color: colors.shift(), y: endTime }); if (!testList.length) { log('测试已完成,请不要迷恋速度'); return; } target = testList.shift(); log('正在测试: ' + target.name + '..'); setTimeout(function () { tester(target); }, 500); }; var target = testList.shift(); log('正在测试: ' + target.name + '..'); tester(target); }; </script> <!-- artTemplate 的模板 --> <script id="template" type="text/tmpl"> <ul> <% for (i = 0, l = list.length; i < l; i ++) { %> <li>用户: <%=#list[i].user%>/ 网站:<%=#list[i].site%></li> <% } %> </ul> </script> <!-- baidu-template 的模板 --> <script id="baidu-template" type="text/tmpl"> <ul> <% for (var val, i = 0, l = list.length; i < l; i ++) { %> <% val = list[i]; %> <li>用户: <%:=val.user%>/ 网站:<%:=val.site%></li> <% } %> </ul> </script> <!-- easyTemplate 的模板 --> <script id="easyTemplate" type="text/tmpl"> <ul> <#list data.list as item> <li>用户: ${item.user}/ 网站:${item.site}</li> </#list> </ul> </script> <!-- tmpl 的模板 --> <script id="tmpl" type="text/tmpl"> <ul> <% for (var val, i = 0, l = list.length; i < l; i ++) { %> <% val = list[i]; %> <li>用户: <%=val.user%>/ 网站:<%=val.site%></li> <% } %> </ul> </script> <!-- jqueryTmpl 的模板 --> <script id="jqueryTmpl" type="text/tmpl"> <ul> {{each list}} <li>用户: ${$value.user}/ 网站:${$value.site}</li> {{/each}} </ul> </script> <!--juicer 的模板 --> <script id="juicer" type="text/tmpl"> <ul> {@each list as val} <li>用户: $${val.user}/ 网站:$${val.site}</li> {@/each} </ul> </script> <!--etpl 的模板 --> <script id="etpl" type="text/tmpl"> <ul> <!--for: ${list} as ${val} --> <li>用户: ${val.user}/ 网站:${val.site}</li> <!--/for--> </ul> </script> <!-- doT 的模板 --> <script id="doT" type="text/tmpl"> <ul> {{ for (var val, i = 0, l = it.list.length; i < l; i ++) { }} {{ val = it.list; }} <li>用户: {{=val[i].user}}/ 网站:{{=val[i].site}}</li> {{ } }} </ul> </script> <!--Mustache 的模板 --> <script id="Mustache" type="text/tmpl"> <ul> {{#list}} <li>用户: {{{user}}}/ 网站:{{{site}}}</li> {{/list}} </ul> </script> <!--Handlebars 的模板 --> <script id="Handlebars" type="text/tmpl"> <ul> {{#list}} <li>用户: {{{user}}}/ 网站:{{{site}}}</li> {{/list}} </ul> </script> <!--kissy 的模板 --> <script id="kissy" type="text/tmpl"> <ul> {{#each list as val}} <li>用户: {{val.user}}/ 网站:{{val.site}}</li> {{/each}} </ul> </script> <!-- ejs 的模板 --> <script id="ejs" type="text/tmpl"> <ul> <& for (var val, i = 0, l = @list.length; i < l; i ++) { &> <& val = @list[i]; &> <li>用户: <&= val.user &>; 网站:<&= val.site &></li> <& } &> </ul> </script> <!-- underscore 的模板 --> <script id="underscoreTemplate" type="text/tmpl"> <ul> <% for (var i = 0, l = list.length; i < l; i ++) { %> <li>用户: <%=list[i].user%>/ 网站:<%=list[i].site%></li> <% } %> </ul> </script> </head> <body> <h1>引擎渲染速度测试</h1> <p><strong><script>document.write(length)</script></strong> 条数据 × <strong><script>document.write(number)</script></strong> 次渲染测试 [escape:false, cache:true]</p> <p><em>建议在拥有 v8 javascript 引擎的 chrome 浏览器上进行测试,避免浏览器停止响应</em></p> <p><button id="button-test" onclick="this.disabled=true;startTest()" style="padding: 5px;">开始测试&raquo;</button> <span id="log" style="font-size:12px"><script>for (var i = 0; i < testList.length; i ++) {document.write(testList[i].name + '; ')}</script></span></p> <div id="container" style="min-width: 400px; margin: 0 auto"></div> </body> </html>
WTXGBG/loltpc
tp5/public/assets/libs/art-template/test/test-speed.html
HTML
apache-2.0
11,011
{% extends "graphos/gchart/base.html" %} {% block create_chart %} var chart = new google.visualization.LineChart(document.getElementById('{{ chart.get_html_id }}')); {% endblock %}
aorzh/django-graphos
graphos/templates/graphos/gchart/line_chart.html
HTML
bsd-2-clause
183
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Minim : : AudioPlayer : : close</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="stylesheet.css" rel="stylesheet" type="text/css"> </head> <body> <center> <table width="600" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="100" valign="top" class="header"> <span class="libName">Minim</span><br> <a href="index.html">core</a><br/> <a href="index_ugens.html">ugens</a><br/> <a href="index_analysis.html">analysis</a> </td> <td width="450" class="descList">&nbsp;</td> </tr> <tr> <td valign="top" class="mainTextName">Name</td> <td class="methodName">close</td> </tr> <tr> <td valign=top class="mainText">Examples</td> <td valign=top class="descList"><pre>None available</pre></td> </tr> <tr> <td valign=top class="mainText">Description</td> <td valign=top class="descList">Release the resources associated with playing this file. All AudioPlayers returned by Minim's loadFile method will be closed by Minim when it's stop method is called. If you are using Processing, Minim's stop method will be called automatically when your application exits.</td> </tr> <tr> <td valign=top class="mainText">Syntax</td> <td valign=top class="descList"><pre>close(); </pre></td> </tr> <!-- begin parameters --> <!-- end parameters --> <!-- begin return --> <tr> <td valign=top class="mainText">Returns</td> <td class="descList">None</td> </tr> <!-- end return --> <tr> <td valign=top class="mainText">Usage</td> <td class="descList">Web & Application</td> </tr> <tr> <td valign=top class="mainText">Related</td> <td class="descList"></td> </tr> <tr> <td></td> <td class="descList">&nbsp;</td> </tr> </table> </center> </body> </html>
UTSDataArena/examples
processing/sketchbook/libraries/minim/documentation/audioplayer_method_close.html
HTML
bsd-2-clause
2,021
@(user: User = null, scripts: Html = Html(""))(content: Html) <!DOCTYPE html> <html> <head> <title>@Messages("title")</title> <link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/bootstrap.css")"> <link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/main.css")"> <link rel="shortcut icon" type="image/png" href="@routes.Assets.at("images/favicon.png")"> <script src="@routes.Assets.at("javascripts/jquery/jquery-2.1.0.min.js")" type="text/javascript"></script> <script src="@routes.Assets.at("javascripts/bootstrap.js")" type="text/javascript"></script> <link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/font-awesome.min.css")"> @scripts </head> <body> <div ng-controller="MenuCtrl" class="navbar navbar-inverse navbar-default" role="navigation"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"> <span class="sr-only">Toggle navigation</span> <span class="fa fa-bars fa-lg fa-inverse"></span> </button> <a class="navbar-brand" href="@routes.Application.index()"> <i class="fa fa-rocket"></i> Project name </a> <ul class="nav navbar-nav navbar-right"> <li class=""><a href="@routes.Application.index()">Home</a></li> </ul> </div> @logged(user) </div> <div class="container"> <div class="row"> @content </div> </div> <hr> <div class="footer text-center"> <div> <small> Hello! I'm your friendly footer. If you're actually reading this, I'm impressed.... <a href="https://github.com/yesnault/PlayStartApp">Fork me on Github</a> <i class="fa fa-github fa-1"></i> <a href="https://github.com/yesnault/PlayStartApp">https://github.com/yesnault/PlayStartApp</a> </small> </div> </div> </body> </html>
haroldoramirez/PlayStartApp2
app/views/main.scala.html
HTML
bsd-3-clause
2,234
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>ORKNumericPrecision Constants Reference</title> <link rel="stylesheet" href="../css/style.css"> <meta name="viewport" content="initial-scale=1, maximum-scale=1.4"> <meta name="generator" content="appledoc 2.2.1 (build 1334)"> </head> <body class="appledoc"> <header> <div class="container" class="hide-in-xcode"> <h1 id="library-title"> <a href="../index.html">ResearchKit </a> </h1> <p id="developer-home"> <a href="../index.html">ResearchKit</a> </p> </div> </header> <aside> <div class="container"> <nav> <ul id="header-buttons" role="toolbar"> <li><a href="../index.html">Index</a></li> <li><a href="../hierarchy.html">Hierarchy</a></li> <li id="on-this-page" role="navigation"> <label> On This Page <div class="chevron"> <div class="chevy chevron-left"></div> <div class="chevy chevron-right"></div> </div> <select id="jump-to"> <option value="top">Jump To&#133;</option> </select> </label> </li> </ul> </nav> </div> </aside> <article> <div id="overview_contents" class="container"> <div id="content"> <main role="main"> <h1 class="title">ORKNumericPrecision Constants Reference</h1> <div class="section section-specification"><table cellspacing="0"><tbody> <tr> <th>Declared in</th> <td>ORKTypes.h</td> </tr> </tbody></table></div> <h3 class="subsubtitle method-title">ORKNumericPrecision</h3> <div class="section section-overview"> <p>Numeric precision.</p> <p>Used by <a href="../Classes/ORKWeightAnswerFormat.html">ORKWeightAnswerFormat</a>.</p> </div> <div class="section"> <!-- display enum values --> <h4 class="method-subtitle">Definition</h4> <code>typedef NS_ENUM(NSInteger, ORKNumericPrecision ) {<br> &nbsp;&nbsp; <a href="">ORKNumericPrecisionDefault</a> = 0,<br> &nbsp;&nbsp; <a href="">ORKNumericPrecisionLow</a>,<br> &nbsp;&nbsp; <a href="">ORKNumericPrecisionHigh</a>,<br> };</code> </div> <div class="section section-methods"> <h4 class="method-subtitle">Constants</h4> <dl class="termdef"> <dt><a name="" title="ORKNumericPrecisionDefault"></a><code>ORKNumericPrecisionDefault</code></dt> <dd> <p>Default numeric precision.</p> <p> Declared In <code class="declared-in-ref">ORKTypes.h</code>. </p> </dd> <dt><a name="" title="ORKNumericPrecisionLow"></a><code>ORKNumericPrecisionLow</code></dt> <dd> <p>Low numeric precision.</p> <p> Declared In <code class="declared-in-ref">ORKTypes.h</code>. </p> </dd> <dt><a name="" title="ORKNumericPrecisionHigh"></a><code>ORKNumericPrecisionHigh</code></dt> <dd> <p>High numeric preicision.</p> <p> Declared In <code class="declared-in-ref">ORKTypes.h</code>. </p> </dd> </dl> </div> <div class="method-subsection declared-in-section"> <h4 class="method-subtitle">Declared In</h4> <p><code class="declared-in-ref">ORKTypes.h</code></p> </div> </main> <footer> <div class="footer-copyright"> <p class="copyright">Copyright &copy; 2018 ResearchKit. All rights reserved. Updated: 2018-07-23</p> <p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1334)</a>.</p> </div> </footer> </div> </div> </article> <script src="../js/script.js"></script> </body> </html>
jeremiahyan/ResearchKit
docs/org.researchkit.ResearchKit.docset/Contents/Resources/Documents/Constants/ORKNumericPrecision.html
HTML
bsd-3-clause
4,601
<!DOCTYPE html> <html lang="en"> <head> <title>three.js webgl - trackball camera</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> <style> body { color: #000; font-family:Monospace; font-size:13px; text-align:center; font-weight: bold; background-color: #fff; margin: 0px; overflow: hidden; } #info { color:#000; position: absolute; top: 0px; width: 100%; padding: 5px; } a { color: red; } </style> </head> <body> <div id="container"></div> <div id="info"> <a href="http://github.com/mrdoob/three.js" target="_blank">three.js</a> - trackball camera example</br> MOVE mouse &amp; press LEFT/A: rotate, MIDDLE/S: zoom, RIGHT/D: pan </div> <script src="../build/three.min.js"></script> <script src="js/Detector.js"></script> <script src="js/Stats.js"></script> <script> if ( ! Detector.webgl ) Detector.addGetWebGLMessage(); var container, stats; var camera, controls, scene, renderer; var cross; init(); animate(); function init() { camera = new THREE.PerspectiveCamera( 60, window.innerWidth / window.innerHeight, 1, 1000 ); camera.position.z = 500; controls = new THREE.TrackballControls( camera ); controls.rotateSpeed = 1.0; controls.zoomSpeed = 1.2; controls.panSpeed = 0.8; controls.noZoom = false; controls.noPan = false; controls.staticMoving = true; controls.dynamicDampingFactor = 0.3; controls.keys = [ 65, 83, 68 ]; controls.addEventListener( 'change', render ); // world scene = new THREE.Scene(); scene.fog = new THREE.FogExp2( 0xcccccc, 0.002 ); var geometry = new THREE.CylinderGeometry( 0, 10, 30, 4, 1 ); var material = new THREE.MeshLambertMaterial( { color:0xffffff, shading: THREE.FlatShading } ); for ( var i = 0; i < 500; i ++ ) { var mesh = new THREE.Mesh( geometry, material ); mesh.position.x = ( Math.random() - 0.5 ) * 1000; mesh.position.y = ( Math.random() - 0.5 ) * 1000; mesh.position.z = ( Math.random() - 0.5 ) * 1000; mesh.updateMatrix(); mesh.matrixAutoUpdate = false; scene.add( mesh ); } // lights light = new THREE.DirectionalLight( 0xffffff ); light.position.set( 1, 1, 1 ); scene.add( light ); light = new THREE.DirectionalLight( 0x002288 ); light.position.set( -1, -1, -1 ); scene.add( light ); light = new THREE.AmbientLight( 0x222222 ); scene.add( light ); // renderer renderer = new THREE.WebGLRenderer( { antialias: false } ); renderer.setClearColor( scene.fog.color, 1 ); renderer.setSize( window.innerWidth, window.innerHeight ); container = document.getElementById( 'container' ); container.appendChild( renderer.domElement ); stats = new Stats(); stats.domElement.style.position = 'absolute'; stats.domElement.style.top = '0px'; stats.domElement.style.zIndex = 100; container.appendChild( stats.domElement ); // window.addEventListener( 'resize', onWindowResize, false ); } function onWindowResize() { camera.aspect = window.innerWidth / window.innerHeight; camera.updateProjectionMatrix(); renderer.setSize( window.innerWidth, window.innerHeight ); controls.handleResize(); render(); } function animate() { requestAnimationFrame( animate ); controls.update(); } function render() { renderer.render( scene, camera ); stats.update(); } </script> </body> </html>
christopheschwyzer/StopheWebLab
three/source/three/examples/misc_camera_trackball.html
HTML
mit
3,637
{% extends "base.html" %} {% block title %}All notes ({{ notes|length }}){% endblock %} {% block page_title %} <span>All notes ({{ notes|length }})</span> {% endblock %} {% block content %} {% if notes %} <table class="notes"> <tr> <th class="note">Note <a href="/?order=name" class="sort_arrow" >&darr;</a><a href="/?order=-name" class="sort_arrow" >&uarr;</a></th> <th>Pad</th> <th class="date">Last modified <a href="/?order=updated_at" class="sort_arrow" >&darr;</a><a href="/?order=-updated_at" class="sort_arrow" >&uarr;</a></th> </tr> {% for note in notes %} <tr> <td><a href="{{ url_for('view_note', note_id=note.id) }}">{{ note.name }}</a></td> <td class="pad"> {% if note.pad %} <a href="{{ url_for('pad_notes', pad_id=note.pad.id) }}">{{ note.pad.name }}</a> {% else %} No pad {% endif %} </td> <td class="hidden-text date">{{ note.updated_at|smart_date }}</td> </tr> {% endfor %} </table> {% else %} <p class="empty">Create your first note.</p> {% endif %} <a href="{{ url_for('create_note') }}" class="button">New note</a> {% endblock %}
williamn/notejam
flask/notejam/templates/notes/list.html
HTML
mit
1,221
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Phaser Source: src/plugins/weapon/WeaponPlugin.js</title> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link type="text/css" rel="stylesheet" href="styles/default.css"> <link type="text/css" rel="stylesheet" href="styles/sunlight.default.css"> <link type="text/css" rel="stylesheet" href="styles/site.cerulean.css"> </head> <body> <div class="container-fluid"> <div class="navbar navbar-fixed-top navbar-inverse"> <div style="position: absolute; width: 143px; height: 31px; right: 10px; top: 10px; z-index: 1050"><a href="http://phaser.io"><img src="img/phaser.png" border="0" /></a></div> <div class="navbar-inner"> <a class="brand" href="index.html">Phaser API</a> <ul class="nav"> <li class="dropdown"> <a href="namespaces.list.html" class="dropdown-toggle" data-toggle="dropdown">Namespaces<b class="caret"></b></a> <ul class="dropdown-menu "> <li class="class-depth-0"> <a href="Phaser.html">Phaser</a> </li> <li class="class-depth-0"> <a href="Phaser.KeyCode.html">KeyCode</a> </li> <li class="class-depth-0"> <a href="PIXI.html">PIXI</a> </li> </ul> </li> <li class="dropdown"> <a href="classes.list.html" class="dropdown-toggle" data-toggle="dropdown">Classes<b class="caret"></b></a> <ul class="dropdown-menu "> <li class="class-depth-1"> <a href="Phaser.Animation.html">Animation</a> </li> <li class="class-depth-1"> <a href="Phaser.AnimationManager.html">AnimationManager</a> </li> <li class="class-depth-1"> <a href="Phaser.AnimationParser.html">AnimationParser</a> </li> <li class="class-depth-1"> <a href="Phaser.ArraySet.html">ArraySet</a> </li> <li class="class-depth-1"> <a href="Phaser.ArrayUtils.html">ArrayUtils</a> </li> <li class="class-depth-1"> <a href="Phaser.AudioSprite.html">AudioSprite</a> </li> <li class="class-depth-1"> <a href="Phaser.BitmapData.html">BitmapData</a> </li> <li class="class-depth-1"> <a href="Phaser.BitmapText.html">BitmapText</a> </li> <li class="class-depth-1"> <a href="Phaser.Bullet.html">Bullet</a> </li> <li class="class-depth-1"> <a href="Phaser.Button.html">Button</a> </li> <li class="class-depth-1"> <a href="Phaser.Cache.html">Cache</a> </li> <li class="class-depth-1"> <a href="Phaser.Camera.html">Camera</a> </li> <li class="class-depth-1"> <a href="Phaser.Canvas.html">Canvas</a> </li> <li class="class-depth-1"> <a href="Phaser.Circle.html">Circle</a> </li> <li class="class-depth-1"> <a href="Phaser.Color.html">Color</a> </li> <li class="class-depth-2"> <a href="Phaser.Component.Angle.html">Angle</a> </li> <li class="class-depth-2"> <a href="Phaser.Component.Animation.html">Animation</a> </li> <li class="class-depth-2"> <a href="Phaser.Component.AutoCull.html">AutoCull</a> </li> <li class="class-depth-2"> <a href="Phaser.Component.Bounds.html">Bounds</a> </li> <li class="class-depth-2"> <a href="Phaser.Component.BringToTop.html">BringToTop</a> </li> <li class="class-depth-2"> <a href="Phaser.Component.Core.html">Core</a> </li> <li class="class-depth-2"> <a href="Phaser.Component.Crop.html">Crop</a> </li> <li class="class-depth-2"> <a href="Phaser.Component.Delta.html">Delta</a> </li> <li class="class-depth-2"> <a href="Phaser.Component.Destroy.html">Destroy</a> </li> <li class="class-depth-2"> <a href="Phaser.Component.FixedToCamera.html">FixedToCamera</a> </li> <li class="class-depth-2"> <a href="Phaser.Component.Health.html">Health</a> </li> <li class="class-depth-2"> <a href="Phaser.Component.InCamera.html">InCamera</a> </li> <li class="class-depth-2"> <a href="Phaser.Component.InputEnabled.html">InputEnabled</a> </li> <li class="class-depth-2"> <a href="Phaser.Component.InWorld.html">InWorld</a> </li> <li class="class-depth-2"> <a href="Phaser.Component.LifeSpan.html">LifeSpan</a> </li> <li class="class-depth-2"> <a href="Phaser.Component.LoadTexture.html">LoadTexture</a> </li> <li class="class-depth-2"> <a href="Phaser.Component.Overlap.html">Overlap</a> </li> <li class="class-depth-2"> <a href="Phaser.Component.PhysicsBody.html">PhysicsBody</a> </li> <li class="class-depth-2"> <a href="Phaser.Component.Reset.html">Reset</a> </li> <li class="class-depth-2"> <a href="Phaser.Component.ScaleMinMax.html">ScaleMinMax</a> </li> <li class="class-depth-2"> <a href="Phaser.Component.Smoothed.html">Smoothed</a> </li> <li class="class-depth-1"> <a href="Phaser.Create.html">Create</a> </li> <li class="class-depth-1"> <a href="Phaser.Creature.html">Creature</a> </li> <li class="class-depth-1"> <a href="Phaser.Device.html">Device</a> </li> <li class="class-depth-1"> <a href="Phaser.DeviceButton.html">DeviceButton</a> </li> <li class="class-depth-1"> <a href="Phaser.DOM.html">DOM</a> </li> <li class="class-depth-1"> <a href="Phaser.Easing.html">Easing</a> </li> <li class="class-depth-2"> <a href="Phaser.Easing.Back.html">Back</a> </li> <li class="class-depth-2"> <a href="Phaser.Easing.Bounce.html">Bounce</a> </li> <li class="class-depth-2"> <a href="Phaser.Easing.Circular.html">Circular</a> </li> <li class="class-depth-2"> <a href="Phaser.Easing.Cubic.html">Cubic</a> </li> <li class="class-depth-2"> <a href="Phaser.Easing.Elastic.html">Elastic</a> </li> <li class="class-depth-2"> <a href="Phaser.Easing.Exponential.html">Exponential</a> </li> <li class="class-depth-2"> <a href="Phaser.Easing.Linear.html">Linear</a> </li> <li class="class-depth-2"> <a href="Phaser.Easing.Quadratic.html">Quadratic</a> </li> <li class="class-depth-2"> <a href="Phaser.Easing.Quartic.html">Quartic</a> </li> <li class="class-depth-2"> <a href="Phaser.Easing.Quintic.html">Quintic</a> </li> <li class="class-depth-2"> <a href="Phaser.Easing.Sinusoidal.html">Sinusoidal</a> </li> <li class="class-depth-1"> <a href="Phaser.Ellipse.html">Ellipse</a> </li> <li class="class-depth-1"> <a href="Phaser.Events.html">Events</a> </li> <li class="class-depth-1"> <a href="Phaser.Filter.html">Filter</a> </li> <li class="class-depth-1"> <a href="Phaser.FlexGrid.html">FlexGrid</a> </li> <li class="class-depth-1"> <a href="Phaser.FlexLayer.html">FlexLayer</a> </li> <li class="class-depth-1"> <a href="Phaser.Frame.html">Frame</a> </li> <li class="class-depth-1"> <a href="Phaser.FrameData.html">FrameData</a> </li> <li class="class-depth-1"> <a href="Phaser.Game.html">Game</a> </li> <li class="class-depth-1"> <a href="Phaser.GameObjectCreator.html">GameObjectCreator</a> </li> <li class="class-depth-1"> <a href="Phaser.GameObjectFactory.html">GameObjectFactory</a> </li> <li class="class-depth-1"> <a href="Phaser.Gamepad.html">Gamepad</a> </li> <li class="class-depth-1"> <a href="Phaser.Graphics.html">Graphics</a> </li> <li class="class-depth-1"> <a href="Phaser.Group.html">Group</a> </li> <li class="class-depth-1"> <a href="Phaser.Image.html">Image</a> </li> <li class="class-depth-1"> <a href="Phaser.ImageCollection.html">ImageCollection</a> </li> <li class="class-depth-1"> <a href="Phaser.Input.html">Input</a> </li> <li class="class-depth-1"> <a href="Phaser.InputHandler.html">InputHandler</a> </li> <li class="class-depth-1"> <a href="Phaser.Key.html">Key</a> </li> <li class="class-depth-1"> <a href="Phaser.Keyboard.html">Keyboard</a> </li> <li class="class-depth-1"> <a href="Phaser.Line.html">Line</a> </li> <li class="class-depth-1"> <a href="Phaser.LinkedList.html">LinkedList</a> </li> <li class="class-depth-1"> <a href="Phaser.Loader.html">Loader</a> </li> <li class="class-depth-1"> <a href="Phaser.LoaderParser.html">LoaderParser</a> </li> <li class="class-depth-1"> <a href="Phaser.Math.html">Math</a> </li> <li class="class-depth-1"> <a href="Phaser.Matrix.html">Matrix</a> </li> <li class="class-depth-1"> <a href="Phaser.Mouse.html">Mouse</a> </li> <li class="class-depth-1"> <a href="Phaser.MSPointer.html">MSPointer</a> </li> <li class="class-depth-1"> <a href="Phaser.Net.html">Net</a> </li> <li class="class-depth-1"> <a href="Phaser.Particle.html">Particle</a> </li> <li class="class-depth-1"> <a href="Phaser.Particles.html">Particles</a> </li> <li class="class-depth-2"> <a href="Phaser.Particles.Arcade.html">Arcade</a> </li> <li class="class-depth-3"> <a href="Phaser.Particles.Arcade.Emitter.html">Emitter</a> </li> <li class="class-depth-1"> <a href="Phaser.Physics.html">Physics</a> </li> <li class="class-depth-2"> <a href="Phaser.Physics.Arcade.html">Arcade</a> </li> <li class="class-depth-3"> <a href="Phaser.Physics.Arcade.Body.html">Body</a> </li> <li class="class-depth-3"> <a href="Phaser.Physics.Arcade.TilemapCollision.html">TilemapCollision</a> </li> <li class="class-depth-2"> <a href="Phaser.Physics.Ninja.html">Ninja</a> </li> <li class="class-depth-3"> <a href="Phaser.Physics.Ninja.AABB.html">AABB</a> </li> <li class="class-depth-3"> <a href="Phaser.Physics.Ninja.Body.html">Body</a> </li> <li class="class-depth-3"> <a href="Phaser.Physics.Ninja.Circle.html">Circle</a> </li> <li class="class-depth-3"> <a href="Phaser.Physics.Ninja.Tile.html">Tile</a> </li> <li class="class-depth-2"> <a href="Phaser.Physics.P2.html">P2</a> </li> <li class="class-depth-3"> <a href="Phaser.Physics.P2.Body.html">Body</a> </li> <li class="class-depth-3"> <a href="Phaser.Physics.P2.BodyDebug.html">BodyDebug</a> </li> <li class="class-depth-3"> <a href="Phaser.Physics.P2.CollisionGroup.html">CollisionGroup</a> </li> <li class="class-depth-3"> <a href="Phaser.Physics.P2.ContactMaterial.html">ContactMaterial</a> </li> <li class="class-depth-3"> <a href="Phaser.Physics.P2.DistanceConstraint.html">DistanceConstraint</a> </li> <li class="class-depth-3"> <a href="Phaser.Physics.P2.FixtureList.html">FixtureList</a> </li> <li class="class-depth-3"> <a href="Phaser.Physics.P2.GearConstraint.html">GearConstraint</a> </li> <li class="class-depth-3"> <a href="Phaser.Physics.P2.InversePointProxy.html">InversePointProxy</a> </li> <li class="class-depth-3"> <a href="Phaser.Physics.P2.LockConstraint.html">LockConstraint</a> </li> <li class="class-depth-3"> <a href="Phaser.Physics.P2.Material.html">Material</a> </li> <li class="class-depth-3"> <a href="Phaser.Physics.P2.PointProxy.html">PointProxy</a> </li> <li class="class-depth-3"> <a href="Phaser.Physics.P2.PrismaticConstraint.html">PrismaticConstraint</a> </li> <li class="class-depth-3"> <a href="Phaser.Physics.P2.RevoluteConstraint.html">RevoluteConstraint</a> </li> <li class="class-depth-3"> <a href="Phaser.Physics.P2.RotationalSpring.html">RotationalSpring</a> </li> <li class="class-depth-3"> <a href="Phaser.Physics.P2.Spring.html">Spring</a> </li> <li class="class-depth-1"> <a href="Phaser.Plugin.html">Plugin</a> </li> <li class="class-depth-1"> <a href="Phaser.PluginManager.html">PluginManager</a> </li> <li class="class-depth-1"> <a href="Phaser.Point.html">Point</a> </li> <li class="class-depth-1"> <a href="Phaser.Pointer.html">Pointer</a> </li> <li class="class-depth-1"> <a href="Phaser.PointerMode.html">PointerMode</a> </li> <li class="class-depth-1"> <a href="Phaser.Polygon.html">Polygon</a> </li> <li class="class-depth-1"> <a href="Phaser.QuadTree.html">QuadTree</a> </li> <li class="class-depth-1"> <a href="Phaser.RandomDataGenerator.html">RandomDataGenerator</a> </li> <li class="class-depth-1"> <a href="Phaser.Rectangle.html">Rectangle</a> </li> <li class="class-depth-1"> <a href="Phaser.RenderTexture.html">RenderTexture</a> </li> <li class="class-depth-1"> <a href="Phaser.RequestAnimationFrame.html">RequestAnimationFrame</a> </li> <li class="class-depth-1"> <a href="Phaser.RetroFont.html">RetroFont</a> </li> <li class="class-depth-1"> <a href="Phaser.Rope.html">Rope</a> </li> <li class="class-depth-1"> <a href="Phaser.RoundedRectangle.html">RoundedRectangle</a> </li> <li class="class-depth-1"> <a href="Phaser.ScaleManager.html">ScaleManager</a> </li> <li class="class-depth-1"> <a href="Phaser.Signal.html">Signal</a> </li> <li class="class-depth-1"> <a href="Phaser.SignalBinding.html">SignalBinding</a> </li> <li class="class-depth-1"> <a href="Phaser.SinglePad.html">SinglePad</a> </li> <li class="class-depth-1"> <a href="Phaser.Sound.html">Sound</a> </li> <li class="class-depth-1"> <a href="Phaser.SoundManager.html">SoundManager</a> </li> <li class="class-depth-1"> <a href="Phaser.Sprite.html">Sprite</a> </li> <li class="class-depth-1"> <a href="Phaser.SpriteBatch.html">SpriteBatch</a> </li> <li class="class-depth-1"> <a href="Phaser.Stage.html">Stage</a> </li> <li class="class-depth-1"> <a href="Phaser.State.html">State</a> </li> <li class="class-depth-1"> <a href="Phaser.StateManager.html">StateManager</a> </li> <li class="class-depth-1"> <a href="Phaser.Text.html">Text</a> </li> <li class="class-depth-1"> <a href="Phaser.Tile.html">Tile</a> </li> <li class="class-depth-1"> <a href="Phaser.Tilemap.html">Tilemap</a> </li> <li class="class-depth-1"> <a href="Phaser.TilemapLayer.html">TilemapLayer</a> </li> <li class="class-depth-1"> <a href="Phaser.TilemapParser.html">TilemapParser</a> </li> <li class="class-depth-1"> <a href="Phaser.Tileset.html">Tileset</a> </li> <li class="class-depth-1"> <a href="Phaser.TileSprite.html">TileSprite</a> </li> <li class="class-depth-1"> <a href="Phaser.Time.html">Time</a> </li> <li class="class-depth-1"> <a href="Phaser.Timer.html">Timer</a> </li> <li class="class-depth-1"> <a href="Phaser.TimerEvent.html">TimerEvent</a> </li> <li class="class-depth-1"> <a href="Phaser.Touch.html">Touch</a> </li> <li class="class-depth-1"> <a href="Phaser.Tween.html">Tween</a> </li> <li class="class-depth-1"> <a href="Phaser.TweenData.html">TweenData</a> </li> <li class="class-depth-1"> <a href="Phaser.TweenManager.html">TweenManager</a> </li> <li class="class-depth-1"> <a href="Phaser.Utils.html">Utils</a> </li> <li class="class-depth-2"> <a href="Phaser.Utils.Debug.html">Debug</a> </li> <li class="class-depth-1"> <a href="Phaser.Video.html">Video</a> </li> <li class="class-depth-1"> <a href="Phaser.Weapon.html">Weapon</a> </li> <li class="class-depth-1"> <a href="Phaser.World.html">World</a> </li> <li class="class-depth-1"> <a href="PIXI.AbstractFilter.html">AbstractFilter</a> </li> <li class="class-depth-1"> <a href="PIXI.BaseTexture.html">BaseTexture</a> </li> <li class="class-depth-1"> <a href="PIXI.CanvasBuffer.html">CanvasBuffer</a> </li> <li class="class-depth-1"> <a href="PIXI.CanvasGraphics.html">CanvasGraphics</a> </li> <li class="class-depth-1"> <a href="PIXI.CanvasMaskManager.html">CanvasMaskManager</a> </li> <li class="class-depth-1"> <a href="PIXI.CanvasPool.html">CanvasPool</a> </li> <li class="class-depth-1"> <a href="PIXI.CanvasRenderer.html">CanvasRenderer</a> </li> <li class="class-depth-1"> <a href="PIXI.CanvasTinter.html">CanvasTinter</a> </li> <li class="class-depth-1"> <a href="PIXI.ComplexPrimitiveShader.html">ComplexPrimitiveShader</a> </li> <li class="class-depth-1"> <a href="PIXI.DisplayObjectContainer.html">DisplayObjectContainer</a> </li> <li class="class-depth-1"> <a href="PIXI.EarCut.html">EarCut</a> </li> <li class="class-depth-1"> <a href="PIXI.Event.html">Event</a> </li> <li class="class-depth-1"> <a href="PIXI.EventTarget.html">EventTarget</a> </li> <li class="class-depth-1"> <a href="PIXI.FilterTexture.html">FilterTexture</a> </li> <li class="class-depth-1"> <a href="PIXI.Graphics.html">Graphics</a> </li> <li class="class-depth-1"> <a href="PIXI.GraphicsData.html">GraphicsData</a> </li> <li class="class-depth-1"> <a href="PIXI.PIXI.html">PIXI</a> </li> <li class="class-depth-2"> <a href="PIXI.PIXI.DisplayObject.html">DisplayObject</a> </li> <li class="class-depth-1"> <a href="PIXI.PixiFastShader.html">PixiFastShader</a> </li> <li class="class-depth-1"> <a href="PIXI.PixiShader.html">PixiShader</a> </li> <li class="class-depth-1"> <a href="PIXI.PolyK.html">PolyK</a> </li> <li class="class-depth-1"> <a href="PIXI.PrimitiveShader.html">PrimitiveShader</a> </li> <li class="class-depth-1"> <a href="PIXI.RenderTexture.html">RenderTexture</a> </li> <li class="class-depth-1"> <a href="PIXI.Rope.html">Rope</a> </li> <li class="class-depth-1"> <a href="PIXI.Sprite.html">Sprite</a> </li> <li class="class-depth-1"> <a href="PIXI.SpriteBatch.html">SpriteBatch</a> </li> <li class="class-depth-1"> <a href="PIXI.Strip.html">Strip</a> </li> <li class="class-depth-1"> <a href="PIXI.StripShader.html">StripShader</a> </li> <li class="class-depth-1"> <a href="PIXI.Texture.html">Texture</a> </li> <li class="class-depth-1"> <a href="PIXI.TilingSprite.html">TilingSprite</a> </li> <li class="class-depth-1"> <a href="PIXI.WebGLBlendModeManager.html">WebGLBlendModeManager</a> </li> <li class="class-depth-1"> <a href="PIXI.WebGLFastSpriteBatch.html">WebGLFastSpriteBatch</a> </li> <li class="class-depth-1"> <a href="PIXI.WebGLFilterManager.html">WebGLFilterManager</a> </li> <li class="class-depth-1"> <a href="PIXI.WebGLRenderer.html">WebGLRenderer</a> </li> </ul> </li> <li class="dropdown"> <a href="global.html" class="dropdown-toggle" data-toggle="dropdown">Global<b class="caret"></b></a> <ul class="dropdown-menu "> <li class="class-depth-0"> <a href="global.html#ANGLE_DOWN">ANGLE_DOWN</a> </li> <li class="class-depth-0"> <a href="global.html#ANGLE_LEFT">ANGLE_LEFT</a> </li> <li class="class-depth-0"> <a href="global.html#ANGLE_NORTH_EAST">ANGLE_NORTH_EAST</a> </li> <li class="class-depth-0"> <a href="global.html#ANGLE_NORTH_WEST">ANGLE_NORTH_WEST</a> </li> <li class="class-depth-0"> <a href="global.html#ANGLE_RIGHT">ANGLE_RIGHT</a> </li> <li class="class-depth-0"> <a href="global.html#ANGLE_SOUTH_EAST">ANGLE_SOUTH_EAST</a> </li> <li class="class-depth-0"> <a href="global.html#ANGLE_SOUTH_WEST">ANGLE_SOUTH_WEST</a> </li> <li class="class-depth-0"> <a href="global.html#ANGLE_UP">ANGLE_UP</a> </li> <li class="class-depth-0"> <a href="global.html#AUTO">AUTO</a> </li> <li class="class-depth-0"> <a href="global.html#BITMAPDATA">BITMAPDATA</a> </li> <li class="class-depth-0"> <a href="global.html#BITMAPTEXT">BITMAPTEXT</a> </li> <li class="class-depth-0"> <a href="global.html#blendModes">blendModes</a> </li> <li class="class-depth-0"> <a href="global.html#BOTTOM_CENTER">BOTTOM_CENTER</a> </li> <li class="class-depth-0"> <a href="global.html#BOTTOM_LEFT">BOTTOM_LEFT</a> </li> <li class="class-depth-0"> <a href="global.html#BOTTOM_RIGHT">BOTTOM_RIGHT</a> </li> <li class="class-depth-0"> <a href="global.html#BUTTON">BUTTON</a> </li> <li class="class-depth-0"> <a href="global.html#CANVAS">CANVAS</a> </li> <li class="class-depth-0"> <a href="global.html#CANVAS_FILTER">CANVAS_FILTER</a> </li> <li class="class-depth-0"> <a href="global.html#CENTER">CENTER</a> </li> <li class="class-depth-0"> <a href="global.html#CIRCLE">CIRCLE</a> </li> <li class="class-depth-0"> <a href="global.html#CREATURE">CREATURE</a> </li> <li class="class-depth-0"> <a href="global.html#displayList">displayList</a> </li> <li class="class-depth-0"> <a href="global.html#DOWN">DOWN</a> </li> <li class="class-depth-0"> <a href="global.html#ELLIPSE">ELLIPSE</a> </li> <li class="class-depth-0"> <a href="global.html#EMITTER">EMITTER</a> </li> <li class="class-depth-0"> <a href="global.html#GAMES">GAMES</a> </li> <li class="class-depth-0"> <a href="global.html#GRAPHICS">GRAPHICS</a> </li> <li class="class-depth-0"> <a href="global.html#GROUP">GROUP</a> </li> <li class="class-depth-0"> <a href="global.html#HEADLESS">HEADLESS</a> </li> <li class="class-depth-0"> <a href="global.html#HORIZONTAL">HORIZONTAL</a> </li> <li class="class-depth-0"> <a href="global.html#IMAGE">IMAGE</a> </li> <li class="class-depth-0"> <a href="global.html#intersectsRectangle">intersectsRectangle</a> </li> <li class="class-depth-0"> <a href="global.html#LANDSCAPE">LANDSCAPE</a> </li> <li class="class-depth-0"> <a href="global.html#LEFT">LEFT</a> </li> <li class="class-depth-0"> <a href="global.html#LEFT_BOTTOM">LEFT_BOTTOM</a> </li> <li class="class-depth-0"> <a href="global.html#LEFT_CENTER">LEFT_CENTER</a> </li> <li class="class-depth-0"> <a href="global.html#LEFT_TOP">LEFT_TOP</a> </li> <li class="class-depth-0"> <a href="global.html#LINE">LINE</a> </li> <li class="class-depth-0"> <a href="global.html#MATRIX">MATRIX</a> </li> <li class="class-depth-0"> <a href="global.html#NONE">NONE</a> </li> <li class="class-depth-0"> <a href="global.html#PENDING_ATLAS">PENDING_ATLAS</a> </li> <li class="class-depth-0"> <a href="global.html#POINT">POINT</a> </li> <li class="class-depth-0"> <a href="global.html#POINTER">POINTER</a> </li> <li class="class-depth-0"> <a href="global.html#POLYGON">POLYGON</a> </li> <li class="class-depth-0"> <a href="global.html#PORTRAIT">PORTRAIT</a> </li> <li class="class-depth-0"> <a href="global.html#RECTANGLE">RECTANGLE</a> </li> <li class="class-depth-0"> <a href="global.html#RENDERTEXTURE">RENDERTEXTURE</a> </li> <li class="class-depth-0"> <a href="global.html#RETROFONT">RETROFONT</a> </li> <li class="class-depth-0"> <a href="global.html#RIGHT">RIGHT</a> </li> <li class="class-depth-0"> <a href="global.html#RIGHT_BOTTOM">RIGHT_BOTTOM</a> </li> <li class="class-depth-0"> <a href="global.html#RIGHT_CENTER">RIGHT_CENTER</a> </li> <li class="class-depth-0"> <a href="global.html#RIGHT_TOP">RIGHT_TOP</a> </li> <li class="class-depth-0"> <a href="global.html#ROPE">ROPE</a> </li> <li class="class-depth-0"> <a href="global.html#ROUNDEDRECTANGLE">ROUNDEDRECTANGLE</a> </li> <li class="class-depth-0"> <a href="global.html#scaleModes">scaleModes</a> </li> <li class="class-depth-0"> <a href="global.html#SPRITE">SPRITE</a> </li> <li class="class-depth-0"> <a href="global.html#SPRITEBATCH">SPRITEBATCH</a> </li> <li class="class-depth-0"> <a href="global.html#TEXT">TEXT</a> </li> <li class="class-depth-0"> <a href="global.html#TILEMAP">TILEMAP</a> </li> <li class="class-depth-0"> <a href="global.html#TILEMAPLAYER">TILEMAPLAYER</a> </li> <li class="class-depth-0"> <a href="global.html#TILESPRITE">TILESPRITE</a> </li> <li class="class-depth-0"> <a href="global.html#TOP_CENTER">TOP_CENTER</a> </li> <li class="class-depth-0"> <a href="global.html#TOP_LEFT">TOP_LEFT</a> </li> <li class="class-depth-0"> <a href="global.html#TOP_RIGHT">TOP_RIGHT</a> </li> <li class="class-depth-0"> <a href="global.html#UP">UP</a> </li> <li class="class-depth-0"> <a href="global.html#VERSION">VERSION</a> </li> <li class="class-depth-0"> <a href="global.html#VERTICAL">VERTICAL</a> </li> <li class="class-depth-0"> <a href="global.html#VIDEO">VIDEO</a> </li> <li class="class-depth-0"> <a href="global.html#WEBGL">WEBGL</a> </li> <li class="class-depth-0"> <a href="global.html#WEBGL_FILTER">WEBGL_FILTER</a> </li> </ul> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Core<b class="caret"></b></a> <ul class="dropdown-menu "> <li class="class-depth-1"><a href="Phaser.Game.html">Game</a></li> <li class="class-depth-1"><a href="Phaser.Group.html">Group</a></li> <li class="class-depth-1"><a href="Phaser.World.html">World</a></li> <li class="class-depth-1"><a href="Phaser.Loader.html">Loader</a></li> <li class="class-depth-1"><a href="Phaser.Cache.html">Cache</a></li> <li class="class-depth-1"><a href="Phaser.Time.html">Time</a></li> <li class="class-depth-1"><a href="Phaser.Camera.html">Camera</a></li> <li class="class-depth-1"><a href="Phaser.StateManager.html">State Manager</a></li> <li class="class-depth-1"><a href="Phaser.TweenManager.html">Tween Manager</a></li> <li class="class-depth-1"><a href="Phaser.SoundManager.html">Sound Manager</a></li> <li class="class-depth-1"><a href="Phaser.Input.html">Input Manager</a></li> <li class="class-depth-1"><a href="Phaser.ScaleManager.html">Scale Manager</a></li> </ul> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Game Objects<b class="caret"></b></a> <ul class="dropdown-menu "> <li class="class-depth-1"><a href="Phaser.GameObjectFactory.html">Factory (game.add)</a></li> <li class="class-depth-1"><a href="Phaser.GameObjectCreator.html">Creator (game.make)</a></li> <li class="class-depth-1"><a href="Phaser.Sprite.html">Sprite</a></li> <li class="class-depth-1"><a href="Phaser.Image.html">Image</a></li> <li class="class-depth-1"><a href="Phaser.Sound.html">Sound</a></li> <li class="class-depth-1"><a href="Phaser.Video.html">Video</a></li> <li class="class-depth-1"><a href="Phaser.Particles.Arcade.Emitter.html">Particle Emitter</a></li> <li class="class-depth-1"><a href="Phaser.Particle.html">Particle</a></li> <li class="class-depth-1"><a href="Phaser.Text.html">Text</a></li> <li class="class-depth-1"><a href="Phaser.Tween.html">Tween</a></li> <li class="class-depth-1"><a href="Phaser.BitmapText.html">BitmapText</a></li> <li class="class-depth-1"><a href="Phaser.Tilemap.html">Tilemap</a></li> <li class="class-depth-1"><a href="Phaser.BitmapData.html">BitmapData</a></li> <li class="class-depth-1"><a href="Phaser.RetroFont.html">RetroFont</a></li> <li class="class-depth-1"><a href="Phaser.Button.html">Button</a></li> <li class="class-depth-1"><a href="Phaser.Animation.html">Animation</a></li> <li class="class-depth-1"><a href="Phaser.Graphics.html">Graphics</a></li> <li class="class-depth-1"><a href="Phaser.RenderTexture.html">RenderTexture</a></li> <li class="class-depth-1"><a href="Phaser.TileSprite.html">TileSprite</a></li> </ul> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Geometry<b class="caret"></b></a> <ul class="dropdown-menu "> <li class="class-depth-1"><a href="Phaser.Circle.html">Circle</a></li> <li class="class-depth-1"><a href="Phaser.Ellipse.html">Ellipse</a></li> <li class="class-depth-1"><a href="Phaser.Line.html">Line</a></li> <li class="class-depth-1"><a href="Phaser.Matrix.html">Matrix</a></li> <li class="class-depth-1"><a href="Phaser.Point.html">Point</a></li> <li class="class-depth-1"><a href="Phaser.Polygon.html">Polygon</a></li> <li class="class-depth-1"><a href="Phaser.Rectangle.html">Rectangle</a></li> <li class="class-depth-1"><a href="Phaser.RoundedRectangle.html">Rounded Rectangle</a></li> </ul> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Physics<b class="caret"></b></a> <ul class="dropdown-menu "> <li class="class-depth-1"><a href="Phaser.Physics.Arcade.html">Arcade Physics</a></li> <li class="class-depth-2"><a href="Phaser.Physics.Arcade.Body.html">Body</a></li> <li class="class-depth-2"><a href="Phaser.Weapon.html">Weapon</a></li> <li class="class-depth-1"><a href="Phaser.Physics.P2.html">P2 Physics</a></li> <li class="class-depth-2"><a href="Phaser.Physics.P2.Body.html">Body</a></li> <li class="class-depth-2"><a href="Phaser.Physics.P2.Spring.html">Spring</a></li> <li class="class-depth-2"><a href="Phaser.Physics.P2.CollisionGroup.html">CollisionGroup</a></li> <li class="class-depth-2"><a href="Phaser.Physics.P2.ContactMaterial.html">ContactMaterial</a></li> <li class="class-depth-1"><a href="Phaser.Physics.Ninja.html">Ninja Physics</a></li> <li class="class-depth-2"><a href="Phaser.Physics.Body.html">Body</a></li> </ul> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Input<b class="caret"></b></a> <ul class="dropdown-menu "> <li class="class-depth-1"><a href="Phaser.InputHandler.html">Input Handler</a></li> <li class="class-depth-1"><a href="Phaser.Pointer.html">Pointer</a></li> <li class="class-depth-1"><a href="Phaser.DeviceButton.html">Device Button</a></li> <li class="class-depth-1"><a href="Phaser.Mouse.html">Mouse</a></li> <li class="class-depth-1"><a href="Phaser.Keyboard.html">Keyboard</a></li> <li class="class-depth-1"><a href="Phaser.Key.html">Key</a></li> <li class="class-depth-1"><a href="Phaser.Gamepad.html">Gamepad</a></li> </ul> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Community<b class="caret"></b></a> <ul class="dropdown-menu "> <li class="class-depth-1"><a href="http://phaser.io">Phaser Web Site</a></li> <li class="class-depth-1"><a href="https://github.com/photonstorm/phaser">Phaser Github</a></li> <li class="class-depth-1"><a href="http://phaser.io/examples">Phaser Examples</a></li> <li class="class-depth-1"><a href="https://github.com/photonstorm/phaser-plugins">Phaser Plugins</a></li> <li class="class-depth-1"><a href="http://www.html5gamedevs.com/forum/14-phaser/">Forum</a></li> <li class="class-depth-1"><a href="http://stackoverflow.com/questions/tagged/phaser-framework">Stack Overflow</a></li> <li class="class-depth-1"><a href="http://phaser.io/learn">Tutorials</a></li> <li class="class-depth-1"><a href="http://phaser.io/community/newsletter">Newsletter</a></li> <li class="class-depth-1"><a href="http://phaser.io/community/twitter">Twitter</a></li> <li class="class-depth-1"><a href="http://phaser.io/community/slack">Slack</a></li> <li class="class-depth-1"><a href="http://phaser.io/community/donate">Donate</a></li> <li class="class-depth-1"><a href="https://www.codeandweb.com/texturepacker/phaser">Texture Packer</a></li> </ul> </li> </ul> </div> </div> <div class="row-fluid"> <div class="span12"> <div id="main"> <h1 class="page-title">Source: src/plugins/weapon/WeaponPlugin.js</h1> <section> <article> <pre class="sunlight-highlight-javascript linenums">/** * @author Richard Davey &lt;rich@photonstorm.com> * @copyright 2016 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ /** * The Weapon Plugin provides the ability to easily create a bullet pool and manager. * * Weapons fire Phaser.Bullet objects, which are essentially Sprites with a few extra properties. * The Bullets are enabled for Arcade Physics. They do not currently work with P2 Physics. * * The Bullets are created inside of `Weapon.bullets`, which is a Phaser.Group instance. Anything you * can usually do with a Group, such as move it around the display list, iterate it, etc can be done * to the bullets Group too. * * Bullets can have textures and even animations. You can control the speed at which they are fired, * the firing rate, the firing angle, and even set things like gravity for them. * * A small example, assumed to be running from within a Phaser.State create method. * * `var weapon = this.add.weapon(10, 'bullet');` * `weapon.fireFrom.set(300, 300);` * `this.input.onDown.add(weapon.fire, this);` * * @class Phaser.Weapon * @constructor * @param {Phaser.Game} game - A reference to the current Phaser.Game instance. * @param {Phaser.PluginManager} parent - The Phaser Plugin Manager which looks after this plugin. */ Phaser.Weapon = function (game, parent) { Phaser.Plugin.call(this, game, parent); /** * This is the Phaser.Group that contains all of the bullets managed by this plugin. * @type {Phaser.Group} */ this.bullets = null; /** * Should the bullet pool run out of bullets (i.e. they are all in flight) then this * boolean controls if the Group will create a brand new bullet object or not. * @type {boolean} */ this.autoExpandBulletsGroup = false; /** * Will this weapon auto fire? If set to true then a new bullet will be fired * based on the `fireRate` value. * @type {boolean} */ this.autofire = false; /** * The total number of bullets this Weapon has fired so far. * You can limit the number of shots allowed (via `fireLimit`), and reset * this total via `Weapon.resetShots`. * @type {number} */ this.shots = 0; /** * The maximum number of shots that this Weapon is allowed to fire before it stops. * When the limit is his the `Weapon.onFireLimit` Signal is dispatched. * You can reset the shot counter via `Weapon.resetShots`. * @type {number} */ this.fireLimit = 0; /** * The rate at which this Weapon can fire. The value is given in milliseconds. * @type {number} */ this.fireRate = 100; /** * This is a modifier that is added to the `fireRate` each update to add variety * to the firing rate of the Weapon. The value is given in milliseconds. * If you've a `fireRate` of 200 and a `fireRateVariance` of 50 then the actual * firing rate of the Weapon will be between 150 and 250. * @type {number} */ this.fireRateVariance = 0; /** * This is a Rectangle from within which the bullets are fired. By default it's a 1x1 * rectangle, the equivalent of a Point. But you can change the width and height, and if * larger than 1x1 it'll pick a random point within the rectangle to launch the bullet from. * @type {Phaser.Rectangle} */ this.fireFrom = new Phaser.Rectangle(0, 0, 1, 1); /** * The angle at which the bullets are fired. This can be a const such as Phaser.ANGLE_UP * or it can be any number from 0 to 360 inclusive, where 0 degrees is to the right. * @type {integer} */ this.fireAngle = Phaser.ANGLE_UP; /** * When a Bullet is fired it can optionally inherit the velocity of the `trackedSprite` if set. * @type {boolean} */ this.bulletInheritSpriteSpeed = false; /** * The string based name of the animation that the Bullet will be given on launch. * This is set via `Weapon.addBulletAnimation`. * @type {string} */ this.bulletAnimation = ''; /** * If you've added a set of frames via `Weapon.setBulletFrames` then you can optionally * chose for each Bullet fired to pick a random frame from the set. * @type {boolean} */ this.bulletFrameRandom = false; /** * If you've added a set of frames via `Weapon.setBulletFrames` then you can optionally * chose for each Bullet fired to use the next frame in the set. The frame index is then * advanced one frame until it reaches the end of the set, then it starts from the start * again. Cycling frames like this allows you to create varied bullet effects via * sprite sheets. * @type {boolean} */ this.bulletFrameCycle = false; /** * Should the Bullets wrap around the world bounds? This automatically calls * `World.wrap` on the Bullet each frame. See the docs for that method for details. * @type {boolean} */ this.bulletWorldWrap = false; /** * If `bulletWorldWrap` is true then you can provide an optional padding value with this * property. It's added to the calculations determining when the Bullet should wrap around * the world or not. The value is given in pixels. * @type {integer} */ this.bulletWorldWrapPadding = 0; /** * An optional angle offset applied to the Bullets when they are launched. * This is useful if for example your bullet sprites have been drawn facing up, instead of * to the right, and you want to fire them at an angle. In which case you can set the * angle offset to be 90 and they'll be properly rotated when fired. * @type {number} */ this.bulletAngleOffset = 0; /** * This is a variance added to the angle of Bullets when they are fired. * If you fire from an angle of 90 and have a `bulletAngleVariance` of 20 then the actual * angle of the Bullets will be between 70 and 110 degrees. This is a quick way to add a * great 'spread' effect to a Weapon. * @type {number} */ this.bulletAngleVariance = 0; /** * The speed at which the bullets are fired. This value is given in pixels per second, and * is used to set the starting velocity of the bullets. * @type {number} */ this.bulletSpeed = 200; /** * This is a variance added to the speed of Bullets when they are fired. * If bullets have a `bulletSpeed` value of 200, and a `bulletSpeedVariance` of 50 * then the actual speed of the Bullets will be between 150 and 250 pixels per second. * @type {number} */ this.bulletSpeedVariance = 0; /** * If you've set `bulletKillType` to `Phaser.Weapon.KILL_LIFESPAN` this controls the amount * of lifespan the Bullets have set on launch. The value is given in milliseconds. * When a Bullet hits its lifespan limit it will be automatically killed. * @type {number} */ this.bulletLifespan = 0; /** * If you've set `bulletKillType` to `Phaser.Weapon.KILL_DISTANCE` this controls the distance * the Bullet can travel before it is automatically killed. The distance is given in pixels. * @type {number} */ this.bulletKillDistance = 0; /** * This is the amount of gravity added to the Bullets physics body when fired. * Gravity is expressed in pixels / second / second. * @type {Phaser.Point} */ this.bulletGravity = new Phaser.Point(0, 0); /** * Bullets can optionally adjust their rotation in-flight to match their velocity. * This can create the effect of a bullet 'pointing' to the path it is following, for example * an arrow being fired from a bow, and works especially well when added to `bulletGravity`. * @type {boolean} */ this.bulletRotateToVelocity = false; /** * The Texture Key that the Bullets use when rendering. * Changing this has no effect on bullets in-flight, only on newly spawned bullets. * @type {string} */ this.bulletKey = ''; /** * The Texture Frame that the Bullets use when rendering. * Changing this has no effect on bullets in-flight, only on newly spawned bullets. * @type {string|integer} */ this.bulletFrame = ''; /** * Private var that holds the public `bulletClass` property. * @type {object} * @private */ this._bulletClass = Phaser.Bullet; /** * Private var that holds the public `bulletCollideWorldBounds` property. * @type {boolean} * @private */ this._bulletCollideWorldBounds = false; /** * Private var that holds the public `bulletKillType` property. * @type {integer} * @private */ this._bulletKillType = Phaser.Weapon.KILL_WORLD_BOUNDS; /** * Holds internal data about custom bullet body sizes. * * @type {Object} * @private */ this._data = { customBody: false, width: 0, height: 0, offsetX: 0, offsetY: 0 }; /** * This Rectangle defines the bounds that are used when determining if a Bullet should be killed or not. * It's used in combination with `Weapon.bulletKillType` when that is set to either `Phaser.Weapon.KILL_WEAPON_BOUNDS` * or `Phaser.Weapon.KILL_STATIC_BOUNDS`. If you are not using either of these kill types then the bounds are ignored. * If you are tracking a Sprite or Point then the bounds are centered on that object every frame. * * @type {Phaser.Rectangle} */ this.bounds = new Phaser.Rectangle(); /** * The Rectangle used to calculate the bullet bounds from. * * @type {Phaser.Rectangle} * @private */ this.bulletBounds = game.world.bounds; /** * This array stores the frames added via `Weapon.setBulletFrames`. * * @type {Array} * @protected */ this.bulletFrames = []; /** * The index of the frame within `Weapon.bulletFrames` that is currently being used. * This value is only used if `Weapon.bulletFrameCycle` is set to `true`. * @type {number} * @private */ this.bulletFrameIndex = 0; /** * An internal object that stores the animation data added via `Weapon.addBulletAnimation`. * @type {Object} * @private */ this.anims = {}; /** * The onFire Signal is dispatched each time `Weapon.fire` is called, and a Bullet is * _successfully_ launched. The callback is set two arguments: a reference to the bullet sprite itself, * and a reference to the Weapon that fired the bullet. * * @type {Phaser.Signal} */ this.onFire = new Phaser.Signal(); /** * The onKill Signal is dispatched each time a Bullet that is in-flight is killed. This can be the result * of leaving the Weapon bounds, an expiring lifespan, or exceeding a specified distance. * The callback is sent one argument: A reference to the bullet sprite itself. * * @type {Phaser.Signal} */ this.onKill = new Phaser.Signal(); /** * The onFireLimit Signal is dispatched if `Weapon.fireLimit` is > 0, and a bullet launch takes the number * of shots fired to equal the fire limit. * The callback is sent two arguments: A reference to the Weapon that hit the limit, and the value of * `Weapon.fireLimit`. * * @type {Phaser.Signal} */ this.onFireLimit = new Phaser.Signal(); /** * The Sprite currently being tracked by the Weapon, if any. * This is set via the `Weapon.trackSprite` method. * * @type {Phaser.Sprite|Object} */ this.trackedSprite = null; /** * The Pointer currently being tracked by the Weapon, if any. * This is set via the `Weapon.trackPointer` method. * * @type {Phaser.Pointer} */ this.trackedPointer = null; /** * If the Weapon is tracking a Sprite, should it also track the Sprites rotation? * This is useful for a game such as Asteroids, where you want the weapon to fire based * on the sprites rotation. * * @type {boolean} */ this.trackRotation = false; /** * The Track Offset is a Point object that allows you to specify a pixel offset that bullets use * when launching from a tracked Sprite or Pointer. For example if you've got a bullet that is 2x2 pixels * in size, but you're tracking a Sprite that is 32x32, then you can set `trackOffset.x = 16` to have * the bullet launched from the center of the Sprite. * * @type {Phaser.Point} */ this.trackOffset = new Phaser.Point(); /** * Internal firing rate time tracking variable. * * @type {number} * @private */ this._nextFire = 0; }; Phaser.Weapon.prototype = Object.create(Phaser.Plugin.prototype); Phaser.Weapon.prototype.constructor = Phaser.Weapon; /** * A `bulletKillType` constant that stops the bullets from ever being destroyed automatically. * @constant * @type {integer} */ Phaser.Weapon.KILL_NEVER = 0; /** * A `bulletKillType` constant that automatically kills the bullets when their `bulletLifespan` expires. * @constant * @type {integer} */ Phaser.Weapon.KILL_LIFESPAN = 1; /** * A `bulletKillType` constant that automatically kills the bullets after they * exceed the `bulletDistance` from their original firing position. * @constant * @type {integer} */ Phaser.Weapon.KILL_DISTANCE = 2; /** * A `bulletKillType` constant that automatically kills the bullets when they leave the `Weapon.bounds` rectangle. * @constant * @type {integer} */ Phaser.Weapon.KILL_WEAPON_BOUNDS = 3; /** * A `bulletKillType` constant that automatically kills the bullets when they leave the `Camera.bounds` rectangle. * @constant * @type {integer} */ Phaser.Weapon.KILL_CAMERA_BOUNDS = 4; /** * A `bulletKillType` constant that automatically kills the bullets when they leave the `World.bounds` rectangle. * @constant * @type {integer} */ Phaser.Weapon.KILL_WORLD_BOUNDS = 5; /** * A `bulletKillType` constant that automatically kills the bullets when they leave the `Weapon.bounds` rectangle. * @constant * @type {integer} */ Phaser.Weapon.KILL_STATIC_BOUNDS = 6; /** * This method performs two actions: First it will check to see if the `Weapon.bullets` Group exists or not, * and if not it creates it, adding it the `group` given as the 4th argument. * * Then it will seed the bullet pool with the `quantity` number of Bullets, using the texture key and frame * provided (if any). * * If for example you set the quantity to be 10, then this Weapon will only ever be able to have 10 bullets * in-flight simultaneously. If you try to fire an 11th bullet then nothing will happen until one, or more, of * the in-flight bullets have been killed, freeing them up for use by the Weapon again. * * If you do not wish to have a limit set, then pass in -1 as the quantity. In this instance the Weapon will * keep increasing the size of the bullet pool as needed. It will never reduce the size of the pool however, * so be careful it doesn't grow too large. * * You can either set the texture key and frame here, or via the `Weapon.bulletKey` and `Weapon.bulletFrame` * properties. You can also animate bullets, or set them to use random frames. All Bullets belonging to a * single Weapon instance must share the same texture key however. * * @method Phaser.Weapon#createBullets * @param {integer} [quantity=1] - The quantity of bullets to seed the Weapon with. If -1 it will set the pool to automatically expand. * @param {string} [key] - The Game.cache key of the image that this Sprite will use. * @param {integer|string} [frame] - If the Sprite image contains multiple frames you can specify which one to use here. * @param {Phaser.Group} [group] - Optional Group to add the object to. If not specified it will be added to the World group. * @return {Phaser.Weapon} This Weapon instance. */ Phaser.Weapon.prototype.createBullets = function (quantity, key, frame, group) { if (quantity === undefined) { quantity = 1; } if (group === undefined) { group = this.game.world; } if (!this.bullets) { this.bullets = this.game.add.physicsGroup(Phaser.Physics.ARCADE, group); this.bullets.classType = this._bulletClass; } if (quantity !== 0) { if (quantity === -1) { this.autoExpandBulletsGroup = true; quantity = 1; } this.bullets.createMultiple(quantity, key, frame); this.bullets.setAll('data.bulletManager', this); this.bulletKey = key; this.bulletFrame = frame; } return this; }; /** * Call a function on each in-flight bullet in this Weapon. * * See {@link Phaser.Group#forEachExists forEachExists} for more details. * * @method Phaser.Weapon#forEach * @param {function} callback - The function that will be called for each applicable child. The child will be passed as the first argument. * @param {object} callbackContext - The context in which the function should be called (usually 'this'). * @param {...any} [args=(none)] - Additional arguments to pass to the callback function, after the child item. * @return {Phaser.Weapon} This Weapon instance. */ Phaser.Weapon.prototype.forEach = function (callback, callbackContext) { this.bullets.forEachExists(callback, callbackContext, arguments); return this; }; /** * Sets `Body.enable` to `false` on each bullet in this Weapon. * This has the effect of stopping them in-flight should they be moving. * It also stops them being able to be checked for collision. * * @method Phaser.Weapon#pauseAll * @return {Phaser.Weapon} This Weapon instance. */ Phaser.Weapon.prototype.pauseAll = function () { this.bullets.setAll('body.enable', false); return this; }; /** * Sets `Body.enable` to `true` on each bullet in this Weapon. * This has the effect of resuming their motion should they be in-flight. * It also enables them for collision checks again. * * @method Phaser.Weapon#resumeAll * @return {Phaser.Weapon} This Weapon instance. */ Phaser.Weapon.prototype.resumeAll = function () { this.bullets.setAll('body.enable', true); return this; }; /** * Calls `Bullet.kill` on every in-flight bullet in this Weapon. * Also re-enables their physics bodies, should they have been disabled via `pauseAll`. * * @method Phaser.Weapon#killAll * @return {Phaser.Weapon} This Weapon instance. */ Phaser.Weapon.prototype.killAll = function () { this.bullets.callAllExists('kill', true); this.bullets.setAll('body.enable', true); return this; }; /** * Resets the `Weapon.shots` counter back to zero. This is used when you've set * `Weapon.fireLimit`, and have hit (or just wish to reset) your limit. * * @method Phaser.Weapon#resetShots * @param {integer} [newLimit] - Optionally set a new `Weapon.fireLimit`. * @return {Phaser.Weapon} This Weapon instance. */ Phaser.Weapon.prototype.resetShots = function (newLimit) { this.shots = 0; if (newLimit !== undefined) { this.fireLimit = newLimit; } return this; }; /** * Destroys this Weapon. It removes itself from the PluginManager, destroys * the bullets Group, and nulls internal references. * * @method Phaser.Weapon#destroy */ Phaser.Weapon.prototype.destroy = function () { this.parent.remove(this, false); this.bullets.destroy(); this.game = null; this.parent = null; this.active = false; this.visible = false; }; /** * Internal update method, called by the PluginManager. * * @method Phaser.Weapon#update * @protected */ Phaser.Weapon.prototype.update = function () { if (this._bulletKillType === Phaser.Weapon.KILL_WEAPON_BOUNDS) { if (this.trackedSprite) { this.trackedSprite.updateTransform(); this.bounds.centerOn(this.trackedSprite.worldPosition.x, this.trackedSprite.worldPosition.y); } else if (this.trackedPointer) { this.bounds.centerOn(this.trackedPointer.worldX, this.trackedPointer.worldY); } } if (this.autofire &amp;&amp; this.game.time.now &lt; this._nextFire) { this.fire(); } }; /** * Sets this Weapon to track the given Sprite, or any Object with a public `world` Point object. * When a Weapon tracks a Sprite it will automatically update its `fireFrom` value to match the Sprites * position within the Game World, adjusting the coordinates based on the offset arguments. * * This allows you to lock a Weapon to a Sprite, so that bullets are always launched from its location. * * Calling `trackSprite` will reset `Weapon.trackedPointer` to null, should it have been set, as you can * only track _either_ a Sprite, or a Pointer, at once, but not both. * * @method Phaser.Weapon#trackSprite * @param {Phaser.Sprite|Object} sprite - The Sprite to track the position of. * @param {integer} [offsetX=0] - The horizontal offset from the Sprites position to be applied to the Weapon. * @param {integer} [offsetY=0] - The vertical offset from the Sprites position to be applied to the Weapon. * @param {boolean} [trackRotation=false] - Should the Weapon also track the Sprites rotation? * @return {Phaser.Weapon} This Weapon instance. */ Phaser.Weapon.prototype.trackSprite = function (sprite, offsetX, offsetY, trackRotation) { if (offsetX === undefined) { offsetX = 0; } if (offsetY === undefined) { offsetY = 0; } if (trackRotation === undefined) { trackRotation = false; } this.trackedPointer = null; this.trackedSprite = sprite; this.trackRotation = trackRotation; this.trackOffset.set(offsetX, offsetY); return this; }; /** * Sets this Weapon to track the given Pointer. * When a Weapon tracks a Pointer it will automatically update its `fireFrom` value to match the Pointers * position within the Game World, adjusting the coordinates based on the offset arguments. * * This allows you to lock a Weapon to a Pointer, so that bullets are always launched from its location. * * Calling `trackPointer` will reset `Weapon.trackedSprite` to null, should it have been set, as you can * only track _either_ a Pointer, or a Sprite, at once, but not both. * * @method Phaser.Weapon#trackPointer * @param {Phaser.Pointer} [pointer] - The Pointer to track the position of. Defaults to `Input.activePointer` if not specified. * @param {integer} [offsetX=0] - The horizontal offset from the Pointers position to be applied to the Weapon. * @param {integer} [offsetY=0] - The vertical offset from the Pointers position to be applied to the Weapon. * @return {Phaser.Weapon} This Weapon instance. */ Phaser.Weapon.prototype.trackPointer = function (pointer, offsetX, offsetY) { if (pointer === undefined) { pointer = this.game.input.activePointer; } if (offsetX === undefined) { offsetX = 0; } if (offsetY === undefined) { offsetY = 0; } this.trackedPointer = pointer; this.trackedSprite = null; this.trackRotation = false; this.trackOffset.set(offsetX, offsetY); return this; }; /** * Attempts to fire a single Bullet. If there are no more bullets available in the pool, and the pool cannot be extended, * then this method returns `false`. It will also return false if not enough time has expired since the last time * the Weapon was fired, as defined in the `Weapon.fireRate` property. * * Otherwise the first available bullet is selected and launched. * * The arguments are all optional, but allow you to control both where the bullet is launched from, and aimed at. * * If you don't provide any of the arguments then it uses those set via properties such as `Weapon.trackedSprite`, * `Weapon.bulletAngle` and so on. * * When the bullet is launched it has its texture and frame updated, as required. The velocity of the bullet is * calculated based on Weapon properties like `bulletSpeed`. * * @method Phaser.Weapon#fire * @param {Phaser.Sprite|Phaser.Point|Object} [from] - Optionally fires the bullet **from** the `x` and `y` properties of this object. If set this overrides `Weapon.trackedSprite` or `trackedPointer`. Pass `null` to ignore it. * @param {number} [x] - The x coordinate, in world space, to fire the bullet **towards**. If left as `undefined` the bullet direction is based on its angle. * @param {number} [y] - The y coordinate, in world space, to fire the bullet **towards**. If left as `undefined` the bullet direction is based on its angle. * @return {boolean} True if a bullet was successfully fired, otherwise false. */ Phaser.Weapon.prototype.fire = function (from, x, y) { if (this.game.time.now &lt; this._nextFire || (this.fireLimit > 0 &amp;&amp; this.shots === this.fireLimit)) { return false; } var speed = this.bulletSpeed; // Apply +- speed variance if (this.bulletSpeedVariance !== 0) { speed += Phaser.Math.between(-this.bulletSpeedVariance, this.bulletSpeedVariance); } if (from) { if (this.fireFrom.width > 1) { this.fireFrom.centerOn(from.x, from.y); } else { this.fireFrom.x = from.x; this.fireFrom.y = from.y; } } else if (this.trackedSprite) { if (this.fireFrom.width > 1) { this.fireFrom.centerOn(this.trackedSprite.world.x + this.trackOffset.x, this.trackedSprite.world.y + this.trackOffset.y); } else { this.fireFrom.x = this.trackedSprite.world.x + this.trackOffset.x; this.fireFrom.y = this.trackedSprite.world.y + this.trackOffset.y; } if (this.bulletInheritSpriteSpeed) { speed += this.trackedSprite.body.speed; } } else if (this.trackedPointer) { if (this.fireFrom.width > 1) { this.fireFrom.centerOn(this.trackedPointer.world.x + this.trackOffset.x, this.trackedPointer.world.y + this.trackOffset.y); } else { this.fireFrom.x = this.trackedPointer.world.x + this.trackOffset.x; this.fireFrom.y = this.trackedPointer.world.y + this.trackOffset.y; } } var fromX = (this.fireFrom.width > 1) ? this.fireFrom.randomX : this.fireFrom.x; var fromY = (this.fireFrom.height > 1) ? this.fireFrom.randomY : this.fireFrom.y; var angle = (this.trackRotation) ? this.trackedSprite.angle : this.fireAngle; // The position (in world space) to fire the bullet towards, if set if (x !== undefined &amp;&amp; y !== undefined) { angle = this.game.math.radToDeg(Math.atan2(y - fromY, x - fromX)); } // Apply +- angle variance if (this.bulletAngleVariance !== 0) { angle += Phaser.Math.between(-this.bulletAngleVariance, this.bulletAngleVariance); } var moveX = 0; var moveY = 0; // Avoid sin/cos for right-angled shots if (angle === 0 || angle === 180) { moveX = Math.cos(this.game.math.degToRad(angle)) * speed; } else if (angle === 90 || angle === 270) { moveY = Math.sin(this.game.math.degToRad(angle)) * speed; } else { moveX = Math.cos(this.game.math.degToRad(angle)) * speed; moveY = Math.sin(this.game.math.degToRad(angle)) * speed; } var bullet = null; if (this.autoExpandBulletsGroup) { bullet = this.bullets.getFirstExists(false, true, fromX, fromY, this.bulletKey, this.bulletFrame); bullet.data.bulletManager = this; } else { bullet = this.bullets.getFirstExists(false); } if (bullet) { bullet.reset(fromX, fromY); bullet.data.fromX = fromX; bullet.data.fromY = fromY; bullet.data.killType = this.bulletKillType; bullet.data.killDistance = this.bulletKillDistance; bullet.data.rotateToVelocity = this.bulletRotateToVelocity; if (this.bulletKillType === Phaser.Weapon.KILL_LIFESPAN) { bullet.lifespan = this.bulletLifespan; } bullet.angle = angle + this.bulletAngleOffset; // Frames and Animations if (this.bulletAnimation !== '') { if (bullet.animations.getAnimation(this.bulletAnimation) === null) { var anim = this.anims[this.bulletAnimation]; bullet.animations.add(anim.name, anim.frames, anim.frameRate, anim.loop, anim.useNumericIndex); } bullet.animations.play(this.bulletAnimation); } else { if (this.bulletFrameCycle) { bullet.frame = this.bulletFrames[this.bulletFrameIndex]; this.bulletFrameIndex++; if (this.bulletFrameIndex >= this.bulletFrames.length) { this.bulletFrameIndex = 0; } } else if (this.bulletFrameRandom) { bullet.frame = this.bulletFrames[Math.floor(Math.random() * this.bulletFrames.length)]; } } if (bullet.data.bodyDirty) { if (this._data.customBody) { bullet.body.setSize(this._data.width, this._data.height, this._data.offsetX, this._data.offsetY); } bullet.body.collideWorldBounds = this.bulletCollideWorldBounds; bullet.data.bodyDirty = false; } bullet.body.velocity.set(moveX, moveY); bullet.body.gravity.set(this.bulletGravity.x, this.bulletGravity.y); this._nextFire = this.game.time.now + this.fireRate; this.shots++; this.onFire.dispatch(bullet, this, speed); if (this.fireLimit > 0 &amp;&amp; this.shots === this.fireLimit) { this.onFireLimit.dispatch(this, this.fireLimit); } } }; /** * Fires a bullet **at** the given Pointer. The bullet will be launched from the `Weapon.fireFrom` position, * or from a Tracked Sprite or Pointer, if you have one set. * * @method Phaser.Weapon#fireAtPointer * @param {Phaser.Pointer} [pointer] - The Pointer to fire the bullet towards. * @return {boolean} True if a bullet was successfully fired, otherwise false. */ Phaser.Weapon.prototype.fireAtPointer = function (pointer) { if (pointer === undefined) { pointer = this.game.input.activePointer; } return this.fire(null, pointer.worldX, pointer.worldY); }; /** * Fires a bullet **at** the given Sprite. The bullet will be launched from the `Weapon.fireFrom` position, * or from a Tracked Sprite or Pointer, if you have one set. * * @method Phaser.Weapon#fireAtSprite * @param {Phaser.Sprite} [sprite] - The Sprite to fire the bullet towards. * @return {boolean} True if a bullet was successfully fired, otherwise false. */ Phaser.Weapon.prototype.fireAtSprite = function (sprite) { return this.fire(null, sprite.world.x, sprite.world.y); }; /** * Fires a bullet **at** the given coordinates. The bullet will be launched from the `Weapon.fireFrom` position, * or from a Tracked Sprite or Pointer, if you have one set. * * @method Phaser.Weapon#fireAtXY * @param {number} [x] - The x coordinate, in world space, to fire the bullet towards. * @param {number} [y] - The y coordinate, in world space, to fire the bullet towards. * @return {boolean} True if a bullet was successfully fired, otherwise false. */ Phaser.Weapon.prototype.fireAtXY = function (x, y) { return this.fire(null, x, y); }; /** * You can modify the size of the physics Body the Bullets use to be any dimension you need. * This allows you to make it smaller, or larger, than the parent Sprite. * You can also control the x and y offset of the Body. This is the position of the * Body relative to the top-left of the Sprite _texture_. * * For example: If you have a Sprite with a texture that is 80x100 in size, * and you want the physics body to be 32x32 pixels in the middle of the texture, you would do: * * `setSize(32, 32, 24, 34)` * * Where the first two parameters is the new Body size (32x32 pixels). * 24 is the horizontal offset of the Body from the top-left of the Sprites texture, and 34 * is the vertical offset. * * @method Phaser.Weapon#setBulletBodyOffset * @param {number} width - The width of the Body. * @param {number} height - The height of the Body. * @param {number} [offsetX] - The X offset of the Body from the top-left of the Sprites texture. * @param {number} [offsetY] - The Y offset of the Body from the top-left of the Sprites texture. * @return {Phaser.Weapon} The Weapon Plugin. */ Phaser.Weapon.prototype.setBulletBodyOffset = function (width, height, offsetX, offsetY) { if (offsetX === undefined) { offsetX = 0; } if (offsetY === undefined) { offsetY = 0; } this._data.customBody = true; this._data.width = width; this._data.height = height; this._data.offsetX = offsetX; this._data.offsetY = offsetY; // Update all bullets in the pool this.bullets.callAll('body.setSize', 'body', width, height, offsetX, offsetY); this.bullets.setAll('data.bodyDirty', false); return this; }; /** * Sets the texture frames that the bullets can use when being launched. * * This is intended for use when you've got numeric based frames, such as those loaded via a Sprite Sheet. * * It works by calling `Phaser.ArrayUtils.numberArray` internally, using the min and max values * provided. Then it sets the frame index to be zero. * * You can optionally set the cycle and random booleans, to allow bullets to cycle through the frames * when they're fired, or pick one at random. * * @method Phaser.Weapon#setBulletFrames * @param {integer} min - The minimum value the frame can be. Usually zero. * @param {integer} max - The maximum value the frame can be. * @param {boolean} [cycle=true] - Should the bullet frames cycle as they are fired? * @param {boolean} [random=false] - Should the bullet frames be picked at random as they are fired? * @return {Phaser.Weapon} The Weapon Plugin. */ Phaser.Weapon.prototype.setBulletFrames = function (min, max, cycle, random) { if (cycle === undefined) { cycle = true; } if (random === undefined) { random = false; } this.bulletFrames = Phaser.ArrayUtils.numberArray(min, max); this.bulletFrameIndex = 0; this.bulletFrameCycle = cycle; this.bulletFrameRandom = random; return this; }; /** * Adds a new animation under the given key. Optionally set the frames, frame rate and loop. * The arguments are all the same as for `Animation.add`, and work in the same way. * * `Weapon.bulletAnimation` will be set to this animation after it's created. From that point on, all * bullets fired will play using this animation. You can swap between animations by calling this method * several times, and then just changing the `Weapon.bulletAnimation` property to the name of the animation * you wish to play for the next launched bullet. * * If you wish to stop using animations at all, set `Weapon.bulletAnimation` to '' (an empty string). * * @method Phaser.Weapon#addBulletAnimation * @param {string} name - The unique (within the Weapon instance) name for the animation, i.e. "fire", "blast". * @param {Array} [frames=null] - An array of numbers/strings that correspond to the frames to add to this animation and in which order. e.g. [1, 2, 3] or ['run0', 'run1', run2]). If null then all frames will be used. * @param {number} [frameRate=60] - The speed at which the animation should play. The speed is given in frames per second. * @param {boolean} [loop=false] - Whether or not the animation is looped or just plays once. * @param {boolean} [useNumericIndex=true] - Are the given frames using numeric indexes (default) or strings? * @return {Phaser.Weapon} The Weapon Plugin. */ Phaser.Weapon.prototype.addBulletAnimation = function (name, frames, frameRate, loop, useNumericIndex) { this.anims[name] = { name: name, frames: frames, frameRate: frameRate, loop: loop, useNumericIndex: useNumericIndex }; // Add the animation to any existing bullets in the pool this.bullets.callAll('animations.add', 'animations', name, frames, frameRate, loop, useNumericIndex); this.bulletAnimation = name; return this; }; /** * Uses `Game.Debug` to draw some useful information about this Weapon, including the number of bullets * both in-flight, and available. And optionally the physics debug bodies of the bullets. * * @method Phaser.Weapon#debug * @param {integer} [x=16] - The coordinate, in screen space, at which to draw the Weapon debug data. * @param {integer} [y=32] - The coordinate, in screen space, at which to draw the Weapon debug data. * @param {boolean} [debugBodies=false] - Optionally draw the physics body of every bullet in-flight. */ Phaser.Weapon.prototype.debug = function (x, y, debugBodies) { if (x === undefined) { x = 16; } if (y === undefined) { y = 32; } if (debugBodies === undefined) { debugBodies = false; } this.game.debug.text("Weapon Plugin", x, y); this.game.debug.text("Bullets Alive: " + this.bullets.total + " - Total: " + this.bullets.length, x, y + 24); if (debugBodies) { this.bullets.forEachExists(this.game.debug.body, this.game.debug, 'rgba(255, 0, 255, 0.8)'); } }; /** * The Class of the bullets that are launched by this Weapon. Defaults `Phaser.Bullet`, but can be * overridden before calling `createBullets` and set to your own class type. * * @name Phaser.Weapon#bulletClass * @property {Object} bulletClass */ Object.defineProperty(Phaser.Weapon.prototype, "bulletClass", { get: function () { return this._bulletClass; }, set: function (classType) { this._bulletClass = classType; this.bullets.classType = this._bulletClass; } }); /** * This controls how the bullets will be killed. The default is `Phaser.Weapon.KILL_WORLD_BOUNDS`. * * There are 7 different "kill types" available: * * * `Phaser.Weapon.KILL_NEVER` * The bullets are never destroyed by the Weapon. It's up to you to destroy them via your own code. * * * `Phaser.Weapon.KILL_LIFESPAN` * The bullets are automatically killed when their `bulletLifespan` amount expires. * * * `Phaser.Weapon.KILL_DISTANCE` * The bullets are automatically killed when they exceed `bulletDistance` pixels away from their original launch position. * * * `Phaser.Weapon.KILL_WEAPON_BOUNDS` * The bullets are automatically killed when they no longer intersect with the `Weapon.bounds` rectangle. * * * `Phaser.Weapon.KILL_CAMERA_BOUNDS` * The bullets are automatically killed when they no longer intersect with the `Camera.bounds` rectangle. * * * `Phaser.Weapon.KILL_WORLD_BOUNDS` * The bullets are automatically killed when they no longer intersect with the `World.bounds` rectangle. * * * `Phaser.Weapon.KILL_STATIC_BOUNDS` * The bullets are automatically killed when they no longer intersect with the `Weapon.bounds` rectangle. * The difference between static bounds and weapon bounds, is that a static bounds will never be adjusted to * match the position of a tracked sprite or pointer. * * @name Phaser.Weapon#bulletKillType * @property {integer} bulletKillType */ Object.defineProperty(Phaser.Weapon.prototype, "bulletKillType", { get: function () { return this._bulletKillType; }, set: function (type) { switch (type) { case Phaser.Weapon.KILL_STATIC_BOUNDS: case Phaser.Weapon.KILL_WEAPON_BOUNDS: this.bulletBounds = this.bounds; break; case Phaser.Weapon.KILL_CAMERA_BOUNDS: this.bulletBounds = this.game.camera.view; break; case Phaser.Weapon.KILL_WORLD_BOUNDS: this.bulletBounds = this.game.world.bounds; break; } this._bulletKillType = type; } }); /** * Should bullets collide with the World bounds or not? * * @name Phaser.Weapon#bulletCollideWorldBounds * @property {boolean} bulletCollideWorldBounds */ Object.defineProperty(Phaser.Weapon.prototype, "bulletCollideWorldBounds", { get: function () { return this._bulletCollideWorldBounds; }, set: function (value) { this._bulletCollideWorldBounds = value; this.bullets.setAll('body.collideWorldBounds', value); this.bullets.setAll('data.bodyDirty', false); } }); /** * The x coordinate from which bullets are fired. This is the same as `Weapon.fireFrom.x`, and * can be overridden by the `Weapon.fire` arguments. * * @name Phaser.Weapon#x * @property {number} x */ Object.defineProperty(Phaser.Weapon.prototype, "x", { get: function () { return this.fireFrom.x; }, set: function (value) { this.fireFrom.x = value; } }); /** * The y coordinate from which bullets are fired. This is the same as `Weapon.fireFrom.y`, and * can be overridden by the `Weapon.fire` arguments. * * @name Phaser.Weapon#y * @property {number} y */ Object.defineProperty(Phaser.Weapon.prototype, "y", { get: function () { return this.fireFrom.y; }, set: function (value) { this.fireFrom.y = value; } }); </pre> </article> </section> </div> <div class="clearfix"></div> <footer> <span class="copyright"> Phaser Copyright © 2012-2016 Photon Storm Ltd. </span> <br /> <span class="jsdoc-message"> Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.3</a> on Mon Jul 11 2016 10:10:44 GMT+0100 (GMT Daylight Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>. </span> </footer> </div> <br clear="both"> </div> </div> <script src="scripts/sunlight.js"></script> <script src="scripts/sunlight.javascript.js"></script> <script src="scripts/sunlight-plugin.doclinks.js"></script> <script src="scripts/sunlight-plugin.linenumbers.js"></script> <script src="scripts/sunlight-plugin.menu.js"></script> <script src="scripts/jquery.min.js"></script> <script src="scripts/jquery.scrollTo.js"></script> <script src="scripts/jquery.localScroll.js"></script> <script src="scripts/bootstrap-dropdown.js"></script> <script src="scripts/toc.js"></script> <script> Sunlight.highlightAll({lineNumbers:true, showMenu: true, enableDoclinks :true}); </script> <script> $( function () { $( "#toc" ).toc( { anchorName : function(i, heading, prefix) { return $(heading).attr("id") || ( prefix + i ); }, selectors : "h1,h2,h3,h4", showAndHide : false, scrollTo : 60 } ); $( "#toc>ul" ).addClass( "nav nav-pills nav-stacked" ); $( "#main span[id^='toc']" ).addClass( "toc-shim" ); } ); </script> </body> </html>
fmflame/phaser
docs/src_plugins_weapon_WeaponPlugin.js.html
HTML
mit
79,483
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Jasmine Spec Runner</title> <link rel="shortcut icon" type="image/png" href="lib/jasmine-1.3.1/jasmine_favicon.png"> <link rel="stylesheet" type="text/css" href="lib/jasmine-1.3.1/jasmine.css"> <script type="text/javascript" src="lib/jasmine-1.3.1/jasmine.js"></script> <script type="text/javascript" src="lib/jasmine-1.3.1/jasmine-html.js"></script> <!-- include source files here... --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js"></script> <script src="https://cdn.firebase.com/js/client/1.1.0/firebase.js"></script> <script src="https://cdn-staging.firebase.com/v0/firebase-token-generator.js"></script> <script src="../www/js/firefeed.js"></script> <!-- include spec files here... --> <script type="text/javascript" src="spec/helper.js"></script> <script type="text/javascript" src="spec/initialization.js"></script> <script type="text/javascript" src="spec/operations.js"></script> <script type="text/javascript" src="spec/events.js"></script> <script type="text/javascript"> (function() { var jasmineEnv = jasmine.getEnv(); jasmineEnv.updateInterval = 1000; var htmlReporter = new jasmine.HtmlReporter(); jasmineEnv.addReporter(htmlReporter); jasmineEnv.specFilter = function(spec) { return htmlReporter.specFilter(spec); }; var currentWindowOnload = window.onload; window.onload = function() { if (currentWindowOnload) { currentWindowOnload(); } execJasmine(); }; function execJasmine() { jasmineEnv.execute(); } })(); </script> </head> <body> </body> </html>
h3xagram/h3xagram.github.io
test/index.html
HTML
mit
1,895
<h2>設定</h2> <p>このページでは、管理者が基本的な設定を実行することができます。 実際、このページでは、多くの管理者が必要とする最小設定のみ表示しています。 あなたが他の多くの (そして高度な) 設定を閲覧したい場合、<span class="filename">include/config_default.inc.php</span>ファイルを参照してください。</p> <p>このページは、テーマにより設定パラメータを再編成するため、いくつかのセクションに分けられています。</p> <h3>メイン</h3> <ul> <li><strong>ギャラリータイトル</strong>: RSSフィードおよびメール通知に使用されます。</li> <li><strong>ページバナー</strong>: それぞれのページのトップに表示されます。</li> <li><strong>ギャラリーURI</strong>: RSSフィードに使用されます。</li> <li><strong>ギャラリーをロックする</strong>: メンテナンスのため、ギャラリー全体をロックします。 管理者のみギャラリーにアクセスすることができます。</li> <li><strong>評価</strong>: 写真の評価機能を有効にします。</li> <li><strong>ゲストによる評価</strong>: 未登録のユーザでも写真を評価できます。</li> <li><strong>ユーザ登録を許可する</strong>: すべての人が自由にユーザ登録できます。</li> <li><strong>すべてのユーザにメールアドレスを必須とする</strong>: 管理者による処理を除き、ユーザ登録およびプロファイル更新時にメールアドレスがチェックされます。</li> <li><strong>新しいユーザ登録時、管理者にメールする</strong>: すべてのユーザ登録に関して、管理者がメール受信します。</li> </ul> <h3>履歴</h3> <p>ページにアクセスすることで、<span class="pwgScreen">category.php</span>および<span class="pwgScreen">picture.php</span>が<code>history</code>テーブルに記録されます。</p> <p>アクセスは、「<span class="pwgScreen">管理 > 特別 > 履歴</span>」に表示されます。</p> <ul> <li><strong>ゲストによるページアクセスを記録する</strong>: ゲストによるページアクセスが記録されます。</li> <li><strong>ユーザによるページアクセスを記録する</strong>: ユーザによるページアクセスが記録されます。</li> <li><strong>管理者によるページアクセスを記録する</strong>: 管理者によるページアクセスが記録されます。</li> </ul> <h3>コメント</h3> <ul> <li><strong>すべてのユーザにコメントを許可する</strong>: ユーザ登録されていないゲストでもコメントを投稿することができます。</li> <li><strong>1ページあたりのコメント数</strong>.</li> <li><strong>承認</strong>: サイトで閲覧可能な状態になる前に、管理者がユーザによるコメントを承認します。 ユーザコメントの承認は、「<span class="pwgScreen">管理 > 写真 > コメント</span>」にて実施されます。</li> <li><strong>有効なコメントが投稿された場合、管理者にメールする</strong>: ユーザがコメントを登録して、コメントが承認された場合、管理者にメール送信します。</li> <li><strong>コメントの承認が必要な場合、管理者にメールする</strong>: 管理者による承認が必要なコメントをユーザが投稿した場合、管理者にメール送信します。 ユーザコメントの承認は、「<span class="pwgScreen">管理 > 写真 > コメント</span>」にて実施されます。</li> </ul> <!--TODO --><h3>アップロード</h3> <ul> <!--TODO --> <li><strong>毎回アップロードリンクを表示する</strong>: アップロード可能なアルバムが存在する場合、それぞれのアルバムに追加リンクが表示されます。</li> <!--TODO --> <li><strong>アップロードに関するユーザアクセスレベル</strong>: ユーザによるアップロードの制限を許可します。</li> <li><strong>写真がアップロードされた場合、管理者にメールする</strong>: ユーザにより写真がアップロードされた場合、管理者にメール通知します。</li> </ul> <h3>デフォルト表示</h3> <p>ここであなたは、ログインしていないユーザに対する、デフォルト表示オプションを変更することができます。 ユーザがログインした場合、これらのオプションは、ユーザ独自のオプション (<span class="pwgScreen">プロファイル</span>で変更可) により上書きされます。</p> <p>すべてのユーザは、表示オプションを変更することができますが、あなたは「<span class="pwgScreen">管理 > アイデンティフィケーション > ユーザ</span>」にて、 選択したユーザの表示オプションを変更することもできます。</p> <ul> <li><strong>言語</strong>: Piwigoラベルのみに関係します。アルバム名、写真名およびすべての説明はローカライズされません。</li> <li><strong>1行あたりのイメージ数</strong></li> <li><strong>1ページあたりの行数</strong></li> <li><strong>インターフェーステーマ</strong></li> <li><strong>最近の期間</strong>: 日数。写真が新しい写真として表示される期間です。1日より多い日数を指定してください。</li> <li><strong>すべてのアルバムを拡げる</strong>: デフォルトで、すべてのアルバムをメニューに広げますか? <em>警告</em>: このオプションは、多くのりソースを消費して、あなたのアルバムツリーが多くのアルバムを含む場合、巨大なメニューを作成してしまいます。</li> <li><strong>コメント数を表示する</strong>: サムネイルページで、それぞれの写真のコメント数を表示します。多くのリソースを消費します。</li> <li><strong>ヒット数を表示する</strong>: サムネイルページで、写真のヒット数をサムネイル下に表示します。 特別設定パラメータが次の場合のみ表示されます: <br /> $conf['show_nb_hits'] = true; <br /> 注意: デフォルトでは、falseが設定されています。</li> <li><strong>写真の最大幅</strong>: 写真の最大表示幅です。この設定より写真が大きい場合、表示時にリサイズされます。 この設定に値を入力したい場合、あなたの写真の幅に変更することをお勧めします。</li> <li><strong>写真の最大高</strong>: 前の設定と同じです。</li> </ul>
ale252/theatre
web/piwigo/language/ja_JP/help/configuration.html
HTML
mit
6,959
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.4.2_11) on Mon Jul 12 21:36:30 CEST 2010 --> <TITLE> Uses of Class org.apache.fop.pdf.PDFTTFStream (Apache FOP 1.0 API) </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { parent.document.title="Uses of Class org.apache.fop.pdf.PDFTTFStream (Apache FOP 1.0 API)"; } </SCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../org/apache/fop/pdf/PDFTTFStream.html" title="class in org.apache.fop.pdf"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> fop 1.0</EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;PREV&nbsp; &nbsp;NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="PDFTTFStream.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <CENTER> <H2> <B>Uses of Class<br>org.apache.fop.pdf.PDFTTFStream</B></H2> </CENTER> No usage of org.apache.fop.pdf.PDFTTFStream <P> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../org/apache/fop/pdf/PDFTTFStream.html" title="class in org.apache.fop.pdf"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> fop 1.0</EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;PREV&nbsp; &nbsp;NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="PDFTTFStream.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved. </BODY> </HTML>
lewismc/yax
lib/fop-1.0/javadocs/org/apache/fop/pdf/class-use/PDFTTFStream.html
HTML
apache-2.0
5,730
<!DOCTYPE html> <html> <head> <title>sidebar-v2 example</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> <link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet"> <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.css" /> <!--[if lte IE 8]><link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.ie.css" /><![endif]--> <link rel="stylesheet" href="../css/leaflet-sidebar.css" /> <style> body { padding: 0; margin: 0; } html, body, #map { height: 100%; font: 10pt "Helvetica Neue", Arial, Helvetica, sans-serif; } .lorem { font-style: italic; color: #AAA; } </style> </head> <body> <div id="sidebar" class="sidebar collapsed"> <!-- Nav tabs --> <div class="sidebar-tabs"> <ul role="tablist"> <li><a href="#home" role="tab"><i class="fa fa-bars"></i></a></li> <li><a href="#profile" role="tab"><i class="fa fa-user"></i></a></li> <li class="disabled"><a href="#messages" role="tab"><i class="fa fa-envelope"></i></a></li> </ul> <ul role="tablist"> <li><a href="#settings" role="tab"><i class="fa fa-gear"></i></a></li> </ul> </div> <!-- Tab panes --> <div class="sidebar-content"> <div class="sidebar-pane" id="home"> <h1 class="sidebar-header"> sidebar-v2 <div class="sidebar-close"><i class="fa fa-caret-left"></i></div> </h1> <p>A responsive sidebar for mapping libraries like <a href="http://leafletjs.com/">Leaflet</a> or <a href="http://openlayers.org/">OpenLayers</a>.</p> <p class="lorem">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</p> <p class="lorem">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</p> <p class="lorem">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</p> <p class="lorem">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</p> </div> <div class="sidebar-pane" id="profile"> <h1 class="sidebar-header">Profile<div class="sidebar-close"><i class="fa fa-caret-left"></i></div></h1> </div> <div class="sidebar-pane" id="messages"> <h1 class="sidebar-header">Messages<div class="sidebar-close"><i class="fa fa-caret-left"></i></div></h1> </div> <div class="sidebar-pane" id="settings"> <h1 class="sidebar-header">Settings<div class="sidebar-close"><i class="fa fa-caret-left"></i></div></h1> </div> </div> </div> <div id="map" class="sidebar-map"></div> <a href="https://github.com/Turbo87/sidebar-v2/"><img style="position: fixed; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a> <script src="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.js"></script> <script src="../js/leaflet-sidebar.js"></script> <script> var map = L.map('map'); map.setView([51.2, 7], 9); L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { maxZoom: 18, attribution: 'Map data &copy; OpenStreetMap contributors' }).addTo(map); var marker = L.marker([51.2, 7]).addTo(map); var sidebar = L.control.sidebar('sidebar').addTo(map); </script> </body> </html>
sethmbaker/fewsn-web
wsgi/static/leaflet-sidebar-v2/examples/index.html
HTML
apache-2.0
5,925
<div data-dojo-type="dijit.layout.SplitContainer" data-dojo-props='orientation:"vertical"'> <div data-dojo-type="dijit.layout.ContentPane" data-dojo-props='title:"split #1"'> <p>Top of split container loaded via an href.</p> </div> <div data-dojo-type="dijit.layout.ContentPane" data-dojo-props='title:"split #2"'> <p>Bottom of split container loaded via an href.</p> <p> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean semper sagittis velit. Cras in mi. Duis porta mauris ut ligula. Proin porta rutrum lacus. Etiam consequat scelerisque quam. Nulla facilisi. Maecenas luctus venenatis nulla. In sit amet dui non mi semper iaculis. Sed molestie tortor at ipsum. Morbi dictum rutrum magna. Sed vitae risus. </p> <p>Aliquam vitae enim. Duis scelerisque metus auctor est venenatis imperdiet. Fusce dignissim porta augue. Nulla vestibulum. Integer lorem nunc, ullamcorper a, commodo ac, malesuada sed, dolor. Aenean id mi in massa bibendum suscipit. Integer eros. Nullam suscipit mauris. In pellentesque. Mauris ipsum est, pharetra semper, pharetra in, viverra quis, tellus. Etiam purus. Quisque egestas, tortor ac cursus lacinia, felis leo adipiscing nisi, et rhoncus elit dolor eget eros. Fusce ut quam. Suspendisse eleifend leo vitae ligula. Nulla facilisi. Nulla rutrum, erat vitae lacinia dictum, pede purus imperdiet lacus, ut semper velit ante id metus. Praesent massa dolor, porttitor sed, pulvinar in, consequat ut, leo. Nullam nec est. Aenean id risus blandit tortor pharetra congue. Suspendisse pulvinar. </p> <p>Vestibulum convallis eros ac justo. Proin dolor. Etiam aliquam. Nam ornare elit vel augue. Suspendisse potenti. Etiam sed mauris eu neque nonummy mollis. Vestibulum vel purus ac pede semper accumsan. Vivamus lobortis, sem vitae nonummy lacinia, nisl est gravida magna, non cursus est quam sed urna. Phasellus adipiscing justo in ipsum. Duis sagittis dolor sit amet magna. Suspendisse suscipit, neque eu dictum auctor, nisi augue tincidunt arcu, non lacinia magna purus nec magna. Praesent pretium sollicitudin sapien. Suspendisse imperdiet. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. </p> </div> </div>
sulistionoadi/belajar-springmvc-dojo
training-web/src/main/webapp/js/dojotoolkit/dijit/tests/layout/tab4.html
HTML
apache-2.0
2,261
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN"> <HTML> <HEAD> <META NAME="GENERATOR" CONTENT="DOCTEXT"> <TITLE>MPI_Ibsend</TITLE> </HEAD> <BODY BGCOLOR="FFFFFF"> <A NAME="MPI_Ibsend"><H1>MPI_Ibsend</H1></A> Starts a nonblocking buffered send <H2>Synopsis</H2> <PRE> int MPI_Ibsend(void *buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, MPI_Request *request) </PRE> <H2>Input Parameters</H2> <DL> <DT><B>buf </B><DD>initial address of send buffer (choice) <DT><B>count </B><DD>number of elements in send buffer (integer) <DT><B>datatype </B><DD>datatype of each send buffer element (handle) <DT><B>dest </B><DD>rank of destination (integer) <DT><B>tag </B><DD>message tag (integer) <DT><B>comm </B><DD>communicator (handle) </DL> <P> <H2>Output Parameter</H2> <DL><DT><B>request </B> <DD> communication request (handle) </DL> <P> <H2>Thread and Interrupt Safety</H2> <P> This routine is thread-safe. This means that this routine may be safely used by multiple threads without the need for any user-provided thread locks. However, the routine is not interrupt safe. Typically, this is due to the use of memory allocation routines such as <TT>malloc </TT>or other non-MPICH runtime routines that are themselves not interrupt-safe. <P> <H2>Notes for Fortran</H2> All MPI routines in Fortran (except for <TT>MPI_WTIME</TT> and <TT>MPI_WTICK</TT>) have an additional argument <TT>ierr</TT> at the end of the argument list. <TT>ierr </TT>is an integer and has the same meaning as the return value of the routine in C. In Fortran, MPI routines are subroutines, and are invoked with the <TT>call</TT> statement. <P> All MPI objects (e.g., <TT>MPI_Datatype</TT>, <TT>MPI_Comm</TT>) are of type <TT>INTEGER </TT>in Fortran. <P> <H2>Errors</H2> <P> All MPI routines (except <TT>MPI_Wtime</TT> and <TT>MPI_Wtick</TT>) return an error value; C routines as the value of the function and Fortran routines in the last argument. Before the value is returned, the current MPI error handler is called. By default, this error handler aborts the MPI job. The error handler may be changed with <TT>MPI_Comm_set_errhandler</TT> (for communicators), <TT>MPI_File_set_errhandler</TT> (for files), and <TT>MPI_Win_set_errhandler</TT> (for RMA windows). The MPI-1 routine <TT>MPI_Errhandler_set</TT> may be used but its use is deprecated. The predefined error handler <TT>MPI_ERRORS_RETURN</TT> may be used to cause error values to be returned. Note that MPI does <EM>not</EM> guarentee that an MPI program can continue past an error; however, MPI implementations will attempt to continue whenever possible. <P> <DL><DT><B>MPI_SUCCESS </B> <DD> No error; MPI routine completed successfully. </DL> <DL><DT><B>MPI_ERR_COMM </B> <DD> Invalid communicator. A common error is to use a null communicator in a call (not even allowed in <TT>MPI_Comm_rank</TT>). </DL> <DL><DT><B>MPI_ERR_COUNT </B> <DD> Invalid count argument. Count arguments must be non-negative; a count of zero is often valid. </DL> <DL><DT><B>MPI_ERR_TYPE </B> <DD> Invalid datatype argument. May be an uncommitted MPI_Datatype (see <TT>MPI_Type_commit</TT>). </DL> <DL><DT><B>MPI_ERR_TAG </B> <DD> Invalid tag argument. Tags must be non-negative; tags in a receive (<TT>MPI_Recv</TT>, <TT>MPI_Irecv</TT>, <TT>MPI_Sendrecv</TT>, etc.) may also be <TT>MPI_ANY_TAG</TT>. The largest tag value is available through the the attribute <TT>MPI_TAG_UB</TT>. </DL> <DL><DT><B>MPI_ERR_RANK </B> <DD> Invalid source or destination rank. Ranks must be between zero and the size of the communicator minus one; ranks in a receive (<TT>MPI_Recv</TT>, <TT>MPI_Irecv</TT>, <TT>MPI_Sendrecv</TT>, etc.) may also be <TT>MPI_ANY_SOURCE</TT>. </DL> <DL><DT><B>MPI_ERR_BUFFER </B> <DD> Invalid buffer pointer. Usually a null buffer where one is not valid. </DL> <P> <P><B>Location:</B>ibsend.c<P> </BODY></HTML>
hydrosolutions/model_RRMDA_Themi
java/resources/linux64_gnu/share/doc/www3/MPI_Ibsend.html
HTML
bsd-2-clause
3,899
<!DOCTYPE html> <!-- Copyright (c) 2013 The Chromium Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. --> <link rel="import" href="/tracing/core/test_utils.html"> <link rel="import" href="/tracing/extras/importer/linux_perf/ftrace_importer.html"> <script> 'use strict'; tr.b.unittest.testSuite(function() { test('drmImport', function() { const lines = [ ' chrome-2465 [000] 71.653157: drm_vblank_event: crtc=0, seq=4233', ' <idle>-0 [000] 71.669851: drm_vblank_event: crtc=0, seq=4234' ]; const m = tr.c.TestUtils.newModelWithEvents([lines.join('\n')], { shiftWorldToZero: false }); assert.isFalse(m.hasImportWarnings); const threads = m.getAllThreads(); assert.strictEqual(threads.length, 1); const vblankThread = threads[0]; assert.strictEqual(vblankThread.name, 'drm_vblank'); assert.strictEqual(vblankThread.sliceGroup.length, 2); }); }); </script>
catapult-project/catapult-csm
tracing/tracing/extras/importer/linux_perf/drm_parser_test.html
HTML
bsd-3-clause
1,011
<?xml version="1.0" encoding="ascii"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>killerbee.openear.gps.gps'</title> <link rel="stylesheet" href="epydoc.css" type="text/css" /> <script type="text/javascript" src="epydoc.js"></script> </head> <body bgcolor="white" text="black" link="blue" vlink="#204080" alink="#204080"> <!-- ==================== NAVIGATION BAR ==================== --> <table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0"> <tr valign="middle"> <!-- Home link --> <th>&nbsp;&nbsp;&nbsp;<a href="killerbee-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th> <!-- Tree link --> <th>&nbsp;&nbsp;&nbsp;<a href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th> <!-- Index link --> <th>&nbsp;&nbsp;&nbsp;<a href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th> <!-- Help link --> <th>&nbsp;&nbsp;&nbsp;<a href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th> <!-- Project homepage --> <th class="navbar" align="right" width="100%"> <table border="0" cellpadding="0" cellspacing="0"> <tr><th class="navbar" align="center" ><a class="navbar" target="_top" href="http://code.google.com/p/killerbee/">KillerBee</a></th> </tr></table></th> </tr> </table> <table width="100%" cellpadding="0" cellspacing="0"> <tr valign="top"> <td width="100%"> <span class="breadcrumbs"> <a href="killerbee-module.html">Package&nbsp;killerbee</a> :: <a href="killerbee.openear-module.html">Package&nbsp;openear</a> :: <a href="killerbee.openear.gps-module.html">Package&nbsp;gps</a> :: Module&nbsp;gps' </span> </td> <td> <table cellpadding="0" cellspacing="0"> <!-- hide/show private --> <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink" onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr> <tr><td align="right"><span class="options" >[<a href="frames.html" target="_top">frames</a >]&nbsp;|&nbsp;<a href="killerbee.openear.gps.gps%27-module.html" target="_top">no&nbsp;frames</a>]</span></td></tr> </table> </td> </tr> </table> <!-- ==================== MODULE DESCRIPTION ==================== --> <h1 class="epydoc">Module gps'</h1><p class="nomargin-top"><span class="codelink"><a href="killerbee.openear.gps.gps%27-pysrc.html">source&nbsp;code</a></span></p> <!-- ==================== CLASSES ==================== --> <a name="section-Classes"></a> <table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white"> <tr bgcolor="#70b0f0" class="table-header"> <td colspan="2" class="table-header"> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr valign="top"> <td align="left"><span class="table-header">Classes</span></td> <td align="right" valign="top" ><span class="options">[<a href="#section-Classes" class="privatelink" onclick="toggle_private();" >hide private</a>]</span></td> </tr> </table> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a href="killerbee.openear.gps.gps%27.gps-class.html" class="summary-name">gps</a><br /> Client interface to a running gpsd instance. </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a href="killerbee.openear.gps.gps%27.gpsdata-class.html" class="summary-name">gpsdata</a><br /> Position, track, velocity and status information returned by a GPS. </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a href="killerbee.openear.gps.gps%27.gpsfix-class.html" class="summary-name">gpsfix</a> </td> </tr> </table> <!-- ==================== FUNCTIONS ==================== --> <a name="section-Functions"></a> <table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white"> <tr bgcolor="#70b0f0" class="table-header"> <td colspan="2" class="table-header"> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr valign="top"> <td align="left"><span class="table-header">Functions</span></td> <td align="right" valign="top" ><span class="options">[<a href="#section-Functions" class="privatelink" onclick="toggle_private();" >hide private</a>]</span></td> </tr> </table> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td><span class="summary-sig"><a name="isnan"></a><span class="summary-sig-name">isnan</span>(<span class="summary-sig-arg">x</span>)</span></td> <td align="right" valign="top"> <span class="codelink"><a href="killerbee.openear.gps.gps%27-pysrc.html#isnan">source&nbsp;code</a></span> </td> </tr> </table> </td> </tr> </table> <!-- ==================== VARIABLES ==================== --> <a name="section-Variables"></a> <table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white"> <tr bgcolor="#70b0f0" class="table-header"> <td colspan="2" class="table-header"> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr valign="top"> <td align="left"><span class="table-header">Variables</span></td> <td align="right" valign="top" ><span class="options">[<a href="#section-Variables" class="privatelink" onclick="toggle_private();" >hide private</a>]</span></td> </tr> </table> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="AIS_SET"></a><span class="summary-name">AIS_SET</span> = <code title="268435456">268435456</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="ALTITUDE_SET"></a><span class="summary-name">ALTITUDE_SET</span> = <code title="16">16</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="ATTITUDE_SET"></a><span class="summary-name">ATTITUDE_SET</span> = <code title="16384">16384</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="AUXDATA_SET"></a><span class="summary-name">AUXDATA_SET</span> = <code title="2147483648">2147483648</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="CLIMBERR_SET"></a><span class="summary-name">CLIMBERR_SET</span> = <code title="2097152">2097152</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="CLIMB_SET"></a><span class="summary-name">CLIMB_SET</span> = <code title="128">128</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="DEVICEID_SET"></a><span class="summary-name">DEVICEID_SET</span> = <code title="16777216">16777216</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="DEVICELIST_SET"></a><span class="summary-name">DEVICELIST_SET</span> = <code title="8388608">8388608</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="DEVICE_SET"></a><span class="summary-name">DEVICE_SET</span> = <code title="4194304">4194304</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="DOP_SET"></a><span class="summary-name">DOP_SET</span> = <code title="1024">1024</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="ERROR_SET"></a><span class="summary-name">ERROR_SET</span> = <code title="33554432">33554432</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="GPSD_PORT"></a><span class="summary-name">GPSD_PORT</span> = <code title="'2947'"><code class="variable-quote">'</code><code class="variable-string">2947</code><code class="variable-quote">'</code></code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="HERR_SET"></a><span class="summary-name">HERR_SET</span> = <code title="4096">4096</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="LATLON_SET"></a><span class="summary-name">LATLON_SET</span> = <code title="8">8</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="MAXCHANNELS"></a><span class="summary-name">MAXCHANNELS</span> = <code title="20">20</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="MODE_2D"></a><span class="summary-name">MODE_2D</span> = <code title="2">2</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="MODE_3D"></a><span class="summary-name">MODE_3D</span> = <code title="3">3</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="MODE_NO_FIX"></a><span class="summary-name">MODE_NO_FIX</span> = <code title="1">1</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="MODE_SET"></a><span class="summary-name">MODE_SET</span> = <code title="512">512</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="NaN"></a><span class="summary-name">NaN</span> = <code title="nan">nan</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="ONLINE_SET"></a><span class="summary-name">ONLINE_SET</span> = <code title="1">1</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="PACKET_SET"></a><span class="summary-name">PACKET_SET</span> = <code title="536870912">536870912</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="POLICY_SET"></a><span class="summary-name">POLICY_SET</span> = <code title="32768">32768</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="RAW_SET"></a><span class="summary-name">RAW_SET</span> = <code title="131072">131072</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="RTCM2_SET"></a><span class="summary-name">RTCM2_SET</span> = <code title="67108864">67108864</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="RTCM3_SET"></a><span class="summary-name">RTCM3_SET</span> = <code title="134217728">134217728</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="SATELLITE_SET"></a><span class="summary-name">SATELLITE_SET</span> = <code title="65536">65536</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="SIGNAL_STRENGTH_UNKNOWN"></a><span class="summary-name">SIGNAL_STRENGTH_UNKNOWN</span> = <code title="nan">nan</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="SPEEDERR_SET"></a><span class="summary-name">SPEEDERR_SET</span> = <code title="524288">524288</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="SPEED_SET"></a><span class="summary-name">SPEED_SET</span> = <code title="32">32</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="STATUS_DGPS_FIX"></a><span class="summary-name">STATUS_DGPS_FIX</span> = <code title="2">2</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="STATUS_FIX"></a><span class="summary-name">STATUS_FIX</span> = <code title="1">1</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="STATUS_NO_FIX"></a><span class="summary-name">STATUS_NO_FIX</span> = <code title="0">0</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="STATUS_SET"></a><span class="summary-name">STATUS_SET</span> = <code title="256">256</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="TIMERR_SET"></a><span class="summary-name">TIMERR_SET</span> = <code title="4">4</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="TIME_SET"></a><span class="summary-name">TIME_SET</span> = <code title="2">2</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="TRACKERR_SET"></a><span class="summary-name">TRACKERR_SET</span> = <code title="1048576">1048576</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="TRACK_SET"></a><span class="summary-name">TRACK_SET</span> = <code title="64">64</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="UNION_SET"></a><span class="summary-name">UNION_SET</span> = <code title="511707136">511707136</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="USED_SET"></a><span class="summary-name">USED_SET</span> = <code title="262144">262144</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="VERR_SET"></a><span class="summary-name">VERR_SET</span> = <code title="8192">8192</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="VERSION_SET"></a><span class="summary-name">VERSION_SET</span> = <code title="2048">2048</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="WATCH_DEVICE"></a><span class="summary-name">WATCH_DEVICE</span> = <code title="64">64</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="WATCH_DISABLE"></a><span class="summary-name">WATCH_DISABLE</span> = <code title="0">0</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="WATCH_ENABLE"></a><span class="summary-name">WATCH_ENABLE</span> = <code title="1">1</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="WATCH_JSON"></a><span class="summary-name">WATCH_JSON</span> = <code title="2">2</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="WATCH_NEWSTYLE"></a><span class="summary-name">WATCH_NEWSTYLE</span> = <code title="128">128</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="WATCH_NMEA"></a><span class="summary-name">WATCH_NMEA</span> = <code title="4">4</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="WATCH_OLDSTYLE"></a><span class="summary-name">WATCH_OLDSTYLE</span> = <code title="65536">65536</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="WATCH_RARE"></a><span class="summary-name">WATCH_RARE</span> = <code title="8">8</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="WATCH_RAW"></a><span class="summary-name">WATCH_RAW</span> = <code title="16">16</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="WATCH_SCALED"></a><span class="summary-name">WATCH_SCALED</span> = <code title="32">32</code> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <a name="__package__"></a><span class="summary-name">__package__</span> = <code title="'killerbee.openear.gps'"><code class="variable-quote">'</code><code class="variable-string">killerbee.openear.gps</code><code class="variable-quote">'</code></code> </td> </tr> </table> <!-- ==================== NAVIGATION BAR ==================== --> <table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0"> <tr valign="middle"> <!-- Home link --> <th>&nbsp;&nbsp;&nbsp;<a href="killerbee-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th> <!-- Tree link --> <th>&nbsp;&nbsp;&nbsp;<a href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th> <!-- Index link --> <th>&nbsp;&nbsp;&nbsp;<a href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th> <!-- Help link --> <th>&nbsp;&nbsp;&nbsp;<a href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th> <!-- Project homepage --> <th class="navbar" align="right" width="100%"> <table border="0" cellpadding="0" cellspacing="0"> <tr><th class="navbar" align="center" ><a class="navbar" target="_top" href="http://code.google.com/p/killerbee/">KillerBee</a></th> </tr></table></th> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" width="100%%"> <tr> <td align="left" class="footer"> Generated by Epydoc 3.0.1 on Mon Dec 30 17:49:12 2013 </td> <td align="right" class="footer"> <a target="mainFrame" href="http://epydoc.sourceforge.net" >http://epydoc.sourceforge.net</a> </td> </tr> </table> <script type="text/javascript"> <!-- // Private objects are initially displayed (because if // javascript is turned off then we want them to be // visible); but by default, we want to hide them. So hide // them unless we have a cookie that says to show them. checkCookie(); // --> </script> </body> </html>
rfmcpherson/killerbee
doc/killerbee.openear.gps.gps'-module.html
HTML
bsd-3-clause
22,847
{% extends "problem/base.html" %} {% load staticfiles %} {% load bootstrap %} {% block title_name %} <title>Edit Problem {{ problem.pk }}</title> {% endblock title_name %} {% block import_source %} {{ block.super }} <link rel="stylesheet" href="{% static 'problem/css/edit.css' %}"> {% endblock %} {% block body_block %} <div class="container" id="Body"> <h2> {{ problem.pk }} - {{ problem.pname }} <a href="{% url 'problem:detail' problem.pk %}" class="btn btn-primary"> See this problem </a> <a href="{% url 'problem:problem' %}" class="btn btn-info"> Back to problem panel </a> </h2> <div style="width:80%; float:left;"> <ul class="nav nav-tabs" role="tablist"> <li class="active"> <a href="#info" role="tab" data-toggle="tab">Info</a> </li> <li> <a href="#description" role="tab" data-toggle="tab">Description</a> </li> <li> <a href="#sample_io" role="tab" data-toggle="tab">Sample IO</a> </li> <li> <a href="#tag" role="tab" data-toggle="tab">Tag</a> </li> <li> <a href="#testcase" role="tab" data-toggle="tab">TestCase</a> </li> </ul> <div class="tab-content"> <form method="POST" id="problem_info" action="" enctype="multipart/form-data"> {{ form.media }} <div> <input type="submit" value="Preview" class="btn btn-success" id="preview_button"> <input type="submit" value="Save" class="btn btn-primary" id="save_button"> <a class="btn btn-warning" href="{% url 'problem:detail' problem.pk %}">Cancel</a> </div> {% csrf_token %} <div class="tab-pane active" id="info"> {% include "problem/editTab/info.html" with form=form pid=problem.pk path=path %} </div> <div class="tab-pane" id="description"> {{ form.description|bootstrap }} {{ form.input|bootstrap }} {{ form.output|bootstrap }} </div> <div class="tab-pane" id="sample_io"> <div class="panel panel-default" style="float:left;width:47%"> <div class="panel-heading">Sample Input</div> <textarea name="sample_in" class="panel-body" style="width:100%" rows="20">{{ problem.sample_in }}</textarea> </div> <div class="panel panel-default" style="float:right;width:47%"> <div class="panel-heading">Sample Output</div> <textarea name="sample_out" class="panel-body" style="width:100%" rows="20">{{ problem.sample_out }}</textarea> </div> </div> </form> <div class="tab-pane" id="tag"> {% include "problem/editTab/tag.html" with pid=problem.pk %} </div> <div class="tab-pane" id="testcase"> {% include "problem/editTab/testcase.html" with pid=problem.pk %} </div> </div> </div> </div> <script src="{% static 'problem/js/edit.js' %}"></script> </body> {% endblock %}
drowsy810301/NTHUOJ_web
problem/templates/problem/edit.html
HTML
mit
3,000
<div id="widgetinteract-{{widget.pk}}" rel="{{widget.pk}}" class="widgetinteractdialog" title="{{widget.name}} interaction" width="400" height="300"> <form> <label for="class_name{{widget.pk}}">New class attribute name</label> <input type="text" name="class_name{{widget.pk}}" value="{{class_name}}"/> {% for class_val in class_values %} <label for="class{{forloop.counter0}}{{widget.pk}}">Class label for set on signal #{{forloop.counter}}</label> <input type="text" name="class{{forloop.counter0}}{{widget.pk}}" value="{{class_val}}"/> {% endfor %} <input type="checkbox" name="replace{{widget.pk}}" {% if replace %}checked{% endif %}/> <label for="replace{{widget.pk}}">Replace existing class</label> <input type="hidden" name="widget_id" value="{{widget.pk}}"> </form> <script type="text/javascript"> </script> </div>
xflows/clowdflows
workflows/subgroup_discovery/templates/interactions/table_from_sets.html
HTML
mit
865
<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="refresh" content="0;URL=../../../libc/constant.POSIX_FADV_WILLNEED.html"> </head> <body> <p>Redirecting to <a href="../../../libc/constant.POSIX_FADV_WILLNEED.html">../../../libc/constant.POSIX_FADV_WILLNEED.html</a>...</p> <script>location.replace("../../../libc/constant.POSIX_FADV_WILLNEED.html" + location.search + location.hash);</script> </body> </html>
malept/guardhaus
main/libc/unix/linux_like/constant.POSIX_FADV_WILLNEED.html
HTML
mit
429
<fieldset> <legend>Δικαιώματα στις φωτογραφίες</legend> <p>Κάθε φωτογραφία έχει ένα <strong>επίπεδο προστασίας</strong> (ένα κλείδωμα). Κάθε χρήστης έχει επίσης ένα επίπεδο προστασίας (βασικό). There are 5 privacy levels:</p> <ol> <li>Κανένας</li> <li><em>Επαφές</em></li> <li><em>Φίλοι (η οποία είναι υψηλότερη από μια Eπαφή)</em></li> <li><em>Οικογένεια (η οποία είναι υψηλότερη από ένα Φίλο)</em></li> <li><em>Διαχειριστές (το οποίο είναι υψηλότερο από ό, τι οποιοδήποτε άλλο επίπεδο)</em></li> </ol> <p>Τα υψηλότερα επίπεδα έχουν δικαιώματα σε χαμηλότερα επίπεδα. Για ένα συγκεκριμένο χρήστη, όσο υψηλότερο είναι το επίπεδο προστασίας της ιδιωτικότητας, τόσο περισσότερες φωτογραφίες μπορεί να δει.</p> <p>Για παράδειγμα, εάν η φωτογραφία "peter_wedding-0024.jpg" έχει δικαιώματα <em>"Οικογένεια"</em>, Τότε:</p> <ul> <li>Πέτερ (που είναι <em>"Διαχειριστής"</em>) Θα δεί τη φωτογραφία γιατί <em>"Διαχειριστές"</em> μπορούν να δουν όλες τις φωτογραφίες</li> <li>Μπεθ (που είναι μέλος στο <em>"Οικογένεια"</em> ) επίσης θα δει τις φωτογραφίες</li> <li>Μαίρη(που είναι μια <em>"Φίλη"</em>) δεν θα δει τις φωτογραφίες</li> </ul> <p>Ένας χρήστης που δεν έχει άδεια για να δεί το περιεχόμενο του λευκώματος δεν θα δεί το ίδιο το λεύκωμα, ούτε καν τον τίτλο του. Η ίδια αρχή ισχύει και για μια ετικέτα.</p> <p>Μπορείτε να ρυθμίσετε το επίπεδο προστασίας της ιδιωτικότητας του χρήστη πάτε στην οθόνη <span class="pwgScreen">Διαχείριση &raquo; Χρήστες &raquo; Διαχειριστείτε </span>.</p> </fieldset> <fieldset> <legend>Δικαιώματα για τα Λευκώματα</legend> <p>Αν τα επίπεδα της ιδιωτικότητας δεν ταιριάζει στις ανάγκες σας, μπορείτε επίσης να διαχειριστείτε δικαιώματα στα λευκώματα για ένα χρήστη ή μια ομάδα. Μπορείτε να διαχειρίζεστε δικαιώματα για τις φωτογραφίες και τα λευκώματα ταυτόχρονα, χωρίς διενέξεις.</p> <p>Μπορείτε να απαγορεύσετε την πρόσβαση στα λευκώματα. Ενεργοποιήστε τον τύπο πρόσβασης στο λεύκωμα σε "ιδιωτικό" αν θέλετε να διαχειριστείτε δικαιώματα.</p> <p>Μπορείτε να ορίσετε ένα λεύκωμα ως ιδιωτικό με επεξεργασία κάποιου λευκώματος (<span class="pwgScreen">Διαχείριση &raquo; Λευκώματα &raquo; Διαχειριστείτε &raquo; Επεξεργαστείτε </span>) ή με τη ρύθμιση των επιλογών για όλο το δέντρο του λευκώματός σας (<span class="pwgScreen">Διαχείριση &raquo; Λευκώματα &raquo; Ιδιότητες &raquo; Δημόσιο / Ιδιωτικό</span>).</p> <p>Έτσι και το άλμπουμ είναι ιδιωτικό, μπορείτε να διαχειριστείτε δικαιώματα για τις ομάδες και τους χρήστες με 3 οθόνες:</p> <ul> <li><span class="pwgScreen">Διαχείριση &raquo; Χρήστες &raquo; Διαχειριστείτε &raquo; δράση δικαιωμάτων </span> (μία σύνδεση ανά χρήστη)</li> <li><span class="pwgScreen">Διαχείριση &raquo; Χρήστες &raquo; Ομάδες &raquo; δράση δικαιωμάτων</span> (μία σύνδεση ανά χρήστη)</li> <li><span class="pwgScreen">Διαχείριση &raquo; Λευκώματα &raquo; Διαχειριστείτε &raquo; επεξεργαστείτε δράση δικαιωμάτων λευκώματος</span> (μία σύνδεση ανά χρήστη)</li> </ul> </fieldset>
ale252/theatre
web/piwigo/language/el_GR/help/help_permissions.html
HTML
mit
4,837
<HTML><style type="text/css"> ul.inheritance { margin:0; padding:0; } ul.inheritance li { display:inline; list-style-type:none; } ul.inheritance li ul.inheritance { margin-left:15px; padding-left:15px; padding-top:1px; } </style> <section class="detail" id="toLowerCase()"> <h3>toLowerCase</h3> <div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="String.html" title="class in java.lang">String</a></span>&nbsp;<span class="element-name">toLowerCase</span>() </div> <div class="block">Converts all of the characters in this <code>String</code> to lower case using the rules of the default locale. This is equivalent to calling <code>toLowerCase(Locale.getDefault())</code>. <p> <b>Note:</b> This method is locale sensitive, and may produce unexpected results if used for strings that are intended to be interpreted locale independently. Examples are programming language identifiers, protocol keys, and HTML tags. For instance, <code>"TITLE".toLowerCase()</code> in a Turkish locale returns <code>"t\u0131tle"</code>, where '\u0131' is the LATIN SMALL LETTER DOTLESS I character. To obtain correct results for locale insensitive strings, use <code>toLowerCase(Locale.ROOT)</code>.</p></div> <dl class="notes"> <dt>Returns:</dt> <dd>the <code>String</code>, converted to lowercase.</dd> <dt>See Also:</dt> <dd><a href="#toLowerCase(java.util.Locale)"><code>toLowerCase(Locale)</code></a></dd> </dl> </section> </li> <li> </HTML>
siosio/intellij-community
java/java-tests/testData/codeInsight/externalJavadoc/String/16/expectedToLowerCase.html
HTML
apache-2.0
2,256
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>MPL Interoperability</title> <link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.78.1"> <link rel="home" href="../index.html" title="Chapter&#160;1.&#160;Boost.TypeTraits"> <link rel="up" href="../index.html" title="Chapter&#160;1.&#160;Boost.TypeTraits"> <link rel="prev" href="intrinsics.html" title="Support for Compiler Intrinsics"> <link rel="next" href="examples.html" title="Examples"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td> <td align="center"><a href="../../../../../index.html">Home</a></td> <td align="center"><a href="../../../../../libs/libraries.htm">Libraries</a></td> <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> <td align="center"><a href="../../../../../more/index.htm">More</a></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="intrinsics.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="examples.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="section"> <div class="titlepage"><div><div><h2 class="title" style="clear: both"> <a name="boost_typetraits.mpl"></a><a class="link" href="mpl.html" title="MPL Interoperability">MPL Interoperability</a> </h2></div></div></div> <p> All the value based traits in this library conform to MPL's requirements for an <a href="../../../../../libs/mpl/doc/refmanual/integral-constant.html" target="_top">Integral Constant type</a>: that includes a number of rather intrusive workarounds for broken compilers. </p> <p> Purely as an implementation detail, this means that <code class="computeroutput"><a class="link" href="reference/integral_constant.html" title="integral_constant">true_type</a></code> inherits from <a href="../../../../../libs/mpl/doc/refmanual/bool.html" target="_top"><code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></code></a>, <code class="computeroutput"><a class="link" href="reference/integral_constant.html" title="integral_constant">false_type</a></code> inherits from <a href="../../../../../libs/mpl/doc/refmanual/bool.html" target="_top"><code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">false_</span></code></a>, and <code class="computeroutput"><a class="link" href="reference/integral_constant.html" title="integral_constant">integral_constant</a><span class="special">&lt;</span><span class="identifier">T</span><span class="special">,</span> <span class="identifier">v</span><span class="special">&gt;</span></code> inherits from <a href="../../../../../libs/mpl/doc/refmanual/integral-c.html" target="_top"><code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">integral_c</span><span class="special">&lt;</span><span class="identifier">T</span><span class="special">,</span><span class="identifier">v</span><span class="special">&gt;</span></code></a> (provided <code class="computeroutput"><span class="identifier">T</span></code> is not <code class="computeroutput"><span class="keyword">bool</span></code>) </p> </div> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright &#169; 2000, 2011 Adobe Systems Inc, David Abrahams, Frederic Bron, Steve Cleary, Beman Dawes, Aleksey Gurtovoy, Howard Hinnant, Jesse Jones, Mat Marcus, Itay Maman, John Maddock, Alexander Nasonov, Thorsten Ottosen, Roman Perepelitsa, Robert Ramey, Jeremy Siek, Robert Stewart and Steven Watanabe<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> </div></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="intrinsics.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="examples.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html>
flingone/frameworks_base_cmds_remoted
libs/boost/libs/type_traits/doc/html/boost_typetraits/mpl.html
HTML
apache-2.0
5,421
<!DOCTYPE html> <html lang="en" ng-app="jpm"> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <link href="/releases/5.0.0/css/style.css" rel="stylesheet" /> <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script> <script src="/js/releases.js"></script> <!-- Begin Jekyll SEO tag v2.6.1 --> <title>basename ( ‘;’ FILEPATH ) +</title> <meta name="generator" content="Jekyll v3.8.5" /> <meta property="og:title" content="basename ( ‘;’ FILEPATH ) +" /> <meta property="og:locale" content="en_US" /> <meta name="description" content="public String _basename(String args[]) { if (args.length &lt; 2) { domain.warning(&quot;Need at least one file name for ${basename;...}&quot;); return null; } String del = &quot;&quot;; StringBuilder sb = new StringBuilder(); for (int i = 1; i &lt; args.length; i++) { File f = domain.getFile(args[i]); if (f.exists() &amp;&amp; f.getParentFile().exists()) { sb.append(del); sb.append(f.getName()); del = &quot;,&quot;; } } return sb.toString();" /> <meta property="og:description" content="public String _basename(String args[]) { if (args.length &lt; 2) { domain.warning(&quot;Need at least one file name for ${basename;...}&quot;); return null; } String del = &quot;&quot;; StringBuilder sb = new StringBuilder(); for (int i = 1; i &lt; args.length; i++) { File f = domain.getFile(args[i]); if (f.exists() &amp;&amp; f.getParentFile().exists()) { sb.append(del); sb.append(f.getName()); del = &quot;,&quot;; } } return sb.toString();" /> <script type="application/ld+json"> {"@type":"WebPage","headline":"basename ( ‘;’ FILEPATH ) +","url":"/releases/5.0.0/macros/basename.html","description":"public String _basename(String args[]) { if (args.length &lt; 2) { domain.warning(&quot;Need at least one file name for ${basename;...}&quot;); return null; } String del = &quot;&quot;; StringBuilder sb = new StringBuilder(); for (int i = 1; i &lt; args.length; i++) { File f = domain.getFile(args[i]); if (f.exists() &amp;&amp; f.getParentFile().exists()) { sb.append(del); sb.append(f.getName()); del = &quot;,&quot;; } } return sb.toString();","@context":"https://schema.org"}</script> <!-- End Jekyll SEO tag --> </head> <body> <ul class="container12 menu-bar"> <li span=11><a class=menu-link href="/releases/5.0.0/"><img class=menu-logo src="/releases/5.0.0/img/bnd-80x40-white.png"></a> <a href="/releases/5.0.0/chapters/110-introduction.html">Intro </a><a href="/releases/5.0.0/chapters/800-headers.html">Headers </a><a href="/releases/5.0.0/chapters/825-instructions-ref.html">Instructions </a><a href="/releases/5.0.0/chapters/855-macros-ref.html">Macros </a><a href="/releases/5.0.0/chapters/400-commands.html">Commands </a><div class="releases"><button class="dropbtn">5.0.0</button><div class="dropdown-content"></div></div> <li class=menu-link span=1> <a href="https://github.com/bndtools/bnd" target="_"><img style="position:absolute;top:0;right:0;margin:0;padding:0;z-index:100" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"></a> </ul> <ul class=container12> <li span=3> <div> <ul class="side-nav"> <li><a href="/releases/5.0.0/chapters/110-introduction.html">Introduction</a> <li><a href="/releases/5.0.0/chapters/120-install.html">How to install bnd</a> <li><a href="/releases/5.0.0/chapters/123-tour-workspace.html">Guided Tour</a> <li><a href="/releases/5.0.0/chapters/125-tour-features.html">Guided Tour Workspace & Projects</a> <li><a href="/releases/5.0.0/chapters/130-concepts.html">Concepts</a> <li><a href="/releases/5.0.0/chapters/140-best-practices.html">Best practices</a> <li><a href="/releases/5.0.0/chapters/150-build.html">Build</a> <li><a href="/releases/5.0.0/chapters/155-project-setup.html">Project Setup</a> <li><a href="/releases/5.0.0/chapters/160-jars.html">Generating JARs</a> <li><a href="/releases/5.0.0/chapters/170-versioning.html">Versioning</a> <li><a href="/releases/5.0.0/chapters/180-baselining.html">Baselining</a> <li><a href="/releases/5.0.0/chapters/200-components.html">Service Components</a> <li><a href="/releases/5.0.0/chapters/210-metatype.html">Metatype</a> <li><a href="/releases/5.0.0/chapters/220-contracts.html">Contracts</a> <li><a href="/releases/5.0.0/chapters/230-manifest-annotations.html">Bundle Annotations</a> <li><a href="/releases/5.0.0/chapters/235-accessor-properties.html">Accessor Properties</a> <li><a href="/releases/5.0.0/chapters/240-spi-annotations.html">SPI Annotations</a> <li><a href="/releases/5.0.0/chapters/250-resolving.html">Resolving Dependencies</a> <li><a href="/releases/5.0.0/chapters/300-launching.html">Launching</a> <li><a href="/releases/5.0.0/chapters/305-startlevels.html">Startlevels</a> <li><a href="/releases/5.0.0/chapters/310-testing.html">Testing</a> <li><a href="/releases/5.0.0/chapters/315-launchpad-testing.html">Testing with Launchpad</a> <li><a href="/releases/5.0.0/chapters/320-packaging.html">Packaging Applications</a> <li><a href="/releases/5.0.0/chapters/330-jpms.html">JPMS Libraries</a> <li><a href="/releases/5.0.0/chapters/390-wrapping.html">Wrapping Libraries to OSGi Bundles</a> <li><a href="/releases/5.0.0/chapters/395-generating-documentation.html">Generating Documentation</a> <li><a href="/releases/5.0.0/chapters/400-commands.html">Commands</a> <li><a href="/releases/5.0.0/chapters/600-developer.html">For Developers</a> <li><a href="/releases/5.0.0/chapters/650-windows.html">Tips for Windows users</a> <li><a href="/releases/5.0.0/chapters/700-tools.html">Tools bound to bnd</a> <li><a href="/releases/5.0.0/chapters/800-headers.html">Headers</a> <li><a href="/releases/5.0.0/chapters/820-instructions.html">Instruction Reference</a> <li><a href="/releases/5.0.0/chapters/825-instructions-ref.html">Instruction Index</a> <li><a href="/releases/5.0.0/chapters/850-macros.html">Macro Reference</a> <li><a href="/releases/5.0.0/chapters/855-macros-ref.html">Macro Index</a> <li><a href="/releases/5.0.0/chapters/870-plugins.html">Plugins</a> <li><a href="/releases/5.0.0/chapters/880-settings.html">Settings</a> <li><a href="/releases/5.0.0/chapters/900-errors.html">Errors</a> <li><a href="/releases/5.0.0/chapters/910-warnings.html">Warnings</a> <li><a href="/releases/5.0.0/chapters/920-faq.html">Frequently Asked Questions</a> </ul> </div> <li span=9> <div class=notes-margin> <h1> basename ( ';' FILEPATH ) +</h1> <div class="highlighter-rouge"><div class="highlight"><pre class="highlight"><code>public String _basename(String args[]) { if (args.length &lt; 2) { domain.warning("Need at least one file name for ${basename;...}"); return null; } String del = ""; StringBuilder sb = new StringBuilder(); for (int i = 1; i &lt; args.length; i++) { File f = domain.getFile(args[i]); if (f.exists() &amp;&amp; f.getParentFile().exists()) { sb.append(del); sb.append(f.getName()); del = ","; } } return sb.toString(); } </code></pre></div></div> </div> </ul> <nav class=next-prev> <a href='/releases/5.0.0/macros/basedir.html'></a> <a href='/releases/5.0.0/macros/basenameext.html'></a> </nav> <footer class="container12" style="border-top: 1px solid black;padding:10px 0"> <ul span=12 row> <li span=12> <ul> <li><a href="/releases/5.0.0/">GitHub</a> </ul> </ul> </footer> </body> </html>
psoreide/bnd
docs/releases/5.0.0/macros/basename.html
HTML
apache-2.0
8,442
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>buffered_write_stream::lowest_layer (2 of 2 overloads)</title> <link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.78.1"> <link rel="home" href="../../../../boost_asio.html" title="Boost.Asio"> <link rel="up" href="../lowest_layer.html" title="buffered_write_stream::lowest_layer"> <link rel="prev" href="overload1.html" title="buffered_write_stream::lowest_layer (1 of 2 overloads)"> <link rel="next" href="../lowest_layer_type.html" title="buffered_write_stream::lowest_layer_type"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td> <td align="center"><a href="../../../../../../index.html">Home</a></td> <td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td> <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> <td align="center"><a href="../../../../../../more/index.htm">More</a></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="overload1.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../lowest_layer.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../boost_asio.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../lowest_layer_type.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="boost_asio.reference.buffered_write_stream.lowest_layer.overload2"></a><a class="link" href="overload2.html" title="buffered_write_stream::lowest_layer (2 of 2 overloads)">buffered_write_stream::lowest_layer (2 of 2 overloads)</a> </h5></div></div></div> <p> Get a const reference to the lowest layer. </p> <pre class="programlisting"><span class="keyword">const</span> <span class="identifier">lowest_layer_type</span> <span class="special">&amp;</span> <span class="identifier">lowest_layer</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span> </pre> </div> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright &#169; 2003-2013 Christopher M. Kohlhoff<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> </div></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="overload1.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../lowest_layer.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../boost_asio.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../lowest_layer_type.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html>
NixaSoftware/CVis
venv/bin/doc/html/boost_asio/reference/buffered_write_stream/lowest_layer/overload2.html
HTML
apache-2.0
3,531
<st-primary-sidebar-title class-icon="icon-cog">{{"_MENU_SETTINGS_TITLE_" | translate}}</st-primary-sidebar-title>
fjsc/sparta
web/src/views/settings/settings_menu.html
HTML
apache-2.0
115
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/favicon.ico"> <meta name="viewport" content="initial-scale=1.0, maximum-scale=2.0"> <title>DataTables example - Pipelining data to reduce Ajax calls for paging</title> <link rel="stylesheet" type="text/css" href="../../media/css/jquery.dataTables.css"> <link rel="stylesheet" type="text/css" href="../resources/syntax/shCore.css"> <link rel="stylesheet" type="text/css" href="../resources/demo.css"> <style type="text/css" class="init"> </style> <script type="text/javascript" language="javascript" src="../../media/js/jquery.js"></script> <script type="text/javascript" language="javascript" src="../../media/js/jquery.dataTables.js"></script> <script type="text/javascript" language="javascript" src="../resources/syntax/shCore.js"></script> <script type="text/javascript" language="javascript" src="../resources/demo.js"></script> <script type="text/javascript" language="javascript" class="init"> // // Pipelining function for DataTables. To be used to the `ajax` option of DataTables // $.fn.dataTable.pipeline = function ( opts ) { // Configuration options var conf = $.extend( { pages: 5, // number of pages to cache url: '', // script url data: null, // function or object with parameters to send to the server // matching how `ajax.data` works in DataTables method: 'GET' // Ajax HTTP method }, opts ); // Private variables for storing the cache var cacheLower = -1; var cacheUpper = null; var cacheLastRequest = null; var cacheLastJson = null; return function ( request, drawCallback, settings ) { var ajax = false; var requestStart = request.start; var drawStart = request.start; var requestLength = request.length; var requestEnd = requestStart + requestLength; if ( settings.clearCache ) { // API requested that the cache be cleared ajax = true; settings.clearCache = false; } else if ( cacheLower < 0 || requestStart < cacheLower || requestEnd > cacheUpper ) { // outside cached data - need to make a request ajax = true; } else if ( JSON.stringify( request.order ) !== JSON.stringify( cacheLastRequest.order ) || JSON.stringify( request.columns ) !== JSON.stringify( cacheLastRequest.columns ) || JSON.stringify( request.search ) !== JSON.stringify( cacheLastRequest.search ) ) { // properties changed (ordering, columns, searching) ajax = true; } // Store the request for checking next time around cacheLastRequest = $.extend( true, {}, request ); if ( ajax ) { // Need data from the server if ( requestStart < cacheLower ) { requestStart = requestStart - (requestLength*(conf.pages-1)); if ( requestStart < 0 ) { requestStart = 0; } } cacheLower = requestStart; cacheUpper = requestStart + (requestLength * conf.pages); request.start = requestStart; request.length = requestLength*conf.pages; // Provide the same `data` options as DataTables. if ( $.isFunction ( conf.data ) ) { // As a function it is executed with the data object as an arg // for manipulation. If an object is returned, it is used as the // data object to submit var d = conf.data( request ); if ( d ) { $.extend( request, d ); } } else if ( $.isPlainObject( conf.data ) ) { // As an object, the data given extends the default $.extend( request, conf.data ); } settings.jqXHR = $.ajax( { "type": conf.method, "url": conf.url, "data": request, "dataType": "json", "cache": false, "success": function ( json ) { cacheLastJson = $.extend(true, {}, json); if ( cacheLower != drawStart ) { json.data.splice( 0, drawStart-cacheLower ); } json.data.splice( requestLength, json.data.length ); drawCallback( json ); } } ); } else { json = $.extend( true, {}, cacheLastJson ); json.draw = request.draw; // Update the echo for each response json.data.splice( 0, requestStart-cacheLower ); json.data.splice( requestLength, json.data.length ); drawCallback(json); } } }; // Register an API method that will empty the pipelined data, forcing an Ajax // fetch on the next draw (i.e. `table.clearPipeline().draw()`) $.fn.dataTable.Api.register( 'clearPipeline()', function () { return this.iterator( 'table', function ( settings ) { settings.clearCache = true; } ); } ); // // DataTables initialisation // $(document).ready(function() { $('#example').dataTable( { "processing": true, "serverSide": true, "ajax": $.fn.dataTable.pipeline( { url: 'scripts/server_processing.php', pages: 5 // number of pages to cache } ) } ); } ); </script> </head> <body class="dt-example"> <div class="container"> <section> <h1>DataTables example <span>Pipelining data to reduce Ajax calls for paging</span></h1> <div class="info"> <p>Sever-side processing can be quite hard on your server, since it makes an Ajax call to the server for every draw request that is made. On sites with a large number of page views, you could potentially end up DDoSing your own server with your own applications!</p> <p>This example shows one technique to reduce the number of Ajax calls that are made to the server by caching more data than is needed for each draw. This is done by intercepting the Ajax call and routing it through a data cache control; using the data from the cache if available, and making the Ajax request if not. This intercept of the Ajax request is performed by giving the <a href= "//datatables.net/reference/option/ajax"><code class="option" title= "DataTables initialisation option">ajax<span>DT</span></code></a> option as a function. This function then performs the logic of deciding if another Ajax call is needed, or if data from the cache can be used.</p> <p>Keep in mind that this caching is for paging only; the pipeline must be cleared for other interactions such as ordering and searching since the full data set, when using server-side processing, is only available at the server.</p> </div> <table id="example" class="display" cellspacing="0" width="100%"> <thead> <tr> <th>Name</th> <th>Position</th> <th>Office</th> <th>Extn.</th> <th>Start date</th> <th>Salary</th> </tr> </thead> <tfoot> <tr> <th>Name</th> <th>Position</th> <th>Office</th> <th>Extn.</th> <th>Start date</th> <th>Salary</th> </tr> </tfoot> </table> <ul class="tabs"> <li class="active">Javascript</li> <li>HTML</li> <li>CSS</li> <li>Ajax</li> <li>Server-side script</li> </ul> <div class="tabs"> <div class="js"> <p>The Javascript shown below is used to initialise the table shown in this example:</p><code class="multiline brush: js;">// // Pipelining function for DataTables. To be used to the `ajax` option of DataTables // $.fn.dataTable.pipeline = function ( opts ) { // Configuration options var conf = $.extend( { pages: 5, // number of pages to cache url: '', // script url data: null, // function or object with parameters to send to the server // matching how `ajax.data` works in DataTables method: 'GET' // Ajax HTTP method }, opts ); // Private variables for storing the cache var cacheLower = -1; var cacheUpper = null; var cacheLastRequest = null; var cacheLastJson = null; return function ( request, drawCallback, settings ) { var ajax = false; var requestStart = request.start; var drawStart = request.start; var requestLength = request.length; var requestEnd = requestStart + requestLength; if ( settings.clearCache ) { // API requested that the cache be cleared ajax = true; settings.clearCache = false; } else if ( cacheLower &lt; 0 || requestStart &lt; cacheLower || requestEnd &gt; cacheUpper ) { // outside cached data - need to make a request ajax = true; } else if ( JSON.stringify( request.order ) !== JSON.stringify( cacheLastRequest.order ) || JSON.stringify( request.columns ) !== JSON.stringify( cacheLastRequest.columns ) || JSON.stringify( request.search ) !== JSON.stringify( cacheLastRequest.search ) ) { // properties changed (ordering, columns, searching) ajax = true; } // Store the request for checking next time around cacheLastRequest = $.extend( true, {}, request ); if ( ajax ) { // Need data from the server if ( requestStart &lt; cacheLower ) { requestStart = requestStart - (requestLength*(conf.pages-1)); if ( requestStart &lt; 0 ) { requestStart = 0; } } cacheLower = requestStart; cacheUpper = requestStart + (requestLength * conf.pages); request.start = requestStart; request.length = requestLength*conf.pages; // Provide the same `data` options as DataTables. if ( $.isFunction ( conf.data ) ) { // As a function it is executed with the data object as an arg // for manipulation. If an object is returned, it is used as the // data object to submit var d = conf.data( request ); if ( d ) { $.extend( request, d ); } } else if ( $.isPlainObject( conf.data ) ) { // As an object, the data given extends the default $.extend( request, conf.data ); } settings.jqXHR = $.ajax( { &quot;type&quot;: conf.method, &quot;url&quot;: conf.url, &quot;data&quot;: request, &quot;dataType&quot;: &quot;json&quot;, &quot;cache&quot;: false, &quot;success&quot;: function ( json ) { cacheLastJson = $.extend(true, {}, json); if ( cacheLower != drawStart ) { json.data.splice( 0, drawStart-cacheLower ); } json.data.splice( requestLength, json.data.length ); drawCallback( json ); } } ); } else { json = $.extend( true, {}, cacheLastJson ); json.draw = request.draw; // Update the echo for each response json.data.splice( 0, requestStart-cacheLower ); json.data.splice( requestLength, json.data.length ); drawCallback(json); } } }; // Register an API method that will empty the pipelined data, forcing an Ajax // fetch on the next draw (i.e. `table.clearPipeline().draw()`) $.fn.dataTable.Api.register( 'clearPipeline()', function () { return this.iterator( 'table', function ( settings ) { settings.clearCache = true; } ); } ); // // DataTables initialisation // $(document).ready(function() { $('#example').dataTable( { &quot;processing&quot;: true, &quot;serverSide&quot;: true, &quot;ajax&quot;: $.fn.dataTable.pipeline( { url: 'scripts/server_processing.php', pages: 5 // number of pages to cache } ) } ); } );</code> <p>In addition to the above code, the following Javascript library files are loaded for use in this example:</p> <ul> <li><a href="../../media/js/jquery.js">../../media/js/jquery.js</a></li> <li><a href="../../media/js/jquery.dataTables.js">../../media/js/jquery.dataTables.js</a></li> </ul> </div> <div class="table"> <p>The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:</p> </div> <div class="css"> <div> <p>This example uses a little bit of additional CSS beyond what is loaded from the library files (below), in order to correctly display the table. The additional CSS used is shown below:</p><code class="multiline brush: js;"></code> </div> <p>The following CSS library files are loaded for use in this example to provide the styling of the table:</p> <ul> <li><a href= "../../media/css/jquery.dataTables.css">../../media/css/jquery.dataTables.css</a></li> </ul> </div> <div class="ajax"> <p>This table loads data by Ajax. The latest data that has been loaded is shown below. This data will update automatically as any additional data is loaded.</p> </div> <div class="php"> <p>The script used to perform the server-side processing for this table is shown below. Please note that this is just an example script using PHP. Server-side processing scripts can be written in any language, using <a href="//datatables.net/manual/server-side">the protocol described in the DataTables documentation</a>.</p> </div> </div> </section> </div> <section> <div class="footer"> <div class="gradient"></div> <div class="liner"> <h2>Other examples</h2> <div class="toc"> <div class="toc-group"> <h3><a href="../basic_init/index.html">Basic initialisation</a></h3> <ul class="toc"> <li><a href="../basic_init/zero_configuration.html">Zero configuration</a></li> <li><a href="../basic_init/filter_only.html">Feature enable / disable</a></li> <li><a href="../basic_init/table_sorting.html">Default ordering (sorting)</a></li> <li><a href="../basic_init/multi_col_sort.html">Multi-column ordering</a></li> <li><a href="../basic_init/multiple_tables.html">Multiple tables</a></li> <li><a href="../basic_init/hidden_columns.html">Hidden columns</a></li> <li><a href="../basic_init/complex_header.html">Complex headers (rowspan and colspan)</a></li> <li><a href="../basic_init/dom.html">DOM positioning</a></li> <li><a href="../basic_init/flexible_width.html">Flexible table width</a></li> <li><a href="../basic_init/state_save.html">State saving</a></li> <li><a href="../basic_init/alt_pagination.html">Alternative pagination</a></li> <li><a href="../basic_init/scroll_y.html">Scroll - vertical</a></li> <li><a href="../basic_init/scroll_x.html">Scroll - horizontal</a></li> <li><a href="../basic_init/scroll_xy.html">Scroll - horizontal and vertical</a></li> <li><a href="../basic_init/scroll_y_theme.html">Scroll - vertical with jQuery UI ThemeRoller</a></li> <li><a href="../basic_init/comma-decimal.html">Language - Comma decimal place</a></li> <li><a href="../basic_init/language.html">Language options</a></li> </ul> </div> <div class="toc-group"> <h3><a href="../advanced_init/index.html">Advanced initialisation</a></h3> <ul class="toc"> <li><a href="../advanced_init/events_live.html">DOM / jQuery events</a></li> <li><a href="../advanced_init/dt_events.html">DataTables events</a></li> <li><a href="../advanced_init/column_render.html">Column rendering</a></li> <li><a href="../advanced_init/length_menu.html">Page length options</a></li> <li><a href="../advanced_init/dom_multiple_elements.html">Multiple table control elements</a></li> <li><a href="../advanced_init/complex_header.html">Complex headers (rowspan / colspan)</a></li> <li><a href="../advanced_init/html5-data-attributes.html">HTML5 data-* attributes</a></li> <li><a href="../advanced_init/language_file.html">Language file</a></li> <li><a href="../advanced_init/defaults.html">Setting defaults</a></li> <li><a href="../advanced_init/row_callback.html">Row created callback</a></li> <li><a href="../advanced_init/row_grouping.html">Row grouping</a></li> <li><a href="../advanced_init/footer_callback.html">Footer callback</a></li> <li><a href="../advanced_init/dom_toolbar.html">Custom toolbar elements</a></li> <li><a href="../advanced_init/sort_direction_control.html">Order direction sequence control</a></li> </ul> </div> <div class="toc-group"> <h3><a href="../styling/index.html">Styling</a></h3> <ul class="toc"> <li><a href="../styling/display.html">Base style</a></li> <li><a href="../styling/no-classes.html">Base style - no styling classes</a></li> <li><a href="../styling/cell-border.html">Base style - cell borders</a></li> <li><a href="../styling/compact.html">Base style - compact</a></li> <li><a href="../styling/hover.html">Base style - hover</a></li> <li><a href="../styling/order-column.html">Base style - order-column</a></li> <li><a href="../styling/row-border.html">Base style - row borders</a></li> <li><a href="../styling/stripe.html">Base style - stripe</a></li> <li><a href="../styling/bootstrap.html">Bootstrap</a></li> <li><a href="../styling/foundation.html">Foundation</a></li> <li><a href="../styling/jqueryUI.html">jQuery UI ThemeRoller</a></li> </ul> </div> <div class="toc-group"> <h3><a href="../data_sources/index.html">Data sources</a></h3> <ul class="toc"> <li><a href="../data_sources/dom.html">HTML (DOM) sourced data</a></li> <li><a href="../data_sources/ajax.html">Ajax sourced data</a></li> <li><a href="../data_sources/js_array.html">Javascript sourced data</a></li> <li><a href="../data_sources/server_side.html">Server-side processing</a></li> </ul> </div> <div class="toc-group"> <h3><a href="../api/index.html">API</a></h3> <ul class="toc"> <li><a href="../api/add_row.html">Add rows</a></li> <li><a href="../api/multi_filter.html">Individual column filtering (text inputs)</a></li> <li><a href="../api/multi_filter_select.html">Individual column filtering (select inputs)</a></li> <li><a href="../api/highlight.html">Highlighting rows and columns</a></li> <li><a href="../api/row_details.html">Child rows (show extra / detailed information)</a></li> <li><a href="../api/select_row.html">Row selection (multiple rows)</a></li> <li><a href="../api/select_single_row.html">Row selection and deletion (single row)</a></li> <li><a href="../api/form.html">Form inputs</a></li> <li><a href="../api/counter_columns.html">Index column</a></li> <li><a href="../api/show_hide.html">Show / hide columns dynamically</a></li> <li><a href="../api/api_in_init.html">Using API in callbacks</a></li> <li><a href="../api/tabs_and_scrolling.html">Scrolling and jQuery UI tabs</a></li> <li><a href="../api/regex.html">Filtering API (regular expressions)</a></li> </ul> </div> <div class="toc-group"> <h3><a href="../ajax/index.html">Ajax</a></h3> <ul class="toc"> <li><a href="../ajax/simple.html">Ajax data source (arrays)</a></li> <li><a href="../ajax/objects.html">Ajax data source (objects)</a></li> <li><a href="../ajax/deep.html">Nested object data (objects)</a></li> <li><a href="../ajax/objects_subarrays.html">Nested object data (arrays)</a></li> <li><a href="../ajax/orthogonal-data.html">Orthogonal data</a></li> <li><a href="../ajax/null_data_source.html">Generated content for a column</a></li> <li><a href="../ajax/custom_data_property.html">Custom data source property</a></li> <li><a href="../ajax/custom_data_flat.html">Flat array data source</a></li> <li><a href="../ajax/defer_render.html">Deferred rendering for speed</a></li> </ul> </div> <div class="toc-group"> <h3><a href="./index.html">Server-side</a></h3> <ul class="toc active"> <li><a href="./simple.html">Server-side processing</a></li> <li><a href="./custom_vars.html">Custom HTTP variables</a></li> <li><a href="./post.html">POST data</a></li> <li><a href="./ids.html">Automatic addition of row ID attributes</a></li> <li><a href="./object_data.html">Object data source</a></li> <li><a href="./row_details.html">Row details</a></li> <li><a href="./select_rows.html">Row selection</a></li> <li><a href="./jsonp.html">JSONP data source for remote domains</a></li> <li><a href="./defer_loading.html">Deferred loading of data</a></li> <li class="active"><a href="./pipeline.html">Pipelining data to reduce Ajax calls for paging</a></li> </ul> </div> <div class="toc-group"> <h3><a href="../plug-ins/index.html">Plug-ins</a></h3> <ul class="toc"> <li><a href="../plug-ins/api.html">API plug-in methods</a></li> <li><a href="../plug-ins/sorting_auto.html">Ordering plug-ins (with type detection)</a></li> <li><a href="../plug-ins/sorting_manual.html">Ordering plug-ins (no type detection)</a></li> <li><a href="../plug-ins/range_filtering.html">Custom filtering - range search</a></li> <li><a href="../plug-ins/dom_sort.html">Live DOM ordering</a></li> </ul> </div> </div> <div class="epilogue"> <p>Please refer to the <a href="http://www.datatables.net">DataTables documentation</a> for full information about its API properties and methods.<br> Additionally, there are a wide range of <a href="http://www.datatables.net/extras">extras</a> and <a href="http://www.datatables.net/plug-ins">plug-ins</a> which extend the capabilities of DataTables.</p> <p class="copyright">DataTables designed and created by <a href= "http://www.sprymedia.co.uk">SpryMedia Ltd</a> &#169; 2007-2014<br> DataTables is licensed under the <a href="http://www.datatables.net/mit">MIT license</a>.</p> </div> </div> </div> </section> </body> </html>
hyokun31/wisekb-management-platform
wisekb-uima-ducc/webserver/root/opensources/DataTables-1.10.1/examples/server_side/pipeline.html
HTML
apache-2.0
21,526
<!DOCTYPE html> <!-- Any copyright is dedicated to the Public Domain. - http://creativecommons.org/publicdomain/zero/1.0/ --> <html> <meta charset="utf-8"> <title>CSS Shape Test: sideways-lr, float left, circle(50% at right 40px bottom 40px)</title> <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> <link rel="author" title="Mozilla" href="http://www.mozilla.org/"> <link rel="help" href="https://drafts.csswg.org/css-shapes-1/#supported-basic-shapes"> <link rel="match" href="reference/shape-outside-circle-052-ref.html"> <meta name="flags" content=""> <meta name="assert" content="Test the boxes are wrapping around the left float shape defined by circle(50% at right 40px bottom 40px) value under sideways-lr writing-mode."> <style> .container { writing-mode: sideways-lr; inline-size: 200px; line-height: 0; } .shape { float: left; shape-outside: circle(50% at right 40px bottom 40px) border-box; clip-path: circle(50% at right 40px bottom 40px) border-box; box-sizing: content-box; block-size: 40px; inline-size: 40px; padding: 20px; border: 20px solid lightgreen; margin-inline-start: 20px; margin-inline-end: 20px; background-color: orange; } .box { display: inline-block; inline-size: 60px; background-color: blue; } .long { inline-size: 200px; } </style> <main class="container"> <div class="shape"></div> <div class="long box" style="block-size: 20px;"></div> <!-- Fill the border area due to the circle shifted --> <div class="box" style="block-size: 12px;"></div> <!-- Box at corner --> <div class="box" style="block-size: 12px;"></div> <!-- Box at corner --> <div class="box" style="block-size: 36px;"></div> <div class="box" style="block-size: 36px;"></div> <div class="box" style="block-size: 12px;"></div> <!-- Box at corner --> <div class="long box" style="block-size: 20px;"></div> </main> </html>
scheib/chromium
third_party/blink/web_tests/external/wpt/css/css-shapes/shape-outside/supported-shapes/circle/shape-outside-circle-052.html
HTML
bsd-3-clause
1,990
<!-- Copyright (c) 2015 The Khronos Group Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and/or associated documentation files (the "Materials"), to deal in the Materials without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Materials, and to permit persons to whom the Materials are furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Materials. THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. --> <!-- This file is auto-generated from py/tex_image_test_generator.py DO NOT EDIT! --> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <link rel="stylesheet" href="../../../resources/js-test-style.css"/> <script src="../../../js/js-test-pre.js"></script> <script src="../../../js/webgl-test-utils.js"></script> <script src="../../../js/tests/tex-image-and-sub-image-utils.js"></script> <script src="../../../js/tests/tex-image-and-sub-image-2d-with-canvas.js"></script> </head> <body> <canvas id="example" width="32" height="32"></canvas> <div id="description"></div> <div id="console"></div> <script> "use strict"; function testPrologue(gl) { return true; } generateTest("R16F", "RED", "HALF_FLOAT", testPrologue, "../../../resources/", 2)(); </script> </body> </html>
endlessm/chromium-browser
third_party/webgl/src/conformance-suites/2.0.0/conformance2/textures/canvas/tex-2d-r16f-red-half_float.html
HTML
bsd-3-clause
1,874
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.5"/> <title>Core Plot (iOS): Source/CPTMutableNumericData+TypeConversion.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectlogo"><img alt="Logo" src="core-plot-logo.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">Core Plot (iOS) </div> <div id="projectbrief">Cocoa plotting framework for Mac OS X and iOS</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.5 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Related&#160;Pages</span></a></li> <li><a href="modules.html"><span>Animation&#160;&&#160;Constants</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File&#160;List</span></a></li> <li><a href="globals.html"><span>File&#160;Members</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('_c_p_t_mutable_numeric_data_09_type_conversion_8h_source.html','');}); </script> <div id="doc-content"> <div class="header"> <div class="headertitle"> <div class="title">CPTMutableNumericData+TypeConversion.h</div> </div> </div><!--header--> <div class="contents"> <a href="_c_p_t_mutable_numeric_data_09_type_conversion_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="preprocessor">#import &quot;<a class="code" href="_c_p_t_mutable_numeric_data_8h.html">CPTMutableNumericData.h</a>&quot;</span></div> <div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="preprocessor">#import &quot;<a class="code" href="_c_p_t_numeric_data_type_8h.html">CPTNumericDataType.h</a>&quot;</span></div> <div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;</div> <div class="line"><a name="l00007"></a><span class="lineno"><a class="line" href="category_c_p_t_mutable_numeric_data_07_type_conversion_08.html"> 7</a></span>&#160;<span class="keyword">@interface </span><a class="code" href="category_c_p_t_mutable_numeric_data_07_type_conversion_08.html">CPTMutableNumericData(TypeConversion)</a></div> <div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;</div> <div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="interface_c_p_t_mutable_numeric_data.html#a20604ff4fbb96365bb88d5a7823fca9a"> 11</a></span>&#160;<span class="keyword">@property</span> (readwrite, assign) <a class="code" href="struct_c_p_t_numeric_data_type.html">CPTNumericDataType</a> dataType;</div> <div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="interface_c_p_t_mutable_numeric_data.html#a79edf7d82be402df822864d28f85e902"> 12</a></span>&#160;<span class="keyword">@property</span> (readwrite, assign) <a class="code" href="_c_p_t_numeric_data_type_8h.html#ac29c0caa2ac30299b2dd472b299ac663">CPTDataTypeFormat</a> dataTypeFormat;</div> <div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="interface_c_p_t_mutable_numeric_data.html#af618712b9f0dfae3b55989cd89c7e2a7"> 13</a></span>&#160;<span class="keyword">@property</span> (readwrite, assign) <span class="keywordtype">size_t</span> sampleBytes;</div> <div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="interface_c_p_t_mutable_numeric_data.html#a88bb429e8afe9968a23202599d7e8a8a"> 14</a></span>&#160;<span class="keyword">@property</span> (readwrite, assign) <a class="codeRef" href="https://developer.apple.com/library/ios/#documentation/corefoundation/Reference/CFByteOrderUtils/Reference/reference.html">CFByteOrder</a> byteOrder;</div> <div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;</div> <div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;-(void)convertToType:(<a class="code" href="_c_p_t_numeric_data_type_8h.html#ac29c0caa2ac30299b2dd472b299ac663">CPTDataTypeFormat</a>)newDataType sampleBytes:(<span class="keywordtype">size_t</span>)newSampleBytes byteOrder:(<a class="codeRef" href="https://developer.apple.com/library/ios/#documentation/corefoundation/Reference/CFByteOrderUtils/Reference/reference.html">CFByteOrder</a>)newByteOrder;</div> <div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;</div> <div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="keyword">@end</span></div> <div class="ttc" id="_c_p_t_numeric_data_type_8h_html"><div class="ttname"><a href="_c_p_t_numeric_data_type_8h.html">CPTNumericDataType.h</a></div></div> <div class="ttc" id="category_c_p_t_mutable_numeric_data_07_type_conversion_08_html"><div class="ttname"><a href="category_c_p_t_mutable_numeric_data_07_type_conversion_08.html">CPTMutableNumericData(TypeConversion)</a></div><div class="ttdoc">Type conversion methods for CPTMutableNumericData. </div><div class="ttdef"><b>Definition:</b> CPTMutableNumericData+TypeConversion.h:7</div></div> <div class="ttc" id="_c_p_t_mutable_numeric_data_8h_html"><div class="ttname"><a href="_c_p_t_mutable_numeric_data_8h.html">CPTMutableNumericData.h</a></div></div> <div class="ttc" id="reference_html"><div class="ttname"><a href="https://developer.apple.com/library/ios/#documentation/corefoundation/Reference/CFByteOrderUtils/Reference/reference.html">CFByteOrder</a></div></div> <div class="ttc" id="struct_c_p_t_numeric_data_type_html"><div class="ttname"><a href="struct_c_p_t_numeric_data_type.html">CPTNumericDataType</a></div><div class="ttdoc">Structure that describes the encoding of numeric data samples. </div><div class="ttdef"><b>Definition:</b> CPTNumericDataType.h:29</div></div> <div class="ttc" id="_c_p_t_numeric_data_type_8h_html_ac29c0caa2ac30299b2dd472b299ac663"><div class="ttname"><a href="_c_p_t_numeric_data_type_8h.html#ac29c0caa2ac30299b2dd472b299ac663">CPTDataTypeFormat</a></div><div class="ttdeci">CPTDataTypeFormat</div><div class="ttdoc">Enumeration of data formats for numeric data. </div><div class="ttdef"><b>Definition:</b> CPTNumericDataType.h:6</div></div> </div><!-- fragment --></div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="dir_74389ed8173ad57b461b9d623a1f3867.html">Source</a></li><li class="navelem"><a class="el" href="_c_p_t_mutable_numeric_data_09_type_conversion_8h.html">CPTMutableNumericData+TypeConversion.h</a></li> <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.5 </li> </ul> </div> </body> </html>
LiDechao/core-plot
documentation/html/iOS/_c_p_t_mutable_numeric_data_09_type_conversion_8h_source.html
HTML
bsd-3-clause
8,346
<!DOCTYPE html> <html> <body> %username% edited item at board %boardname%:<br> %title%<br> %description%<br> %duedate%<br> %assignee%<br> %category%<br> %points%<br> %position%<br> <a href="http://%hostname%/#/boards/%boardid%">Navigate to board!</a> </body> </html>
woodworker/TaskBoard
api/mail_templates/editItem.html
HTML
mit
268
<!DOCTYPE html> <html class="minimal"> <title>Canvas test: 2d.pattern.paint.norepeat.outside</title> <script src="../tests.js"></script> <link rel="stylesheet" href="../tests.css"> <link rel="prev" href="minimal.2d.pattern.paint.norepeat.basic.html" title="2d.pattern.paint.norepeat.basic"> <link rel="next" href="minimal.2d.pattern.paint.norepeat.coord1.html" title="2d.pattern.paint.norepeat.coord1"> <body> <p id="passtext">Pass</p> <p id="failtext">Fail</p> <!-- TODO: handle "script did not run" case --> <p class="output">These images should be identical:</p> <canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> <p class="output expectedtext">Expected output:<p><img src="green-100x50.png" class="output expected" id="expected" alt=""> <ul id="d"></ul> <script> _addTest(function(canvas, ctx) { ctx.fillStyle = '#f00'; ctx.fillRect(0, 0, 100, 50); var img = document.getElementById('red.png'); var pattern = ctx.createPattern(img, 'no-repeat'); ctx.fillStyle = '#0f0'; ctx.fillRect(0, 0, 100, 50); ctx.fillStyle = pattern; ctx.fillRect(0, -50, 100, 50); ctx.fillRect(-100, 0, 100, 50); ctx.fillRect(0, 50, 100, 50); ctx.fillRect(100, 0, 100, 50); _assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); _assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); _assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); _assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); }); </script> <img src="../images/red.png" id="red.png" class="resource">
corbanbrook/webgl-2d
test/philip.html5.org/tests/minimal.2d.pattern.paint.norepeat.outside.html
HTML
mit
1,549
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta name="generator" content="JsDoc Toolkit" /> <title>JsDoc Reference - _global_</title> <link rel="stylesheet" href="../static/default.css" type="text/css" media="screen" charset="utf-8" /> </head> <body> <!-- ============================== header ================================= --> <!-- begin static/header.html --> <div id="header"> </div> <!-- end static/header.html --> <!-- ============================== classes index ============================ --> <div id="index"> <div id="docs"> </div> <h2>Index</h2> <ul class="classList"> <li><a href="../files.html">File Index</a></li> <li><a href="../index.html">Class Index</a></li> <li><a href="../symbolindex.html">Symbol Index</a></li> </ul> <h2>Classes</h2> <ul class="classList"> <li><i><a href="../symbols/_global_.html">_global_</a></i></li> <li><a href="../symbols/hasher.html">hasher</a></li> </ul> </div> <div id="symbolList"> <!-- constructor list --> <!-- end constructor list --> <!-- properties list --> <!-- end properties list --> <!-- function summary --> <!-- end function summary --> <!-- events summary --> <!-- end events summary --> </div> <div id="content"> <!-- ============================== class title ============================ --> <h1 class="classTitle"> Built-In Namespace _global_ </h1> <!-- ============================== class summary ========================== --> <p class="description"> </p> <!-- ============================== constructor details ==================== --> <!-- ============================== field details ========================== --> <!-- ============================== method details ========================= --> <!-- ============================== event details ========================= --> <hr /> </div> <!-- ============================== footer ================================= --> <div class="fineprint" style="clear:both;text-align:center"> Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Mon Nov 11 2013 15:19:04 GMT-0200 (BRST) | template based on Steffen Siering <a href="http://github.com/urso/jsdoc-simple">jsdoc-simple</a>. </div> </body> </html>
bluecloudy/Critical-Map
src/bower_modules/hasher/dist/docs/symbols/_global_.html
HTML
mit
2,831
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 1.0 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="stylesheet" href="../includes/main.css" type="text/css"> <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon"> <title>Apache CloudStack | The Power Behind Your Cloud</title> </head> <body> <div id="insidetopbg"> <div id="inside_wrapper"> <div class="uppermenu_panel"> <div class="uppermenu_box"></div> </div> <div id="main_master"> <div id="inside_header"> <div class="header_top"> <a class="cloud_logo" href="http://cloudstack.org"></a> <div class="mainemenu_panel"></div> </div> </div> <div id="main_content"> <div class="inside_apileftpanel"> <div class="inside_contentpanel" style="width:930px;"> <div class="api_titlebox"> <div class="api_titlebox_left"> <span> Apache CloudStack v4.8.0 Root Admin API Reference </span> <p></p> <h1>deleteProject</h1> <p>Deletes a project</p> </div> <div class="api_titlebox_right"> <a class="api_backbutton" href="../TOC_Root_Admin.html"></a> </div> </div> <div class="api_tablepanel"> <h2>Request parameters</h2> <table class="apitable"> <tr class="hed"> <td style="width:200px;"><strong>Parameter Name</strong></td><td style="width:500px;">Description</td><td style="width:180px;">Required</td> </tr> <tr> <td style="width:200px;"><strong>id</strong></td><td style="width:500px;"><strong>id of the project to be deleted</strong></td><td style="width:180px;"><strong>true</strong></td> </tr> </table> </div> <div class="api_tablepanel"> <h2>Response Tags</h2> <table class="apitable"> <tr class="hed"> <td style="width:200px;"><strong>Response Name</strong></td><td style="width:500px;">Description</td> </tr> <tr> <td style="width:200px;"><strong>displaytext</strong></td><td style="width:500px;">any text associated with the success or failure</td> </tr> <tr> <td style="width:200px;"><strong>success</strong></td><td style="width:500px;">true if operation is executed successfully</td> </tr> </table> </div> </div> </div> </div> </div> <div id="footer"> <div id="comments_thread"> <script type="text/javascript" src="https://comments.apache.org/show_comments.lua?site=test" async="true"></script> <noscript> <iframe width="930" height="500" src="https://comments.apache.org/iframe.lua?site=test&amp;page=4.2.0/rootadmin"></iframe> </noscript> </div> <div id="footer_mainmaster"> <p>Copyright &copy; 2016 The Apache Software Foundation, Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0.</a> <br> Apache, CloudStack, Apache CloudStack, the Apache CloudStack logo, the CloudMonkey logo and the Apache feather logo are trademarks of The Apache Software Foundation.</p> </div> </div> </div> </div> </body> </html>
apache/cloudstack-www
source/api/apidocs-4.8/root_admin/deleteProject.html
HTML
apache-2.0
2,932
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.6.0_31) on Mon Jul 22 15:25:23 PDT 2013 --> <TITLE> Uses of Class org.apache.hadoop.mapred.join.ResetableIterator.EMPTY (Hadoop 1.2.1 API) </TITLE> <META NAME="date" CONTENT="2013-07-22"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Class org.apache.hadoop.mapred.join.ResetableIterator.EMPTY (Hadoop 1.2.1 API)"; } } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <HR> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../org/apache/hadoop/mapred/join/ResetableIterator.EMPTY.html" title="class in org.apache.hadoop.mapred.join"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;PREV&nbsp; &nbsp;NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../../index.html?org/apache/hadoop/mapred/join//class-useResetableIterator.EMPTY.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="ResetableIterator.EMPTY.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <CENTER> <H2> <B>Uses of Class<br>org.apache.hadoop.mapred.join.ResetableIterator.EMPTY</B></H2> </CENTER> No usage of org.apache.hadoop.mapred.join.ResetableIterator.EMPTY <P> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../org/apache/hadoop/mapred/join/ResetableIterator.EMPTY.html" title="class in org.apache.hadoop.mapred.join"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;PREV&nbsp; &nbsp;NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../../index.html?org/apache/hadoop/mapred/join//class-useResetableIterator.EMPTY.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="ResetableIterator.EMPTY.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> Copyright &copy; 2009 The Apache Software Foundation </BODY> </HTML>
determinedcheetahs/cheetah_juniper
hadoop/docs/api/org/apache/hadoop/mapred/join/class-use/ResetableIterator.EMPTY.html
HTML
apache-2.0
6,195
<div style="width: 600px"> <div class="delayed-image-load" data-src="base/test/fixtures/interpolated/B-{width}.jpg"></div> </div> <div style="width: 600px"> <div class="delayed-image-load" data-src="base/test/fixtures/{width}/{width}.jpg" data-width="1024"></div> </div>
kendrick-k/Imager.js
test/fixtures/data-src-interpolate.html
HTML
apache-2.0
276
<!DOCTYPE html> <html> <body> <script src="../../resources/js-test.js"></script> <a id="id1" name="name1"></a> <a id="id2" name="name1"></a> <a id="id3"></a> <a id="id4" name="name4"></a> <a name="name5"></a> <a id="id4" name="name6"></a> <script> description("This tests verifies the enumerated properties on HTMLCollection and their order."); var testLink = document.getElementById("testLink"); var htmlCollection = document.getElementsByTagName("a"); shouldBe("htmlCollection.__proto__", "HTMLCollection.prototype"); shouldBe("htmlCollection.length", "6"); // As per http://dom.spec.whatwg.org/#htmlcollection: // - The object's supported property indices are the numbers in the range zero to one less than the // number of nodes represented by the collection. If there are no such elements, then there are no // supported property indices. // - The supported property names are the values from the list returned by these steps: // 1. Let result be an empty list. // 2. For each element represented by the collection, in tree order, run these substeps: // 1. If element has an ID which is neither the empty string nor is in result, append element's ID to result. // 2. If element is in the HTML namespace and has a name attribute whose value is neither the empty string // nor is in result, append element's name attribute value to result. // 3. Return result. var expectedEnumeratedProperties = ["0", "1" , "2", "3", "4", "5", "length", "id1", "name1", "id2", "id3", "id4", "name4", "name5", "name6", "item", "namedItem"]; var enumeratedProperties = []; for (var property in htmlCollection) { enumeratedProperties[enumeratedProperties.length] = property; } shouldBe("enumeratedProperties", "expectedEnumeratedProperties"); </script> </body> </html>
modulexcite/blink
LayoutTests/fast/dom/htmlcollection-enumerated-properties.html
HTML
bsd-3-clause
1,790
<html> <body> <select aria-label="selection_list" size="10" id="listbox"> <optgroup label="Enabled" id="listbox_optgroup_enabled"> <option value="listbox_e1" id="listbox_option_enabled_one">One</option> <option value="listbox_e2">Two</option> <option value="listbox_e3">Three</option> <option value="listbox_e4">Four</option> </optgroup> </select> </body> </html>
scheib/chromium
content/test/data/accessibility/html/selection-container.html
HTML
bsd-3-clause
382
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>The "Artistic License" - dev.perl.org</title> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <link rel="stylesheet" type="text/css" href="http://cdn.pimg.net/css/leostyle.vffcd481.css"> <link rel="stylesheet" type="text/css" href="http://cdn.pimg.net/css/dev.v5f7fab3.css"> <link rel="shortcut icon" href="http://cdn.pimg.net/favicon.v249dfa7.ico"> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript" charset="utf-8"></script> <script src="http://cdn.pimg.net/js/jquery.corner.v84b7681.js" type="text/javascript" charset="utf-8"></script> <script src="http://cdn.pimg.net/js/leo.v9872b9c.js" type="text/javascript" charset="utf-8"></script> </head> <body> <div id="header_holder"> <div class="sub_holder"> <div id="page_image"></div> <h1> The "Artistic License" </h1> <div id="logo_holder"> <a href="/"><img src="http://cdn.pimg.net/images/camel_head.v25e738a.png" id="logo" alt="Perl programming" height="65" align="right" /></a> <span>dev.perl.org</span> </div> </div> </div> <div id="nav"> <div class="sub_holder"> <ul> <li> <a href="/">Home</a> </li> <li class=""> <a href="/perl5/">Perl 5</a> </li> <li class=""> <a href="/perl6/">Perl 6</a> </li> </ul> </div> </div> <div id="crum_holder"> <div id="crum" class="sub_holder"> &nbsp; </div> </div> <div id="content_holder"> <div id="content" class="sub_holder"> <div id="main"> <PRE> <A style="float:right" HREF="http://www.opensource.org/licenses/artistic-license.php" ><IMG BORDER=0 SRC="osi-certified-90x75.gif" ></A> The "Artistic License" Preamble The intent of this document is to state the conditions under which a Package may be copied, such that the Copyright Holder maintains some semblance of artistic control over the development of the package, while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, plus the right to make reasonable modifications. Definitions: "Package" refers to the collection of files distributed by the Copyright Holder, and derivatives of that collection of files created through textual modification. "Standard Version" refers to such a Package if it has not been modified, or has been modified in accordance with the wishes of the Copyright Holder as specified below. "Copyright Holder" is whoever is named in the copyright or copyrights for the package. "You" is you, if you're thinking about copying or distributing this Package. "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, but only to the computing community at large as a market that must bear the fee.) "Freely Available" means that no fee is charged for the item itself, though there may be fees involved in handling the item. It also means that recipients of the item may redistribute it under the same conditions they received it. 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, provided that you duplicate all of the original copyright notices and associated disclaimers. 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. A Package modified in such a way shall still be considered the Standard Version. 3. You may otherwise modify your copy of this Package in any way, provided that you insert a prominent notice in each changed file stating how and when you changed that file, and provided that you do at least ONE of the following: a) place your modifications in the Public Domain or otherwise make them Freely Available, such as by posting said modifications to Usenet or an equivalent medium, or placing the modifications on a major archive site such as uunet.uu.net, or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. b) use the modified Package only within your corporation or organization. c) rename any non-standard executables so the names do not conflict with standard executables, which must also be provided, and provide a separate manual page for each non-standard executable that clearly documents how it differs from the Standard Version. d) make other distribution arrangements with the Copyright Holder. 4. You may distribute the programs of this Package in object code or executable form, provided that you do at least ONE of the following: a) distribute a Standard Version of the executables and library files, together with instructions (in the manual page or equivalent) on where to get the Standard Version. b) accompany the distribution with the machine-readable source of the Package with your modifications. c) give non-standard executables non-standard names, and clearly document the differences in manual pages (or equivalent), together with instructions on where to get the Standard Version. d) make other distribution arrangements with the Copyright Holder. 5. You may charge a reasonable copying fee for any distribution of this Package. You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. You may embed this Package's interpreter within an executable of yours (by linking); this shall be construed as a mere form of aggregation, provided that the complete Standard Version of the interpreter is so embedded. 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically fall under the copyright of this Package, but belong to whoever generated them, and may be sold commercially, and may be aggregated with this Package. If such scripts or library files are aggregated with this Package via the so-called "undump" or "unexec" methods of producing a binary executable image, then distribution of such an image shall neither be construed as a distribution of this Package nor shall it fall under the restrictions of Paragraphs 3 and 4, provided that you do not represent such an executable image as a Standard Version of this Package. 7. C subroutines (or comparably compiled subroutines in other languages) supplied by you and linked into this Package in order to emulate subroutines and variables of the language defined by this Package shall not be considered part of this Package, but are the equivalent of input as in Paragraph 6, provided these subroutines do not change the language in any way that would cause it to fail the regression tests for the language. 8. Aggregation of this Package with a commercial distribution is always permitted provided that the use of this Package is embedded; that is, when no overt attempt is made to make this Package's interfaces visible to the end user of the commercial distribution. Such use shall not be construed as a distribution of this Package. 9. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. 10. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. The End </PRE> </div> <div id="short_lists" class="short_lists"> <div id="spacer_for_google"></div> </div> </div> </div> <div style="clear:both"></div> <div id="footer"> <div class="sub_holder"> <p class="sites"> &nbsp;When you need <em>Perl</em> think <strong>Perl.org</strong>: <a href="http://www.perl.org/">www</a> | <a href="http://blogs.perl.org/">blogs</a> | <a href="http://jobs.perl.org/">jobs</a> | <a href="http://learn.perl.org/">learn</a> <!-- | <a href="http://lists.perl.org/">lists</a> --> | <a href="http://dev.perl.org/">dev</a> </p> <p class="copyright"> <a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/3.0/us/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-nd/3.0/us/80x15.png"></a> © 2002-2011 Perl.org | <a href="/siteinfo.html">Site Info</a> </p> <div style="clear:both"></div> <div id="google_translate_element"></div><script type="text/javascript"> function googleTranslateElementInit() { new google.translate.TranslateElement({ pageLanguage: 'en', autoDisplay: false , gaTrack: true, gaId: 'UA-50555-6' }, 'google_translate_element'); } </script><script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit" type="text/javascript"> </script> </div> </div> <!--[if lt IE 7]> <div style='border: 1px solid #F7941D; background: #FEEFDA; text-align: center; clear: both; height: 75px; position: relative; margin-top: 2em;'> <div style='position: absolute; right: 3px; top: 3px; font-family: courier new; font-weight: bold;'><a href='#' onclick='javascript:this.parentNode.parentNode.style.display="none"; return false;'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-cornerx.jpg' style='border: none;' alt='Close this notice'/></a></div> <div style='width: 640px; margin: 0 auto; text-align: left; padding: 0; overflow: hidden; color: black;'> <div style='width: 75px; float: left;'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-warning.jpg' alt='Warning!'/></div> <div style='width: 275px; float: left; font-family: Arial, sans-serif;'> <div style='font-size: 14px; font-weight: bold; margin-top: 12px;'>You are using an outdated browser</div> <div style='font-size: 12px; margin-top: 6px; line-height: 12px;'>For a better experience using this site, please upgrade to a modern web browser.</div> </div> <div style='width: 75px; float: left;'><a href='http://www.firefox.com' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-firefox.jpg' style='border: none;' alt='Get Firefox 3.5'/></a></div> <div style='width: 75px; float: left;'><a href='http://www.browserforthebetter.com/download.html' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-ie8.jpg' style='border: none;' alt='Get Internet Explorer 8'/></a></div> <div style='width: 73px; float: left;'><a href='http://www.apple.com/safari/download/' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-safari.jpg' style='border: none;' alt='Get Safari 4'/></a></div> <div style='float: left;'><a href='http://www.google.com/chrome' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-chrome.jpg' style='border: none;' alt='Get Google Chrome'/></a></div> </div> </div> <![endif]--> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-50555-6']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; ga.setAttribute('async', 'true'); document.documentElement.firstChild.appendChild(ga); })(); </script> </body> </html>
Jarob22/sc2_app_fyp_backend
vendor/bundle/ruby/1.9.1/gems/diff-lcs-1.1.3/docs/artistic.html
HTML
mit
12,246
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>basic_raw_socket::get_implementation (2 of 2 overloads)</title> <link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> <link rel="home" href="../../../../boost_asio.html" title="Boost.Asio"> <link rel="up" href="../get_implementation.html" title="basic_raw_socket::get_implementation"> <link rel="prev" href="overload1.html" title="basic_raw_socket::get_implementation (1 of 2 overloads)"> <link rel="next" href="../get_io_service.html" title="basic_raw_socket::get_io_service"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td> <td align="center"><a href="../../../../../../index.html">Home</a></td> <td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td> <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> <td align="center"><a href="../../../../../../more/index.htm">More</a></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="overload1.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../get_implementation.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../boost_asio.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../get_io_service.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="boost_asio.reference.basic_raw_socket.get_implementation.overload2"></a><a class="link" href="overload2.html" title="basic_raw_socket::get_implementation (2 of 2 overloads)">basic_raw_socket::get_implementation (2 of 2 overloads)</a> </h5></div></div></div> <p> <span class="emphasis"><em>Inherited from basic_io_object.</em></span> </p> <p> Get the underlying implementation of the I/O object. </p> <pre class="programlisting"><span class="keyword">const</span> <span class="identifier">implementation_type</span> <span class="special">&amp;</span> <span class="identifier">get_implementation</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span> </pre> </div> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright &#169; 2003-2012 Christopher M. Kohlhoff<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> </div></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="overload1.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../get_implementation.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../boost_asio.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../get_io_service.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html>
mxrrow/zaicoin
src/deps/boost/doc/html/boost_asio/reference/basic_raw_socket/get_implementation/overload2.html
HTML
mit
3,658
{{<div}} {{$div}} {{>template}} {{/div}} {{/div}}
xuvw/GRMustache
src/tests/Public/v7.0/Suites/spullara:mustache.java/GRMustacheJavaSuites/partialsubpartial.html
HTML
mit
49
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>DocStrap Module: ink/collector</title> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link type="text/css" rel="stylesheet" href="styles/sunlight.default.css"> <link type="text/css" rel="stylesheet" href="styles/site.united.css"> </head> <body> <div class="container-fluid"> <div class="navbar navbar-fixed-top navbar-inverse"> <div class="navbar-inner"> <a class="brand" href="index.html">DocStrap</a> <ul class="nav"> <li class="dropdown"> <a href="modules.list.html" class="dropdown-toggle" data-toggle="dropdown">Modules<b class="caret"></b></a> <ul class="dropdown-menu "> <li> <a href="module-base.html">base</a> </li> <li> <a href="chains_.html">base/chains</a> </li> <li> <a href="binder.html">documents/binder</a> </li> <li> <a href="model_.html">documents/model</a> </li> <li> <a href="probe.html">documents/probe</a> </li> <li> <a href="schema_.html">documents/schema</a> </li> <li> <a href="collector.html">ink/collector</a> </li> <li> <a href="bussable_.html">mixins/bussable</a> </li> <li> <a href="signalable_.html">mixins/signalable</a> </li> <li> <a href="format.html">strings/format</a> </li> <li> <a href="logger.html">utils/logger</a> </li> </ul> </li> <li class="dropdown"> <a href="classes.list.html" class="dropdown-toggle" data-toggle="dropdown">Classes<b class="caret"></b></a> <ul class="dropdown-menu "> <li> <a href="base.html">base</a> </li> <li> <a href="chains.html">base/chains</a> </li> <li> <a href="model.html">documents/model</a> </li> <li> <a href="probe.queryOperators.html">documents/probe.queryOperators</a> </li> <li> <a href="probe.updateOperators.html">documents/probe.updateOperators</a> </li> <li> <a href="collector-ACollector.html">ink/collector~ACollector</a> </li> <li> <a href="collector-CollectorBase_.html">ink/collector~CollectorBase</a> </li> <li> <a href="collector-OCollector.html">ink/collector~OCollector</a> </li> <li> <a href="signalable-Signal.html">mixins/signalable~Signal</a> </li> <li> <a href="logger.Logger.html">utils/logger.Logger</a> </li> </ul> </li> <li class="dropdown"> <a href="mixins.list.html" class="dropdown-toggle" data-toggle="dropdown">Mixins<b class="caret"></b></a> <ul class="dropdown-menu "> <li> <a href="schema.html">documents/schema</a> </li> <li> <a href="bussable.html">mixins/bussable</a> </li> <li> <a href="signalable.html">mixins/signalable</a> </li> </ul> </li> <li class="dropdown"> <a href="tutorials.list.html" class="dropdown-toggle" data-toggle="dropdown">Tutorials<b class="caret"></b></a> <ul class="dropdown-menu "> <li> <a href="tutorial-Teeth.html">Brush Teeth</a> </li> <li> <a href="tutorial-Car.html">Drive Car</a> </li> <li> <a href="tutorial-Test.html">Fence Test</a> </li> </ul> </li> <li class="dropdown"> <a href="global.html" class="dropdown-toggle" data-toggle="dropdown">Global<b class="caret"></b></a> <ul class="dropdown-menu "> <li> <a href="global.html#utils/logger">utils/logger</a> </li> </ul> </li> </ul> </div> </div> <div class="row-fluid"> <div class="span8"> <div id="main"> <h1 class="page-title">Module: ink/collector</h1> <section> <header> <h2> ink/collector </h2> </header> <article> <div class="container-overview"> <div class="description"><p>An object and array collector</p></div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"> <ul class="dummy"> <li> <a href="collector.js.html">documents/collector.js</a>, <a href="collector.js.html#sunlight-1-line-2">line 2</a> </li> </ul> </dd> </dl> </div> <h3 class="subsection-title">Classes</h3> <dl> <dt><a href="collector-ACollector.html">ACollector</a></dt> <dd></dd> <dt><a href="collector-CollectorBase_.html">CollectorBase</a></dt> <dd></dd> <dt><a href="collector-OCollector.html">OCollector</a></dt> <dd></dd> </dl> <h3 class="subsection-title">Members</h3> <dl> <dt class="name" id="difference"> <h4><span class="type-signature"></span>difference<span class="type-signature"></span></h4> </dt> <dd> <div class="description"> <p>Creates an array of array elements not present in the other arrays using strict equality for comparisons, i.e. ===.</p> </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"> <ul class="dummy"> <li> <a href="collector.js.html">documents/collector.js</a>, <a href="collector.js.html#sunlight-1-line-278">line 278</a> </li> </ul> </dd> </dl> </dd> <dt class="name" id="head"> <h4><span class="type-signature"></span>head<span class="type-signature"></span></h4> </dt> <dd> <div class="description"> <p>Gets the first n values of the array</p> </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"> <ul class="dummy"> <li> <a href="collector.js.html">documents/collector.js</a>, <a href="collector.js.html#sunlight-1-line-290">line 290</a> </li> </ul> </dd> </dl> </dd> <dt class="name" id="heap"> <h4><span class="type-signature"></span>heap<span class="type-signature"> :object|array</span></h4> </dt> <dd> <div class="description"> <p>The collection that being managed</p> </div> <h5>Type:</h5> <ul> <li> <span class="param-type">object</span> | <span class="param-type">array</span> </li> </ul> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"> <ul class="dummy"> <li> <a href="collector.js.html">documents/collector.js</a>, <a href="collector.js.html#sunlight-1-line-26">line 26</a> </li> </ul> </dd> </dl> </dd> <dt class="name" id="tail"> <h4><span class="type-signature"></span>tail<span class="type-signature"></span></h4> </dt> <dd> <div class="description"> <p>This method gets all but the first values of array</p> </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"> <ul class="dummy"> <li> <a href="collector.js.html">documents/collector.js</a>, <a href="collector.js.html#sunlight-1-line-284">line 284</a> </li> </ul> </dd> </dl> </dd> </dl> <h3 class="subsection-title">Methods</h3> <dl> <dt> <h4 class="name" id="collect"><span class="type-signature">&lt;static> </span>collect<span class="signature">(obj)</span><span class="type-signature"> &rarr; {ACollector|OCollector}</span></h4> </dt> <dd> <div class="description"> <p>Collect an object</p> </div> <h5>Parameters:</h5> <table class="params table table-striped"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>obj</code></td> <td class="type"> <span class="param-type">array</span> | <span class="param-type">object</span> </td> <td class="description last"><p>What to collect</p></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"> <ul class="dummy"> <li> <a href="collector.js.html">documents/collector.js</a>, <a href="collector.js.html#sunlight-1-line-363">line 363</a> </li> </ul> </dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">ACollector</span> | <span class="param-type">OCollector</span> </dd> </dl> </dd> <dt> <h4 class="name" id="add"><span class="type-signature">&lt;inner> </span>add<span class="signature">(item)</span><span class="type-signature"></span></h4> </dt> <dd> <div class="description"> <p>Adds to the top of the collection</p> </div> <h5>Parameters:</h5> <table class="params table table-striped"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>item</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last"><p>The item to add to the collection. Only one item at a time can be added</p></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"> <ul class="dummy"> <li> <a href="collector.js.html">documents/collector.js</a>, <a href="collector.js.html#sunlight-1-line-296">line 296</a> </li> </ul> </dd> </dl> </dd> <dt> <h4 class="name" id="add"><span class="type-signature">&lt;inner> </span>add<span class="signature">(key, item)</span><span class="type-signature"></span></h4> </dt> <dd> <div class="description"> <p>Adds an item to the collection</p> </div> <h5>Parameters:</h5> <table class="params table table-striped"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>key</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last"><p>The key to use for the item being added.</p></td> </tr> <tr> <td class="name"><code>item</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last"><p>The item to add to the collection. The item is not iterated so that you could add bundled items to the collection</p></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"> <ul class="dummy"> <li> <a href="collector.js.html">documents/collector.js</a>, <a href="collector.js.html#sunlight-1-line-56">line 56</a> </li> </ul> </dd> </dl> </dd> <dt> <h4 class="name" id="append"><span class="type-signature">&lt;inner> </span>append<span class="signature">(item)</span><span class="type-signature"></span></h4> </dt> <dd> <div class="description"> <p>Add to the bottom of the list</p> </div> <h5>Parameters:</h5> <table class="params table table-striped"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>item</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last"><p>The item to add to the collection. Only one item at a time can be added</p></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"> <ul class="dummy"> <li> <a href="collector.js.html">documents/collector.js</a>, <a href="collector.js.html#sunlight-1-line-303">line 303</a> </li> </ul> </dd> </dl> </dd> <dt> <h4 class="name" id="at"><span class="type-signature">&lt;inner> </span>at<span class="signature">(args)</span><span class="type-signature"></span></h4> </dt> <dd> <div class="description"> <p>Creates an array of elements from the specified indexes, or keys, of the collection. Indexes may be specified as individual arguments or as arrays of indexes</p> </div> <h5>Parameters:</h5> <table class="params table table-striped"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>args</code></td> <td class="type"> <span class="param-type">indexes</span> </td> <td class="description last"><p>The indexes to use</p></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"> <ul class="dummy"> <li> <a href="collector.js.html">documents/collector.js</a>, <a href="collector.js.html#sunlight-1-line-324">line 324</a> </li> </ul> </dd> </dl> </dd> <dt> <h4 class="name" id="compact"><span class="type-signature">&lt;inner> </span>compact<span class="signature">()</span><span class="type-signature"></span></h4> </dt> <dd> <div class="description"> <p>Modifies the collection with all falsey values of array removed. The values false, null, 0, &quot;&quot;, undefined and NaN are all falsey.</p> </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"> <ul class="dummy"> <li> <a href="collector.js.html">documents/collector.js</a>, <a href="collector.js.html#sunlight-1-line-316">line 316</a> </li> </ul> </dd> </dl> </dd> <dt> <h4 class="name" id="countBy"><span class="type-signature">&lt;inner> </span>countBy<span class="signature">(<span class="optional">query</span>, iterator, <span class="optional">thisobj</span>)</span><span class="type-signature"> &rarr; {object}</span></h4> </dt> <dd> <div class="description"> <p>Creates an object composed of keys returned from running each element of the collection through the given callback. The corresponding value of each key is the number of times the key was returned by the callback.</p> </div> <h5>Parameters:</h5> <table class="params table table-striped"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Argument</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>query</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="attributes"> &lt;optional><br> </td> <td class="description last"><p>A query to evaluate. If you pass in a query, only the items that match the query are iterated over.</p></td> </tr> <tr> <td class="name"><code>iterator</code></td> <td class="type"> <span class="param-type">function</span> </td> <td class="attributes"> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>thisobj</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="attributes"> &lt;optional><br> </td> <td class="description last"><p>The value of <code>this</code></p></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"> <ul class="dummy"> <li> <a href="collector.js.html">documents/collector.js</a>, <a href="collector.js.html#sunlight-1-line-138">line 138</a> </li> </ul> </dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">object</span> </dd> </dl> </dd> <dt> <h4 class="name" id="destroy"><span class="type-signature">&lt;inner> </span>destroy<span class="signature">()</span><span class="type-signature"></span></h4> </dt> <dd> <div class="description"> <p>Destructor called when the object is destroyed.</p> </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"> <ul class="dummy"> <li> <a href="collector.js.html">documents/collector.js</a>, <a href="collector.js.html#sunlight-1-line-241">line 241</a> </li> </ul> </dd> </dl> </dd> <dt> <h4 class="name" id="each"><span class="type-signature">&lt;inner> </span>each<span class="signature">(<span class="optional">query</span>, iterator, <span class="optional">thisobj</span>)</span><span class="type-signature"></span></h4> </dt> <dd> <div class="description"> <p>Iterate over each item in the collection, or a subset that matches a query. This supports two signatures: <code>.each(query, function)</code> and <code>.each(function)</code>. If you pass in a query, only the items that match the query are iterated over.</p> </div> <h5>Parameters:</h5> <table class="params table table-striped"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Argument</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>query</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="attributes"> &lt;optional><br> </td> <td class="description last"><p>A query to evaluate</p></td> </tr> <tr> <td class="name"><code>iterator</code></td> <td class="type"> <span class="param-type">function</span> </td> <td class="attributes"> </td> <td class="description last"><p>Function to execute against each item in the collection</p></td> </tr> <tr> <td class="name"><code>thisobj</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="attributes"> &lt;optional><br> </td> <td class="description last"><p>The value of <code>this</code></p></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"> <ul class="dummy"> <li> <a href="collector.js.html">documents/collector.js</a>, <a href="collector.js.html#sunlight-1-line-67">line 67</a> </li> </ul> </dd> </dl> </dd> <dt> <h4 class="name" id="flatten"><span class="type-signature">&lt;inner> </span>flatten<span class="signature">(<span class="optional">query</span>, iterator,, <span class="optional">thisobj</span>)</span><span class="type-signature"> &rarr; {number}</span></h4> </dt> <dd> <div class="description"> <p>Flattens a nested array (the nesting can be to any depth). If isShallow is truthy, array will only be flattened a single level. If callback is passed, each element of array is passed through a callback before flattening.</p> </div> <h5>Parameters:</h5> <table class="params table table-striped"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Argument</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>query</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="attributes"> &lt;optional><br> </td> <td class="description last"><p>A query to evaluate . If you pass in a query, only the items that match the query are iterated over.</p></td> </tr> <tr> <td class="name"><code>iterator,</code></td> <td class="type"> <span class="param-type">function</span> </td> <td class="attributes"> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>thisobj</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="attributes"> &lt;optional><br> </td> <td class="description last"><p>The value of <code>this</code></p></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"> <ul class="dummy"> <li> <a href="collector.js.html">documents/collector.js</a>, <a href="collector.js.html#sunlight-1-line-338">line 338</a> </li> </ul> </dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">number</span> </dd> </dl> </dd> <dt> <h4 class="name" id="groupBy"><span class="type-signature">&lt;inner> </span>groupBy<span class="signature">(<span class="optional">query</span>, iterator, <span class="optional">thisobj</span>)</span><span class="type-signature"> &rarr; {object}</span></h4> </dt> <dd> <div class="description"> <p>Creates an object composed of keys returned from running each element of the collection through the callback. The corresponding value of each key is an array of elements passed to callback that returned the key. The callback is invoked with three arguments: (value, index|key, collection).</p> </div> <h5>Parameters:</h5> <table class="params table table-striped"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Argument</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>query</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="attributes"> &lt;optional><br> </td> <td class="description last"><p>A query to evaluate . If you pass in a query, only the items that match the query are iterated over.</p></td> </tr> <tr> <td class="name"><code>iterator</code></td> <td class="type"> <span class="param-type">function</span> </td> <td class="attributes"> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>thisobj</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="attributes"> &lt;optional><br> </td> <td class="description last"><p>The value of <code>this</code></p></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"> <ul class="dummy"> <li> <a href="collector.js.html">documents/collector.js</a>, <a href="collector.js.html#sunlight-1-line-157">line 157</a> </li> </ul> </dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">object</span> </dd> </dl> </dd> <dt> <h4 class="name" id="index"><span class="type-signature">&lt;inner> </span>index<span class="signature">(key)</span><span class="type-signature"> &rarr; {*}</span></h4> </dt> <dd> <div class="description"> <p>Gets an items by its index</p> </div> <h5>Parameters:</h5> <table class="params table table-striped"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>key</code></td> <td class="type"> <span class="param-type">number</span> </td> <td class="description last"><p>The index to get</p></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"> <ul class="dummy"> <li> <a href="collector.js.html">documents/collector.js</a>, <a href="collector.js.html#sunlight-1-line-352">line 352</a> </li> </ul> </dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">*</span> </dd> </dl> </dd> <dt> <h4 class="name" id="key"><span class="type-signature">&lt;inner> </span>key<span class="signature">(key)</span><span class="type-signature"> &rarr; {*}</span></h4> </dt> <dd> <div class="description"> <p>Get a record by key</p> </div> <h5>Parameters:</h5> <table class="params table table-striped"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>key</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last"><p>The key of the record to get</p></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"> <ul class="dummy"> <li> <a href="collector.js.html">documents/collector.js</a>, <a href="collector.js.html#sunlight-1-line-257">line 257</a> </li> </ul> </dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">*</span> </dd> </dl> </dd> <dt> <h4 class="name" id="map"><span class="type-signature">&lt;inner> </span>map<span class="signature">(<span class="optional">query</span>, iterator, <span class="optional">thisobj</span>)</span><span class="type-signature"></span></h4> </dt> <dd> <div class="description"> <p>Maps the contents to an array by iterating over it and transforming it. You supply the iterator. Supports two signatures: <code>.map(query, function)</code> and <code>.map(function)</code>. If you pass in a query, only the items that match the query are iterated over.</p> </div> <h5>Parameters:</h5> <table class="params table table-striped"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Argument</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>query</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="attributes"> &lt;optional><br> </td> <td class="description last"><p>A query to evaluate</p></td> </tr> <tr> <td class="name"><code>iterator</code></td> <td class="type"> <span class="param-type">function</span> </td> <td class="attributes"> </td> <td class="description last"><p>Function to execute against each item in the collection</p></td> </tr> <tr> <td class="name"><code>thisobj</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="attributes"> &lt;optional><br> </td> <td class="description last"><p>The value of <code>this</code></p></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"> <ul class="dummy"> <li> <a href="collector.js.html">documents/collector.js</a>, <a href="collector.js.html#sunlight-1-line-99">line 99</a> </li> </ul> </dd> </dl> </dd> <dt> <h4 class="name" id="max"><span class="type-signature">&lt;inner> </span>max<span class="signature">(<span class="optional">query</span>, iterator, <span class="optional">thisobj</span>)</span><span class="type-signature"> &rarr; {number}</span></h4> </dt> <dd> <div class="description"> <p>Retrieves the maximum value of an array. If callback is passed, it will be executed for each value in the array to generate the criterion by which the value is ranked.</p> </div> <h5>Parameters:</h5> <table class="params table table-striped"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Argument</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>query</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="attributes"> &lt;optional><br> </td> <td class="description last"><p>A query to evaluate . If you pass in a query, only the items that match the query are iterated over.</p></td> </tr> <tr> <td class="name"><code>iterator</code></td> <td class="type"> <span class="param-type">function</span> </td> <td class="attributes"> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>thisobj</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="attributes"> &lt;optional><br> </td> <td class="description last"><p>The value of <code>this</code></p></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"> <ul class="dummy"> <li> <a href="collector.js.html">documents/collector.js</a>, <a href="collector.js.html#sunlight-1-line-211">line 211</a> </li> </ul> </dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">number</span> </dd> </dl> </dd> <dt> <h4 class="name" id="min"><span class="type-signature">&lt;inner> </span>min<span class="signature">(<span class="optional">query</span>, iterator, <span class="optional">thisobj</span>)</span><span class="type-signature"> &rarr; {number}</span></h4> </dt> <dd> <div class="description"> <p>Retrieves the minimum value of an array. If callback is passed, it will be executed for each value in the array to generate the criterion by which the value is ranked.</p> </div> <h5>Parameters:</h5> <table class="params table table-striped"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Argument</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>query</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="attributes"> &lt;optional><br> </td> <td class="description last"><p>A query to evaluate . If you pass in a query, only the items that match the query are iterated over.</p></td> </tr> <tr> <td class="name"><code>iterator</code></td> <td class="type"> <span class="param-type">function</span> </td> <td class="attributes"> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>thisobj</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="attributes"> &lt;optional><br> </td> <td class="description last"><p>The value of <code>this</code></p></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"> <ul class="dummy"> <li> <a href="collector.js.html">documents/collector.js</a>, <a href="collector.js.html#sunlight-1-line-229">line 229</a> </li> </ul> </dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">number</span> </dd> </dl> </dd> <dt> <h4 class="name" id="pluck"><span class="type-signature">&lt;inner> </span>pluck<span class="signature">(<span class="optional">query</span>, property)</span><span class="type-signature"> &rarr; {*}</span></h4> </dt> <dd> <div class="description"> <p>Reduce the collection to a single value. Supports two signatures: <code>.pluck(query, function)</code> and <code>.pluck(function)</code></p> </div> <h5>Parameters:</h5> <table class="params table table-striped"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Argument</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>query</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="attributes"> &lt;optional><br> </td> <td class="description last"><p>The query to evaluate. If you pass in a query, only the items that match the query are iterated over.</p></td> </tr> <tr> <td class="name"><code>property</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="attributes"> </td> <td class="description last"><p>The property that will be 'plucked' from the contents of the collection</p></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"> <ul class="dummy"> <li> <a href="collector.js.html">documents/collector.js</a>, <a href="collector.js.html#sunlight-1-line-174">line 174</a> </li> </ul> </dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">*</span> </dd> </dl> </dd> <dt> <h4 class="name" id="push"><span class="type-signature">&lt;inner> </span>push<span class="signature">(item)</span><span class="type-signature"></span></h4> </dt> <dd> <div class="description"> <p>Add an item to the top of the list. This is identical to <code>add</code>, but is provided for stack semantics</p> </div> <h5>Parameters:</h5> <table class="params table table-striped"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>item</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last"><p>The item to add to the collection. Only one item at a time can be added</p></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"> <ul class="dummy"> <li> <a href="collector.js.html">documents/collector.js</a>, <a href="collector.js.html#sunlight-1-line-310">line 310</a> </li> </ul> </dd> </dl> </dd> <dt> <h4 class="name" id="reduce"><span class="type-signature">&lt;inner> </span>reduce<span class="signature">(<span class="optional">query</span>, iterator, <span class="optional">accumulator</span>, <span class="optional">thisobj</span>)</span><span class="type-signature"> &rarr; {*}</span></h4> </dt> <dd> <div class="description"> <p>Reduces a collection to a value which is the accumulated result of running each element in the collection through the callback, where each successive callback execution consumes the return value of the previous execution. If accumulator is not passed, the first element of the collection will be used as the initial accumulator value. are iterated over.</p> </div> <h5>Parameters:</h5> <table class="params table table-striped"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Argument</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>query</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="attributes"> &lt;optional><br> </td> <td class="description last"><p>A query to evaluate</p></td> </tr> <tr> <td class="name"><code>iterator</code></td> <td class="type"> <span class="param-type">function</span> </td> <td class="attributes"> </td> <td class="description last"><p>The function that will be executed in each item in the collection</p></td> </tr> <tr> <td class="name"><code>accumulator</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="attributes"> &lt;optional><br> </td> <td class="description last"><p>Initial value of the accumulator.</p></td> </tr> <tr> <td class="name"><code>thisobj</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="attributes"> &lt;optional><br> </td> <td class="description last"><p>The value of <code>this</code></p></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"> <ul class="dummy"> <li> <a href="collector.js.html">documents/collector.js</a>, <a href="collector.js.html#sunlight-1-line-119">line 119</a> </li> </ul> </dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">*</span> </dd> </dl> </dd> <dt> <h4 class="name" id="sortBy"><span class="type-signature">&lt;inner> </span>sortBy<span class="signature">(<span class="optional">query</span>, iterator, <span class="optional">thisobj</span>)</span><span class="type-signature"> &rarr; {array}</span></h4> </dt> <dd> <div class="description"> <p>Returns a sorted copy of the collection.</p> </div> <h5>Parameters:</h5> <table class="params table table-striped"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Argument</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>query</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="attributes"> &lt;optional><br> </td> <td class="description last"><p>The query to evaluate. If you pass in a query, only the items that match the query are iterated over.</p></td> </tr> <tr> <td class="name"><code>iterator</code></td> <td class="type"> <span class="param-type">function</span> </td> <td class="attributes"> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>thisobj</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="attributes"> &lt;optional><br> </td> <td class="description last"><p>The value of <code>this</code></p></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"> <ul class="dummy"> <li> <a href="collector.js.html">documents/collector.js</a>, <a href="collector.js.html#sunlight-1-line-193">line 193</a> </li> </ul> </dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">array</span> </dd> </dl> </dd> <dt> <h4 class="name" id="toArray"><span class="type-signature">&lt;inner> </span>toArray<span class="signature">()</span><span class="type-signature"> &rarr; {array}</span></h4> </dt> <dd> <div class="description"> <p>Returns the collection as an array. If it is already an array, it just returns that.</p> </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"> <ul class="dummy"> <li> <a href="collector.js.html">documents/collector.js</a>, <a href="collector.js.html#sunlight-1-line-80">line 80</a> </li> </ul> </dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">array</span> </dd> </dl> </dd> <dt> <h4 class="name" id="toJSON"><span class="type-signature">&lt;inner> </span>toJSON<span class="signature">()</span><span class="type-signature"> &rarr; {object}</span></h4> </dt> <dd> <div class="description"> <p>Supports conversion to a JSON string or for passing over the wire</p> </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"> <ul class="dummy"> <li> <a href="collector.js.html">documents/collector.js</a>, <a href="collector.js.html#sunlight-1-line-88">line 88</a> </li> </ul> </dd> </dl> <h5>Returns:</h5> <ul> <li> <dl> <dt> Type </dt> <dd> <span class="param-type">object</span> </dd> </dl> </li> <li> <dl> <dt> Type </dt> <dd> <span class="param-type">Object</span> | <span class="param-type">array</span> </dd> </dl> </li> </ul> </dd> </dl> </article> </section> </div> <div class="clearfix"></div> <footer> <span class="copyright"> DocStrap Copyright © 2012-2013 The contributors to the JSDoc3 and DocStrap projects. </span> <br /> <span class="jsdoc-message"> Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha5</a> on Mon Jul 7th 2014 using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>. </span> </footer> </div> <div class="span3"> <div id="toc"></div> </div> <br clear="both"> </div> </div> <!--<script src="scripts/sunlight.js"></script>--> <script src="scripts/docstrap.lib.js"></script> <script src="scripts/bootstrap-dropdown.js"></script> <script src="scripts/toc.js"></script> <script> $( function () { $( "[id*='$']" ).each( function () { var $this = $( this ); $this.attr( "id", $this.attr( "id" ).replace( "$", "__" ) ); } ); $( "#toc" ).toc( { anchorName : function ( i, heading, prefix ) { return $( heading ).attr( "id" ) || ( prefix + i ); }, selectors : "h1,h2,h3,h4", showAndHide : false, scrollTo : "100px" } ); $( "#toc>ul" ).addClass( "nav nav-pills nav-stacked" ); $( "#main span[id^='toc']" ).addClass( "toc-shim" ); $( '.dropdown-toggle' ).dropdown(); // $( ".tutorial-section pre, .readme-section pre" ).addClass( "sunlight-highlight-javascript" ).addClass( "linenums" ); $( ".tutorial-section pre, .readme-section pre" ).each( function () { var $this = $( this ); var example = $this.find( "code" ); exampleText = example.html(); var lang = /{@lang (.*?)}/.exec( exampleText ); if ( lang && lang[1] ) { exampleText = exampleText.replace( lang[0], "" ); example.html( exampleText ); lang = lang[1]; } else { lang = "javascript"; } if ( lang ) { $this .addClass( "sunlight-highlight-" + lang ) .addClass( "linenums" ) .html( example.html() ); } } ); Sunlight.highlightAll( { lineNumbers : true, showMenu : true, enableDoclinks : true } ); } ); </script> <!--Navigation and Symbol Display--> <!--Google Analytics--> </body> </html>
guoguogis/ng-nice
npminstall/ink-docstrap/themes/united/collector.html
HTML
mit
55,447
<widget-modal widget-modal-title="Administer Api Token"> <form name="cdf" class="form" ng-submit="ctrl.submit(cdf)" novalidate> <form-group input="apiUser" errors="{required: 'Api user name is required', minlength: 'Min length of 6 characters', maxlength: 'Max length of 50 characters', pattern : 'Special character(s) found. Please enter only letters, numbers or spaces.'}"> <label class="modal-label">Api User</label> <input type="text" name="apiUser" class="form-control" placeholder="Api User" ng-model="ctrl.apiUser" required disabled="true" maxlength="50" autocomplete="off" minlength="6" ng-pattern="/^[a-zA-Z0-9 ]*$/"/> <span class="text-danger"></span> </form-group> <form-group input="expDt" class="text-center" errors="{apiTokenError: 'Error updating api token.'}"> <br> <label class="modal-label" id="dtLabel">Expiration Date</label> <div class="row"> <div class="col-xs-offset-3 col-xs-6"> <date-picker disable-before-today="true" dp-Name="expDt" ng-model="ctrl.date"></date-picker> </div> </div> </form-group> <div class="button-row row text-center"> <button type="submit" class="btn btn-primary btn-wide">Save</button> </div> </form> </widget-modal>
pavan149679/Hygieia
UI/src/app/dashboard/views/editApiToken.html
HTML
apache-2.0
1,758
<!DOCTYPE html> <html lang="en"> <head> <title>What is the Drop Box tool?</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta content="sakai.dropbox, main" name="description"> <meta content="student folders" name="search"> <link href="/library/skin/tool_base.css" media="screen" rel="stylesheet" type="text/css" charset="utf-8"> <link href="/library/skin/morpheus-default/tool.css" media="screen" rel="stylesheet" type="text/css" charset="utf-8"> <link href="/sakai-help-tool/css/help.css" media="screen" rel="stylesheet" type="text/css" charset="utf-8"> <link href="/library/js/jquery/featherlight/0.4.0/featherlight.min.css" media="screen" rel="stylesheet" type="text/css" charset="utf-8"> <script src="/library/webjars/jquery/1.11.3/jquery.min.js" type="text/javascript" charset="utf-8"></script><script src="/library/js/jquery/featherlight/0.4.0/featherlight.min.js" type="text/javascript" charset="utf-8"></script><script type="text/javascript" charset="utf-8"> $(document).ready(function(){ $("a[rel^='featherlight']").featherlight({ type: { image:true }, closeOnClick: 'anywhere' }); }); </script> </head> <body> <div id="wrapper"> <div id="article-content"> <div id="article-header"> <h1 class="article-title">What is the Drop Box tool?</h1> </div> <div id="article-description"> <p>The Drop Box tool creates a folder for each student in the course. &nbsp;Students are only able to access their own folder. Students and instructors can both place files in the Drop Box folders. &nbsp;</p> <p>The Drop Box mirrors the file management features and functionality of the Resources tool. See <a href="content.hlp?docId=whatistheResourcestool">What is the Resources tool?</a> for more information on how to add, upload, edit, and delete files and folders within Drop Box. (As with Resources, multiple files can also be uploaded using <a href="content.hlp?docId=howdoIdraganddropfilesfrommycomputertoaResourcesfolder">Drag and Drop</a>.)</p> </div> <div id="steps-container"> <div id="step-6360" class="step-container"> <h2 class="step-title">To access this tool, select Drop Box from the Tool Menu in your site.</h2> <div class="step-image-container"> <img src="/library/image/help/en/What-is-the-Drop-Box-tool-/To-access-this-tool--select-Drop-Box-from-the-Tool.png" width="146" height="126" class="step-image" alt="To access this tool, select Drop Box from the Tool Menu in your site."> </div> </div> <div class="clear"></div> <div id="step-6361" class="step-container"> <h2 class="step-title">Example: Folders for each student</h2> <div class="step-image-container step-image-fullsize"> <img src="/library/image/help/en/What-is-the-Drop-Box-tool-/Example--Folders-for-each-student-sm.png" width="640" height="285" class="step-image" alt="Example: Folders for each student"><div class="step-image-caption"> <a href="/library/image/help/en/What-is-the-Drop-Box-tool-/Example--Folders-for-each-student.png" rel="featherlight" target="_blank">Zoom</a> </div> </div> <div class="step-instructions"><p>Folders with the plus sign contain files.</p></div> </div> <div class="clear"></div> </div> </div> </div> </body> </html>
joserabal/sakai
help/help/src/sakai_screensteps_dropBoxInstructorGuide/What-is-the-Drop-Box-tool-.html
HTML
apache-2.0
3,465
<!DOCTYPE html> <html lang="en"> <head> <title>How do I delete an alias?</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta content="sakai.aliases" name="description"> <meta content="" name="search"> <link href="/library/skin/tool_base.css" media="screen" rel="stylesheet" type="text/css" charset="utf-8"> <link href="/library/skin/morpheus-default/tool.css" media="screen" rel="stylesheet" type="text/css" charset="utf-8"> <link href="/sakai-help-tool/css/help.css" media="screen" rel="stylesheet" type="text/css" charset="utf-8"> <link href="/library/js/jquery/featherlight/0.4.0/featherlight.min.css" media="screen" rel="stylesheet" type="text/css" charset="utf-8"> <script src="/library/webjars/jquery/1.11.3/jquery.min.js" type="text/javascript" charset="utf-8"></script><script src="/library/js/jquery/featherlight/0.4.0/featherlight.min.js" type="text/javascript" charset="utf-8"></script><script type="text/javascript" charset="utf-8"> $(document).ready(function(){ $("a[rel^='featherlight']").featherlight({ type: { image:true }, closeOnClick: 'anywhere' }); }); </script> </head> <body> <div id="wrapper"> <div id="article-content"> <div id="article-header"> <h1 class="article-title">How do I delete an alias?</h1> </div> <div id="steps-container"> <div id="step-5445" class="step-container"> <h2 class="step-title">Go to the Aliases tool.</h2> <div class="step-instructions"><p>Select the <strong>Aliases</strong> tool from the Tool Menu in the Administration Workspace.</p></div> </div> <div class="clear"></div> <div id="step-5446" class="step-container"> <h3 class="step-title">Click on the alias you would like delete.</h3> <div class="step-image-container step-image-fullsize"> <img src="/library/image/help/en/How-do-I-delete-an-alias-/Click-on-the-alias-you-would-like-delete-sm.png" width="640" height="469" class="step-image" alt="Click on the alias you would like delete."><div class="step-image-caption"> <a href="/library/image/help/en/How-do-I-delete-an-alias-/Click-on-the-alias-you-would-like-delete.png" rel="featherlight" target="_blank">Zoom</a> </div> </div> </div> <div class="clear"></div> <div id="step-5447" class="step-container"> <h3 class="step-title">Click Remove Alias.</h3> <div class="step-image-container"> <img src="/library/image/help/en/How-do-I-delete-an-alias-/Click-Remove-Alias.png" width="578" height="319" class="step-image" alt="Click Remove Alias."> </div> </div> <div class="clear"></div> <div id="step-5448" class="step-container"> <h3 class="step-title">Confirm alias removal.</h3> <div class="step-image-container step-image-fullsize"> <img src="/library/image/help/en/How-do-I-delete-an-alias-/Confirm-alias-removal-sm.png" width="640" height="194" class="step-image" alt="Confirm alias removal."><div class="step-image-caption"> <a href="/library/image/help/en/How-do-I-delete-an-alias-/Confirm-alias-removal.png" rel="featherlight" target="_blank">Zoom</a> </div> </div> <div class="step-instructions"><p>Click <strong>Remove</strong> again when prompted to confirm the deletion of the alias.</p></div> </div> <div class="clear"></div> </div> </div> </div> </body> </html>
conder/sakai
help/help/src/sakai_screensteps_aliasesAdministratorGuide/How-do-I-delete-an-alias-.html
HTML
apache-2.0
3,616
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>This tests that the querySelector and querySelectorAll fast path for IDs is not overzelous.</title> <script src="../../../resources/testharness.js"></script> <script src="../../../resources/testharnessreport.js"></script> </head> <body> <script src="resources/id-fastpath-strict.js"></script> </body> </html>
scheib/chromium
third_party/blink/web_tests/fast/dom/SelectorAPI/id-fastpath-strict.html
HTML
bsd-3-clause
424
<!DOCTYPE html> <!-- Copyright (c) 2013 Samsung Electronics Co., Ltd. Licensed under the Apache License, Version 2.0 (the License); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Authors: Roman Frolow <r.frolow@samsung.com> --> <html> <head> <title>SystemInfo_addPropertyValueChangeListener</title> <meta charset="utf-8"/> <script type="text/javascript" src="support/unitcommon.js"></script> <script type="text/javascript" src="support/systeminfo_common.js"></script> </head> <body> <div id="log"></div> <script type="text/javascript"> //==== TEST: SystemInfo_addPropertyValueChangeListener //==== LABEL Check method addPropertyValueChangeListener of SystemInfo //==== SPEC Tizen Web API:Tizen Specification:SystemInfo:SystemInfo:addPropertyValueChangeListener M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html //==== TEST_CRITERIA MMINA MAST MR //==== ONLOAD_DELAY 90 var t = async_test(document.title, {timeout: 90000}), addPropertyValueChangeListenerSuccess, addPropertyValueChangeListenerError, retValue = null; setup({timeout: 90000}); t.step(function () { addPropertyValueChangeListenerError = t.step_func(function (error) { assert_unreached("addPropertyValueChangeListener() error callback invoked: name:" + error.name + ", msg:" + error.message); }); addPropertyValueChangeListenerSuccess = t.step_func(function (property) { assert_own_property(property, "load", "CPU does not own load property."); assert_type(retValue, "unsigned long", "addPropertyValueChangeListener returns wrong value"); t.done(); }); retValue = tizen.systeminfo.addPropertyValueChangeListener("CPU", addPropertyValueChangeListenerSuccess); }); </script> </body> </html>
qiuzhong/crosswalk-test-suite
webapi/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_addPropertyValueChangeListener.html
HTML
bsd-3-clause
2,199
<html> <head> <title>Weak Showers</title> <link rel="stylesheet" type="text/css" href="pythia.css"/> <link rel="shortcut icon" href="pythia32.gif"/> </head> <body> <h2>Weak Showers</h2> The emission of <i>W^+-</i> and <i>Z^0</i> gauge bosons off fermions is intended to be an integrated part of the initial- and final-state radiation frameworks, and is fully interleaved with QCD and QED emissions. It is a new and still not fully explored feature, however, and therefore it is off by default. The weak-emission machinery is described in detail in [<a href="Bibliography.html" target="page">Chr14</a>]; here we only bring up some of the most relevant points for using this machinery. <p/> In QCD and QED showers the real and virtual corrections are directly related with each other, which means that the appropriate Sudakov factors can be directly obtained as a by-product of the real-emission evolution. This does not hold for <i>W^+-</i>, owing to the flavour-changing character of emissions, so-called Bloch-Nordsieck violations. These effects are not expected to be large, but they are not properly included, since our evolution framework makes no distinction in this respect between QCD, QED or weak emissions. Another restriction is that there is no simulation of the full <i>gamma^*/Z^0</i> interference: at low masses the QED shower involves a pure <i>gamma^*</i> component, whereas the weak shower generates a pure <i>Z^0</i>. <p/> The non-negligible <i>W/Z</i> masses have a considerable impact both on the matrix elements and on the phase space for their emission. The shower on its own is not set up to handle those aspects with a particularly good accuracy. Therefore the weak shower emissions are always matched to the matrix element for emission off a <i>f fbar</i> weak dipole, or some other <i>2 &rarr; 3</i> matrix element that resembles the topology at hand. Even if the match may not be perfect, at least the main features should be caught that way. Notably, the correction procedure is used throughout the shower, not only for the emission closest to the hard <i>2 &rarr; 2</i> process. In such extended applications, emission rates are normalized to the invariant mass of the dipole at the time of the weak emission, i.e. discounting the energy change by previous QCD/QED emissions. <p/> Also the angular distribution in the subsequent <i>V = W^+-/Z^0</i> decay is matched to the matrix element expression for <i>f fbar &rarr; f fbar V &rarr; f fbar f' fbar'</i> (FSR) and <i>f fbar &rarr; g^* V &rarr; g^* f' fbar'</i> (ISR). Afterwards the <i>f' fbar'</i> system undergoes showers and hadronization just like any <i>W^+-/Z^0</i> decay products would. <p/> Special for the weak showers is that couplings are different for left- and righthanded fermions. With incoming unpolarized beams this should average out, at least so long as only one weak emission occurs. In the case of several weak emissions off the same fermion the correlation between them will carry a memory of the fermion helicity. Such a memory is retained for the affected dipole end, and is reflected in the <code>Particle::pol()</code> property, it being <i>+1</i> (<i>-1</i>) for fermions considered righthanded (lefthanded), and 0 for the bulk where no choice has been made. <p/> Most events will not contain a <i>W^+-/Z^0</i> emission at all, which means that dedicated generator studies of weak emissions can become quite inefficient. In a shower framework it is not straightforward to force such emissions to happen without biasing the event sample in some respect. An option is available to enhance the emission rate artificially, but it is then the responsibility of the user to correct the cross section accordingly, and not to pick an enhancement so big that the probability for more than one emission is non-negligible. (It is not enough to assign an event weight <i>1/e^n</i> where <i>e</i> is the enhancement factor and <i>n</i> is the number of emitted gauge bosons. This still misses to account for the change in phase space for late emissions by the effect of earlier ones, or equivalently for the unwanted change in the Sudakov form factor. See [<a href="Bibliography.html" target="page">Lon12a</a>] for a detailed discussion and possible solutions.) <p/> Another enhancement probability is to only allow some specific <i>W^+-/Z^0</i> decay modes. By default the shower is inclusive, since it should describe all that can happen with unit probability. This also holds even if the <i>W^+-</i> and <i>Z^0</i> produced in the hard process have been restricted to specific decay channels. The trick that allows this is that two new "aliases" have been produced, a <code>Zcopy</code> with identity code 93 and a <code>Wcopy</code> with code 94. These copies are used specifically to bookkeep decay channels open for <i>W^+-/Z^0</i> bosons produced in the shower. For the rest they are invisible, i.e. you will not find these codes in event listings, but only the regular 23 and 24 ones. The identity code duplication allows the selection of specific decay modes for 93 and 94, i.e. for only the gauge bosons produced in the shower. As above it is here up to the user to reweight the event to compensate for the bias introduced, and to watch out for possible complications. In this case there is no kinematics bias, but one would miss out on topologies where a not-selected decay channel could be part of the background to the selected one, notably when more than one gauge boson is produced. <p/> Note that the common theme is that a bias leads to an event-specific weight, since each event is unique. It also means that the cross-section information obtained e.g. by <code>Pythia::stat()</code> is misleading, since it has not been corrected for such weights. This is different from biases in a predetermined hard process, where the net reduction in cross section can be calculated once and for all at initialization, and events generated with unit weight thereafter. <p/> The weak shower introduces a possible doublecounting problem. Namely that it is now possible to produce weak bosons in association with jets from two different channels, Drell-Yan weak production with QCD emissions and QCD hard process with a weak emission. A method, built on a classification of each event with the <i>kT</i> jet algorithm, is used to remove the doublecounting. Specifically, consider a tentative final state consisting of a <i>W/Z</i> and two jets. Based on the principle that the shower emission ought to be softer than the hard emission, the emission of a hard <i>W/Z</i> should be vetoed in a QCD event, and that of two hard jets in a Drell-Yan event. The dividing criterion is this whether the first clustering step involves the <i>W/Z</i> or not. It is suggested to turn this method on only if you simulate both Drell-Yan weak production and QCD hard production with a weak shower. Do not turn on the veto algorithm if you only intend to generate one of the two processes. <h3>variables</h3> Below are listed the variables related to the weak shower and common to both the initial- and final-state radiation. For variables only related to the initial-state radiation (e.g. to turn the weak shower on for ISR) see <a href="SpacelikeShowers.html" target="page">Spacelike Showers</a> and for final-state radiation see <a href="TimelikeShowers.html" target="page">Timelike Showers</a>. <p/><code>parm&nbsp; </code><strong> WeakShower:enhancement &nbsp;</strong> (<code>default = <strong>1.</strong></code>; <code>minimum = 1.</code>; <code>maximum = 1000.</code>)<br/> Enhancement factor for the weak shower. This is used to increase the statistics of weak shower emissions. Remember afterwards to correct for the additional weak emissions (i.e. divide the rate of weak emissions by the same factor). <p/><code>flag&nbsp; </code><strong> WeakShower:singleEmission &nbsp;</strong> (<code>default = <strong>off</strong></code>)<br/> This parameter allows to stop the weak shower after a single emission. <br/>If on, only a single weak emission is allowed. <br/>If off, an unlimited number of weak emissions possible. <p/><code>flag&nbsp; </code><strong> WeakShower:vetoWeakJets &nbsp;</strong> (<code>default = <strong>off</strong></code>)<br/> There are two ways to produce weak bosons in association with jets, namely Drell-Yan weak production with QCD radiation and QCD hard process with weak radiation. In order to avoid double counting between the two production channels, a veto procedure built on the <i>kT</i> jet algorithm is implemented in the evolution starting from a <i>2 &rarr; 2</i> QCD process, process codes in the range 111 - 129. The veto algorithm finds the first cluster step, and if it does not involve a weak boson the radiation of the weak boson is vetoed when <code>WeakShower:vetoWeakJets</code> is on. Note that this flag does not affect other internal or external processes, only the 111 - 129 ones. For the Drell-Yan process the same veto algorithm is used, but this time the event should be vetoed if the first clustering does contain a weak boson, see <code>WeakShower:vetoQCDjets</code> below. <p/><code>flag&nbsp; </code><strong> WeakShower:vetoQCDjets &nbsp;</strong> (<code>default = <strong>off</strong></code>)<br/> This flag vetoes some QCD emission for Drell-Yan weak production to avoid doublecounting with weak emission in QCD hard processes. For more information see <code>WeakShower:vetoWeakJets</code> above. Note that this flag only affects the process codes 221 and 222, i.e. the main built-in processes for <i>gamma^*/Z^0/W^+-</i> production, and not other internal or external processes. <p/><code>parm&nbsp; </code><strong> WeakShower:vetoWeakDeltaR &nbsp;</strong> (<code>default = <strong>0.6</strong></code>; <code>minimum = 0.1</code>; <code>maximum = 2.</code>)<br/> The <i>delta R</i> parameter used in the <i>kT</i> clustering for the veto algorithm used to avoid double counting. Relates to the relative importance given to ISR and FSR emissionbs. </body> </html> <!-- Copyright (C) 2015 Torbjorn Sjostrand -->
miranov25/AliRoot
PYTHIA8/pythia8205/share/Pythia8/htmldoc/WeakShowers.html
HTML
bsd-3-clause
10,275
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="de"> <head> <meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> <title>Uses of Class org.apache.commons.lang3.SerializationUtils (Apache Commons Lang 3.4 API)</title> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> </head> <body> <script type="text/javascript"><!-- if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Class org.apache.commons.lang3.SerializationUtils (Apache Commons Lang 3.4 API)"; } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar_top"> <!-- --> </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../../org/apache/commons/lang3/SerializationUtils.html" title="class in org.apache.commons.lang3">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../index-all.html">Index</a></li> <li><a href="../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../index.html?org/apache/commons/lang3/class-use/SerializationUtils.html" target="_top">Frames</a></li> <li><a href="SerializationUtils.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip-navbar_top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <div class="header"> <h2 title="Uses of Class org.apache.commons.lang3.SerializationUtils" class="title">Uses of Class<br>org.apache.commons.lang3.SerializationUtils</h2> </div> <div class="classUseContainer">No usage of org.apache.commons.lang3.SerializationUtils</div> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar_bottom"> <!-- --> </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../../org/apache/commons/lang3/SerializationUtils.html" title="class in org.apache.commons.lang3">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../index-all.html">Index</a></li> <li><a href="../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../index.html?org/apache/commons/lang3/class-use/SerializationUtils.html" target="_top">Frames</a></li> <li><a href="SerializationUtils.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip-navbar_bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> <p class="legalCopy"><small>Copyright &#169; 2001&#x2013;2015 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> </body> </html>
andrei128x/NuCS
server_code/commons-lang3-3.4/apidocs/org/apache/commons/lang3/class-use/SerializationUtils.html
HTML
mit
4,370
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 1.0 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="stylesheet" href="../includes/main.css" type="text/css"> <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon"> <title>Apache CloudStack | The Power Behind Your Cloud</title> </head> <body> <div id="insidetopbg"> <div id="inside_wrapper"> <div class="uppermenu_panel"> <div class="uppermenu_box"></div> </div> <div id="main_master"> <div id="inside_header"> <div class="header_top"> <a class="cloud_logo" href="http://cloudstack.org"></a> <div class="mainemenu_panel"></div> </div> </div> <div id="main_content"> <div class="inside_apileftpanel"> <div class="inside_contentpanel" style="width:930px;"> <div class="api_titlebox"> <div class="api_titlebox_left"> <span> Apache CloudStack v4.9.0 Root Admin API Reference </span> <p></p> <h1>extractIso</h1> <p>Extracts an ISO</p> </div> <div class="api_titlebox_right"> <a class="api_backbutton" href="../index.html"></a> </div> </div> <div class="api_tablepanel"> <h2>Request parameters</h2> <table class="apitable"> <tr class="hed"> <td style="width:200px;"><strong>Parameter Name</strong></td><td style="width:500px;">Description</td><td style="width:180px;">Required</td> </tr> <tr> <td style="width:200px;"><strong>id</strong></td><td style="width:500px;"><strong>the ID of the ISO file</strong></td><td style="width:180px;"><strong>true</strong></td> </tr> <tr> <td style="width:200px;"><strong>mode</strong></td><td style="width:500px;"><strong>the mode of extraction - HTTP_DOWNLOAD or FTP_UPLOAD</strong></td><td style="width:180px;"><strong>true</strong></td> </tr> <tr> <td style="width:200px;"><i>url</i></td><td style="width:500px;"><i>the URL to which the ISO would be extracted</i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>zoneid</i></td><td style="width:500px;"><i>the ID of the zone where the ISO is originally located</i></td><td style="width:180px;"><i>false</i></td> </tr> </table> </div> <div class="api_tablepanel"> <h2>Response Tags</h2> <table class="apitable"> <tr class="hed"> <td style="width:200px;"><strong>Response Name</strong></td><td style="width:500px;">Description</td> </tr> <tr> <td style="width:200px;"><strong>id</strong></td><td style="width:500px;">the id of extracted object</td> </tr> <tr> <td style="width:200px;"><strong>accountid</strong></td><td style="width:500px;">the account id to which the extracted object belongs</td> </tr> <tr> <td style="width:200px;"><strong>created</strong></td><td style="width:500px;">the time and date the object was created</td> </tr> <tr> <td style="width:200px;"><strong>extractId</strong></td><td style="width:500px;">the upload id of extracted object</td> </tr> <tr> <td style="width:200px;"><strong>extractMode</strong></td><td style="width:500px;">the mode of extraction - upload or download</td> </tr> <tr> <td style="width:200px;"><strong>name</strong></td><td style="width:500px;">the name of the extracted object</td> </tr> <tr> <td style="width:200px;"><strong>state</strong></td><td style="width:500px;">the state of the extracted object</td> </tr> <tr> <td style="width:200px;"><strong>status</strong></td><td style="width:500px;">the status of the extraction</td> </tr> <tr> <td style="width:200px;"><strong>storagetype</strong></td><td style="width:500px;">type of the storage</td> </tr> <tr> <td style="width:200px;"><strong>uploadpercentage</strong></td><td style="width:500px;">the percentage of the entity uploaded to the specified location</td> </tr> <tr> <td style="width:200px;"><strong>url</strong></td><td style="width:500px;">if mode = upload then url of the uploaded entity. if mode = download the url from which the entity can be downloaded</td> </tr> <tr> <td style="width:200px;"><strong>zoneid</strong></td><td style="width:500px;">zone ID the object was extracted from</td> </tr> <tr> <td style="width:200px;"><strong>zonename</strong></td><td style="width:500px;">zone name the object was extracted from</td> </tr> </table> </div> </div> </div> </div> </div> <div id="footer"> <div id="comments_thread"> <script type="text/javascript" src="https://comments.apache.org/show_comments.lua?site=test" async="true"></script> <noscript> <iframe width="930" height="500" src="https://comments.apache.org/iframe.lua?site=test&amp;page=4.2.0/rootadmin"></iframe> </noscript> </div> <div id="footer_mainmaster"> <p>Copyright &copy; 2015 The Apache Software Foundation, Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0.</a> <br> Apache, CloudStack, Apache CloudStack, the Apache CloudStack logo, the CloudMonkey logo and the Apache feather logo are trademarks of The Apache Software Foundation.</p> </div> </div> </div> </div> </body> </html>
apache/cloudstack-www
source/api/apidocs-4.9/apis/extractIso.html
HTML
apache-2.0
5,014
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 1.0 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="stylesheet" href="../includes/main.css" type="text/css"> <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon"> <title>Apache CloudStack | The Power Behind Your Cloud</title> </head> <body> <div id="insidetopbg"> <div id="inside_wrapper"> <div class="uppermenu_panel"> <div class="uppermenu_box"></div> </div> <div id="main_master"> <div id="inside_header"> <div class="header_top"> <a class="cloud_logo" href="http://cloudstack.org"></a> <div class="mainemenu_panel"></div> </div> </div> <div id="main_content"> <div class="inside_apileftpanel"> <div class="inside_contentpanel" style="width:930px;"> <div class="api_titlebox"> <div class="api_titlebox_left"> <span> Apache CloudStack v4.2.0 User API Reference </span> <p></p> <h1>deleteVpnCustomerGateway</h1> <p>Delete site to site vpn customer gateway</p> </div> <div class="api_titlebox_right"> <a class="api_backbutton" href="../TOC_User.html"></a> </div> </div> <div class="api_tablepanel"> <h2>Request parameters</h2> <table class="apitable"> <tr class="hed"> <td style="width:200px;"><strong>Parameter Name</strong></td><td style="width:500px;">Description</td><td style="width:180px;">Required</td> </tr> <tr> <td style="width:200px;"><strong>id</strong></td><td style="width:500px;"><strong>id of customer gateway</strong></td><td style="width:180px;"><strong>true</strong></td> </tr> </table> </div> <div class="api_tablepanel"> <h2>Response Tags</h2> <table class="apitable"> <tr class="hed"> <td style="width:200px;"><strong>Response Name</strong></td><td style="width:500px;">Description</td> </tr> <tr> <td style="width:200px;"><strong>displaytext</strong></td><td style="width:500px;">any text associated with the success or failure</td> </tr> <tr> <td style="width:200px;"><strong>success</strong></td><td style="width:500px;">true if operation is executed successfully</td> </tr> </table> </div> </div> </div> </div> </div> <div id="footer"> <div id="footer_mainmaster"> <p>Copyright &copy; 2013 The Apache Software Foundation, Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0.</a> <br> Apache, CloudStack, Apache CloudStack, the Apache CloudStack logo, the CloudMonkey logo and the Apache feather logo are trademarks of The Apache Software Foundation.</p> </div> </div> </div> </div> </body> </html>
resmo/cloudstack-www
source/api/apidocs-4.2/user/deleteVpnCustomerGateway.html
HTML
apache-2.0
2,649
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 1.0 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="stylesheet" href="../includes/main.css" type="text/css"> <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon"> <title>Apache CloudStack | The Power Behind Your Cloud</title> </head> <body> <div id="insidetopbg"> <div id="inside_wrapper"> <div class="uppermenu_panel"> <div class="uppermenu_box"></div> </div> <div id="main_master"> <div id="inside_header"> <div class="header_top"> <a class="cloud_logo" href="http://cloudstack.org"></a> <div class="mainemenu_panel"></div> </div> </div> <div id="main_content"> <div class="inside_apileftpanel"> <div class="inside_contentpanel" style="width:930px;"> <div class="api_titlebox"> <div class="api_titlebox_left"> <span> Apache CloudStack v4.4.1 User API Reference </span> <p></p> <h1>deleteIso</h1> <p>Deletes an ISO file.</p> </div> <div class="api_titlebox_right"> <a class="api_backbutton" href="../TOC_User.html"></a> </div> </div> <div class="api_tablepanel"> <h2>Request parameters</h2> <table class="apitable"> <tr class="hed"> <td style="width:200px;"><strong>Parameter Name</strong></td><td style="width:500px;">Description</td><td style="width:180px;">Required</td> </tr> <tr> <td style="width:200px;"><strong>id</strong></td><td style="width:500px;"><strong>the ID of the ISO file</strong></td><td style="width:180px;"><strong>true</strong></td> </tr> <tr> <td style="width:200px;"><i>zoneid</i></td><td style="width:500px;"><i>the ID of the zone of the ISO file. If not specified, the ISO will be deleted from all the zones</i></td><td style="width:180px;"><i>false</i></td> </tr> </table> </div> <div class="api_tablepanel"> <h2>Response Tags</h2> <table class="apitable"> <tr class="hed"> <td style="width:200px;"><strong>Response Name</strong></td><td style="width:500px;">Description</td> </tr> <tr> <td style="width:200px;"><strong>displaytext</strong></td><td style="width:500px;">any text associated with the success or failure</td> </tr> <tr> <td style="width:200px;"><strong>success</strong></td><td style="width:500px;">true if operation is executed successfully</td> </tr> </table> </div> </div> </div> </div> </div> <div id="footer"> <div id="footer_mainmaster"> <p>Copyright &copy; 2014 The Apache Software Foundation, Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0.</a> <br> Apache, CloudStack, Apache CloudStack, the Apache CloudStack logo, the CloudMonkey logo and the Apache feather logo are trademarks of The Apache Software Foundation.</p> </div> </div> </div> </div> </body> </html>
resmo/cloudstack-www
source/api/apidocs-4.4/user/deleteIso.html
HTML
apache-2.0
2,844
<!DOCTYPE html> <!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. --> <title>OffscreenCanvas test: 2d.composite.uncovered.fill.copy</title> <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> <script src="/html/canvas/resources/canvas-tests.js"></script> <h1>2d.composite.uncovered.fill.copy</h1> <p class="desc">fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.</p> <script> var t = async_test("fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged."); var t_pass = t.done.bind(t); var t_fail = t.step_func(function(reason) { throw reason; }); t.step(function() { var offscreenCanvas = new OffscreenCanvas(100, 50); var ctx = offscreenCanvas.getContext('2d'); ctx.fillStyle = 'rgba(0, 255, 0, 0.5)'; ctx.fillRect(0, 0, 100, 50); ctx.globalCompositeOperation = 'copy'; ctx.fillStyle = 'rgba(0, 0, 255, 0.75)'; ctx.translate(0, 25); ctx.fillRect(0, 50, 100, 50); _assertPixelApprox(offscreenCanvas, 50,25, 0,0,0,0, "50,25", "0,0,0,0", 5); t.done(); }); </script>
scheib/chromium
third_party/blink/web_tests/external/wpt/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.copy.html
HTML
bsd-3-clause
1,169
<HTML> <HEAD> <TITLE> Changes in TIFF v3.6.0 </TITLE> </HEAD> <BODY BGCOLOR=white> <FONT FACE="Helvetica, Arial, Sans"> <FONT FACE="Helvetica, Arial, Sans"> <BASEFONT SIZE=4> <B><FONT SIZE=+3>T</FONT>IFF <FONT SIZE=+2>C</FONT>HANGE <FONT SIZE=+2>I</FONT>NFORMATION</B> <BASEFONT SIZE=3> <UL> <HR SIZE=4 WIDTH=65% ALIGN=left> <B>Current Version</B>: v3.6.0<BR> <B>Previous Version</B>: <A HREF=v3.5.7.html>v3.5.7</a><BR> <B>Master FTP Site</B>: <A HREF="ftp://download.osgeo.org/libtiff"> download.osgeo.org</a>, directory pub/libtiff</A><BR> <B>Master HTTP Site</B>: <A HREF="http://www.simplesystems.org/libtiff/"> http://www.simplesystems.org/libtiff/</a> <HR SIZE=4 WIDTH=65% ALIGN=left> </UL> <P> This document describes the changes made to the software between the <I>previous</I> and <I>current</I> versions (see above). If you don't find something listed here, then it was not done in this timeframe, or it was not considered important enough to be mentioned. The following information is located here: <UL> <LI><A HREF="#hightlights">Major Changes</A> <LI><A HREF="#configure">Changes in the software configuration</A> <LI><A HREF="#libtiff">Changes in libtiff</A> <LI><A HREF="#tools">Changes in the tools</A> <LI><A HREF="#contrib">Changes in the contrib area</A> <LI><A HREF="#lzwkit">Changes in the LZW compression kit</A> </UL> <p> <P><HR WIDTH=65% ALIGN=left> <!---------------------------------------------------------------------------> <A NAME="highlights"><B><FONT SIZE=+3>M</FONT>AJOR CHANGES:</B></A> <ul> <li> New utility <a href=./man/raw2tiff.1.html>raw2tiff</a> for converting raw rasters into TIFF files. <li> Lots of new <a href=./man/tiff2ps.1.html>tiff2ps</a> options. <li> Lots of new <a href=./man/fax2tiff.1.html>fax2tiff</a> options. <li> Lots of bug fixes for LZW, JPEG and OJPEG compression. </ul> <h3>Custom Tag Support</h3> The approach to extending libtiff with custom tags has changed radically. Previously, all internally supported TIFF tags had a place in the private TIFFDirectory structure within libtiff to hold the values (if read), and a "field number" (ie. FIELD_SUBFILETYPE) used to identify that tag. However, every time a new tag was added to the core, the size of the TIFFDirectory structure would changing, breaking any dynamically linked software that used the private data structures.<p> Also, any tag not recognised by libtiff would not be read and accessable to applications without some fairly complicated work on the applications part to pre-register the tags as exemplified by the support for "Geo"TIFF tags by libgeotiff layered on libtiff. <p> Amoung other things this approach required the extension code to access the private libtiff structures ... which made the higher level non-libtiff code be locked into a specific version of libtiff at compile time. This caused no end of bug reports!<p> The new approach is for libtiff to read all tags from TIFF files. Those that aren't recognised as "core tags" (those having an associated FIELD_ value, and place for storage in the TIFFDirectory structure) are now read into a dynamic list of extra tags (td_customValues in TIFFDirectory). When a new tag code is encountered for the first time in a given TIFF file, a new anonymous tag definition is created for the tag in the tag definition list. The type, and some other metadata is worked out from the instance encountered. These fields are known as "custom tags". <p> Custom tags can be set and fetched normally using TIFFSetField() and TIFFGetField(), and appear pretty much like normal tags to application code. However, they have no impact on internal libtiff processing (such as compression). Some utilities, such as tiffcp will now copy these custom tags to the new output files. <p> As well as the internal work with custom tags, new C API entry points were added so that extension libraries, such as libgeotiff, could define new tags more easily without accessing internal data structures. Because tag handling of extension tags is done via the "custom fields" mechanism as well, the definition provided externally mostly serves to provide a meaningful name for the tag. The addition of "custom tags" and the altered approach to extending libtiff with externally defined tags is the primary reason for the shift to the 3.6.x version number from 3.5.x.<p> <P><HR WIDTH=65% ALIGN=left> <!---------------------------------------------------------------------------> <A NAME="configure"><B><FONT SIZE=+3>C</FONT>HANGES IN THE SOFTWARE CONFIGURATION:</B></A> <UL> <li> configure, config.site: Fix for large files (>2GiB) support. New option in the config.site: LARGEFILE="yes". Should be enougth for the large files I/O. <li> configure: Set -DPIXARLOG_SUPPORT option along with -DZIP_SUPPORT. <li> html/Makefile.in: Updated to use groffhtml for generating html pages from man pages. <li> configure, libtiff/Makefile.in: Added SCO OpenServer 5.0.6 support from John H. DuBois III. <li> libtiff/{Makefile.vc, libtiff.def}: Missed declarations added. <li> libtiff/Makefile.in, tools/Makefile.in: Shared library will not be stripped when installing, utility binaries will do be stripped. As per bug 93. <li> man/Makefile.in: Patch DESTDIR handling as per bug 95. <li> configure: OpenBSD changes for Sparc64 and DSO version as per bug 96. <li> config.site/configure: added support for OJPEG=yes option to enable OJPEG support from config.site. <li> config.guess, config.sub: Updated from ftp.gnu.org/pub/config. <li> configure: Modify CheckForBigEndian so it can work in a cross compiled situation. <li> configure, libtiff/Makefile.in: Changes for building on MacOS 10.1 as per bug 94. <li> html/Makefile.in: added missing images per bug 92. <li> port/Makefile.in: fixed clean target per bug 92. </UL> <P><HR WIDTH=65% ALIGN=left> <!---------------------------------------------------------------------------> <A NAME="libtiff"><B><FONT SIZE=+3>C</FONT>HANGES IN LIBTIFF:</B></A> <UL> <li> libtiff/tif_getimage.c: New function <A HREF="./man/TIFFReadRGBAImage.3t.html">TIFFReadRGBAImageOriented()</A> implemented to retrieve raster array with user-specified origin position. <li> libtiff/tif_fax3.c: Fix wrong line numbering. <li> libtiff/tif_dirread.c: Check field counter against number of fields. <li> Store a list of opened IFD to prevent directory looping. <li> libtiff/tif_jpeg.c: modified segment_height calculation to always be a full height tile for tiled images. Also changed error to just be a warning. <li> libtiff/tif_lzw.c: fixed so that decoder state isn't allocated till LZWSetupDecode(). Needed to read LZW files in "r+" mode. <li> libtiff/tif_dir.c: fixed up the tif_postdecode settings responsible for byte swapping complex image data. <li> libtiff/tif_open.c: Removed error if opening a compressed file in update mode bug (198). <li> libtiff/tif_write.c: TIFFWriteCheck() now fails if the image is a pre-existing compressed image. That is, image writing to pre-existing compressed images is not allowed. <li> html/man/*.html: Web pages regenerated from man pages. <li> libtiff/tif_jpeg.c: Hack to ensure that "boolean" is defined properly on Windows so as to avoid the structure size mismatch error from libjpeg (bug 188). <li> libtiff/tiff.h: #ifdef USING_VISUALAGE around previous Visual Age AIX porting hack as it screwed up gcc. (bug 39) <li> libtiff/tiff.h: added COMPRESSION_JP2000 (34712) for LEAD tools custom compression. <li> libtiff/tif_dirread.c: Another fix for the fetching SBYTE arrays by the TIFFFetchByteArray() function. (bug 52) <li> libtiff/tif_dirread.c: Expand v[2] to v[4] in TIFFFetchShortPair() as per bug 196. <li> libtiff/tif_lzw.c: Additional consistency checking added in LZWDecode() and LZWDecodeCompat() fixing bugs 190 and 100. <li> libtiff/tif_lzw.c: Added check for valid code lengths in LZWDecode() and LZWDecodeCompat(). Fixes bug 115. <li> tif_getimage.c: Ensure that TIFFRGBAImageBegin() returns the return code from the underlying pick function as per bug 177. <li> libtiff/{tif_jpeg.c,tif_strip.c,tif_print.c}: Hacked tif_jpeg.c to fetch TIFFTAG_YCBCRSUBSAMPLING from the jpeg data stream if it isn't present in the tiff tags as per bug 168. <li> libtiff/tif_jpeg.c: Fixed problem with setting of nrows in JPEGDecode() as per bug 129. <li> libtiff/tif_read.c, libtiff/tif_write.c: TIFFReadScanline() and TIFFWriteScanline() now set tif_row explicitly in case the codec has fooled with the value as per bug 129. <li> libtiff/tif_ojpeg.c: Major upgrade from Scott. Details in bug 156. <li> libtiff/tif_open.c: Pointers to custom procedures in TIFFClientOpen() are checked to be not NULL-pointers. <li> libtiff/tif_lzw.c: Assertions in LZWDecode and LZWDecodeCompat replaced by warnings. Now libtiff should read corrupted LZW-compressed files by skipping bad strips as per bug 100. <li> libtiff/: tif_dirwrite.c, tif_write.c, tiffio.h: <a href=./man/TIFFWriteDirectory.3t.html>TIFFCheckpointDirectory()</a> routine added as per bug 124. The <a href=./man/TIFFWriteDirectory.3t.html>TIFFWriteDirectory</a> man page discusses this new function as well as the related <a href=./man/TIFFWriteDirectory.3t.html>TIFFRewriteDirectory()</a>. <li> libtiff/: tif_codec.c, tif_compress.c, tiffiop.h, tif_getimage.c: Introduced additional members tif->tif_decodestatus and tif->tif_encodestatus for correct handling of unconfigured codecs (we should not try to read data or to define data size without correct codecs). See bug 119. <li> tif_dirread.c: avoid div-by-zero if rowbytes is zero in chop func as per bug 111. <li> libtiff/: tiff.h, tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c, tif_dirwrite.c: Dwight Kelly added get/put code for new tag XMLPACKET as defined in Adobe XMP Technote. Added missing INKSET tag value from TIFF 6.0 spec INKSET_MULTIINK (=2). Added missing tags from Adobe TIFF technotes: CLIPPATH, XCLIPPATHUNITS, YCLIPPATHUNITS, OPIIMAGEID, OPIPROXY and INDEXED. Added PHOTOMETRIC tag value from TIFF technote 4 ICCLAB (=9). <li> libtiff/tif_getimage.c: Additional check for supported codecs added in TIFFRGBAImageOK, TIFFReadRGBAImage, TIFFReadRGBAStrip and TIFFReadRGBATile now use TIFFRGBAImageOK before reading a per bug 110. <li> libtiff/: tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c, tif_dirwrite.c: Added routine <a href=./man/TIFFDataWidth.3t.html>TIFFDataWidth</a> for determining TIFFDataType sizes instead of working with tiffDataWidth array directly as per bug 109. <li>libtiff/: tif_dirinfo.c, tif_dirwrite.c: Added possibility to read broken TIFFs with LONG type used for TIFFTAG_COMPRESSION, TIFFTAG_BITSPERSAMPLE, TIFFTAG_PHOTOMETRIC as per bug 99. <li> libtiff/{tiff.h,tif_fax3.c}: Add support for __arch64__ as per bug 94. <li> libtiff/tif_read.c: Fixed TIFFReadEncodedStrip() to fail if the decodestrip function returns anything not greater than zero as per bug 97. <li> libtiff/tif_jpeg.c: fixed computation of segment_width for tiles files to avoid error about it not matching the cinfo.d.image_width values ("JPEGPreDecode: Improper JPEG strip/tile size.") for ITIFF files. Apparently the problem was incorporated since 3.5.5, presumably during the OJPEG/JPEG work recently. <li> libtiff/tif_getimage.c: If DEFAULT_EXTRASAMPLE_AS_ALPHA is 1 (defined in tiffconf.h - 1 by default) then the RGBA interface will assume that a fourth extra sample is ASSOCALPHA if the EXTRASAMPLE value isn't set for it. This changes the behaviour of the library, but makes it work better with RGBA files produced by lots of applications that don't mark the alpha values properly. As per bugs 93 and 65. <li> libtiff/tif_jpeg.c: allow jpeg data stream sampling values to override those from tiff directory. This makes this work with ImageGear generated files. </UL> <P><HR WIDTH=65% ALIGN=left> <!--------------------------------------------------------------------------> <A NAME="tools"><B><FONT SIZE=+3>C</FONT>HANGES IN THE TOOLS:</B></A> <UL> <li> <a href=./man/tiff2ps.1.html>tiff2ps</a>: Added page size setting when creating PS Level 2. <li> <a href=./man/tiff2ps.1.html>tiff2ps</a>: Fixed PS comment emitted when FlateDecode is being used. <li> <a href=./man/tiffsplit.1.html>tiffsplit</a>: increased the maximum number of pages that can be split. <li> <a href=./man/raw2tiff.1.html>raw2tiff</a>: Added option `-p' to explicitly select color space of input image data. <li> <a href=./man/tiffmedian.1.html>tiffmedian</a>: Suppiort for large (> 2GB) images. <li> <a href=./man/ppm2tiff.1.html>ppm2tiff</a>: Fixed possible endless loop. <li> <a href=./man/tiff2rgba.1.html>tiff2rgba</a>: Switched to use <A HREF="./man/TIFFReadRGBAImage.3t.html">TIFFReadRGBAImageOriented()</A> instead of <A HREF="./man/TIFFReadRGBAImage.3t.html">TIFFReadRGBAImage()</A>. <li> <a href=./man/tiffcmp.1.html>tiffcmp</a>: Fixed problem with unused data comparing (bug 349). `-z' option now can be used to set the number of reported different bytes. <li> <a href=./man/tiffcp.1.html>tiffcp</a>: Added possibility to specify value -1 to -r option to get the entire image as one strip (bug 343). <li> <a href=./man/tiffcp.1.html>tiffcp</a>: Set the correct RowsPerStrip and PageNumber values (bug 343). <li> <a href=./man/fax2tiff.1.html>fax2tiff</a>: Page numbering fixed (bug 341). <li> <a href=./man/ppm2tiff.1.html>ppm2tiff</a>: PPM header parser improved: now able to skip comments. <li> <a href=./man/tiff2ps.1.html>tiff2ps</a>: Force deadzone printing when EPS output specified (bug 325). <li> <a href=./man/tiff2ps.1.html>tiff2ps</a>: Add ability to generate PS Level 3. It basically allows one to use the /flateDecode filter for ZIP compressed TIFF images. Patch supplied by Tom Kacvinsky (bug 328). <li> <a href=./man/tiffcp.1.html>tiffcp</a>: Fixed problem with colorspace conversion for JPEG encoded images (bugs 23 and 275) <li> <a href=./man/fax2tiff.1.html>fax2tiff</a>: Applied patch from Julien Gaulmin. More switches for fax2tiff tool for better control of input and output (bugs 272 and 293). <li> <a href=./man/raw2tiff.1.html>raw2tiff</a>: New utility for turning raw raster images into TIFF files written by Andrey Kiselev. <li> <a href=./man/tiff2ps.1.html>tiff2ps</a>: Sebastian Eken provided patches (bug 200) to add new these new switches: <ul> <li> <b>-b #</b>: for a bottom margin of # inches <li> <b>-c</b>: center image <li> <b>-l #</b>: for a left margin of # inches <li> <b>-r</b>: rotate the image by 180 degrees </ul> Also, new features merged with code for shrinking/overlapping. <li> <a href=./man/tiff2ps.1.html>tiff2ps</a>: Don't emit BeginData/EndData DSC comments since we are unable to properly include the amount to skip as per bug 80. <li> <a href=./man/tiff2ps.1.html>tiff2ps</a>: Added workaround for some software that may crash when last strip of image contains fewer number of scanlines than specified by the `/Height' variable as per bug 164. <li> <a href=./man/tiff2ps.1.html>tiff2ps</a>: Patch from John Williams to add new functionality for tiff2ps utility splitting long images in several pages as per bug 142. New switches: <ul> <li> <b>-H #</b>: split image if height is more than # inches <li> <b>-L #</b>: overLap split images by # inches </ul> <li> <a href=./man/tiff2ps.1.html>tiff2ps</a>: New commandline switches to override resolution units obtained from the input file per bug 131: <ul> <li> <b>-x</b>: override resolution units as centimeters <li> <b>-y</b>: override resolution units as inches </ul> <li> <a href=./man/fax2tiff.1.html>fax2tiff</a>: Updated to reflect latest changes in libtiff per bug 125. <li> tiff2ps: Division by zero fixed as per bug 88. <li> <a href=./man/tiffcp.1.html>tiffcp<a>: Added support for 'Orientation' tag. <li> <a href=./man/tiffdump.1.html>tiffdump</a>: include TIFFTAG_JPEGTABLES in tag list. <li> tiffset: fix bug in error reporting. </UL> <P><HR WIDTH=65% ALIGN=left> <!---------------------------------------------------------------------------> <A NAME="contrib"><B><FONT SIZE=+3>C</FONT>HANGES IN THE CONTRIB AREA:</B></A> <UL> <li> Fixed distribution to include contrib/addtiffo/tif_ovrcache.{c,h}. <li> libtiff/contrib/win95: renamed to contrib/win_dib. Added new Tiffile.cpp example of converting TIFF files into a DIB on Win32 as per bug 143. </UL> <!---------------------------------------------------------------------------> <A NAME="lzwkit"><B><FONT SIZE=+3>C</FONT>HANGES IN THE LZW COMPRESSION KIT:</B></A> <UL> <li> LZW compression kit synchronized with actual libtiff version. </UL> <A HREF="index.html"><IMG SRC="images/back.gif"></A> TIFF home page.<BR> <HR> Last updated $Date: 2016-09-25 20:05:45 $. </BODY> </HTML>
mbelicki/warp
libs/SDL_Image/external/tiff-4.0.8/html/v3.6.0.html
HTML
mit
16,777
<header>òÅÄÁËÔÉÒÏ×ÁÎÉÅ çÒÕÐÐÙ</header> äÁÎÎÁÑ ÆÏÒÍÁ ÐÏÚ×ÏÌÑÅÔ ×ÁÍ ÒÅÄÁËÔÉÒÏ×ÁÔØ ÐÁÒÁÍÅÔÒÙ ÓÕÝÅÓÔ×ÕÀÝÅÊ Unix ÇÒÕÐÐÙ. ÷ÓÅ ÐÁÒÁÍÅÔÒÙ ÇÒÕÐÐÙ ÍÏÖÎÏ ÉÚÍÅÎÉÔØ, ËÒÏÍÅ ÉÍÅÎÉ. <hr>
rcuvgd/Webmin22.01.2016
useradmin/help/edit_group.ru_SU.html
HTML
bsd-3-clause
173
{% extends "base.html" %} {% block preTitle %} {{ project.display_name }} (Build) - {% endblock %} {% block bodyclass %}job_view{% endblock %} {% block extra_head %} <link rel="stylesheet" href="/styles/plugin-status-compiled.css"> {% endblock %} {% block bodyContent %} {% set page = "build" %} <div class="app ng-cloak" ng-app="job-status"> <script> var project = {{ project | scriptjson() | raw }}; var jobs = {{ jobs | scriptjson() | raw }}; var job = {{ job | scriptjson() | raw }}; var showStatus = {{ showStatus | scriptjson() | raw }}; var canAdminProject = {{ canAdminProject === true ? 'true' : 'false' }}; </script> <base href="/{{ page_base }}/"></base> <div id="build-page" class="main" ng-view></div> <script id="build-tpl.html" type="text/ng-template"> <div class="span8"> <div class="row-fluid job-page-intro"> <div class="job-title"> {% pluginblock JobPagePreTitle %}{% endpluginblock %} <h3 class="clearfix"> {% if currentUser %} <span ng-hide="job.running || job.project.access_level < 1" ng-click="startDeploy(job)" title="Retest &amp; Deploy" class="clickable test-and-deploy-action"> <i class="fa fa-cloud-upload"></i> </span> <span ng-hide="job.running || job.project.access_level < 1" ng-click="startTest(job)" title="Retest" class="clickable test-only-action"> <i class="fa fa-refresh"></i> </span> {% endif %} <span class='job-repo'>{{ project.display_name }}</span> <a href="[[ project.display_url ]]" target="_blank"> <i class="fa fa-[[ project.provider.id ]]"></i> </a> {% if currentUser %} <a href="/[[ project.name ]]/config" ng-hide="job.project.access_level < 2" title="Configure" class="btn btn-default pull-right"> <i class="fa fa-wrench"></i> Configure </a> {% endif %} </h3> {% pluginblock JobPagePostTitle %}{% endpluginblock %} </div> </div> <div class='job-main'> <div class='row-fluid job-wrap'> {% pluginblock JobPagePreCols %} {% endpluginblock %} <div class='job-left-col'> <div class="row-fluid [[ job.status ]]" id="build-metadata"> {% include "partials/build_metadata.html" %} </div> <div class='row job-pre-console'> <div class='span12 job-pre-console-inner'> {% pluginblock JobPagePreConsole %} {% endpluginblock %} </div> </div> {% for block in statusBlocks.runner %} <div class="status-{{ loop.key }} plugin-status runner-status {{ block.attrs.class }}" plugin-status="{{ loop.key }}"{% for val in block.attrs %}{% if loop.key != 'class' %} {{ loop.key }}="{{ val }}"{% endif %}{% endfor %}> {{ block.html | raw }} </div> {% endfor %} {% if statusBlocks.provider[project.provider.id] %} <div class="status-{{ loop.key }} plugin-status provider-status {{ block.attrs.class }}" plugin-status="{{ loop.key }}"{% for val in block.attrs %}{% if loop.key != 'class' %} {{ loop.key }}="{{ val }}"{% endif %}{% endfor %}> {{ block.html | raw }} </div> {% endif %} {% for block in statusBlocks.job %} <div class="status-{{ loop.key }} plugin-status job-plugin-status {{ block.attrs.class }}" plugin-status="{{ loop.key }}"{% for val in block.attrs %}{% if loop.key != 'class' %} {{ loop.key }}="{{ val }}"{% endif %}{% endfor %}> {{ block.html | raw }} </div> {% endfor %} <div class="build-error" ng-show="job.status === 'errored' && job.error"> <div class="alert alert-error"> <i class="fa fa-exclamation-triangle"></i> [[ job.error.message ]] <a href="#" class="pull-right" ng-click="toggleErrorDetails()" ng-if="job.error.stack"> <i class="fa fa-ellipsis-h"></i> </a> <pre ng-if="showErrorDetails" ng-show="job.error.stack">[[ job.error.stack ]]</pre> </div> </div> <div class="console-output"> <i class="fa fa-gear fa-light fa-spin loading-icon" ng-show="loading"></i> {% include "build/console.html" %} </div> <div class="footer"> <a href="https://github.com/Strider-CD/strider">Strider-CD <i class="fa fa-github"></i></a> | <a href="https://github.com/Strider-CD/strider/issues?state=open">Get Help / Report a Bug</a> | <a href="http://strider.readthedocs.org/en/latest/intro.html">Docs</a> </div> </div> </div> </div> </div> <div class="span4"> <div class='job-detail-sidebar'> {% include "build/history.html" %} </div> </div> </script> </div> {% pluginblock AfterJobPage %}{% endpluginblock %} {% endblock %}
yonglehou/strider
lib/views/build.html
HTML
mit
5,439
<header>Program zewnętrzny używany zamiast doręczania do skrzynki pocztowej</header> <center><tt>mailbox_command</tt></center> <hr> Ten parametr określa fakultatywne zewnętrzne polecenie wykorzystywane zamiast doręczania do skrzynki pocztowej. Polecenie będzie uruchamiane z&nbsp;prawami odbiorcy i&nbsp;z&nbsp;prawidłowymi ustawieniami <tt>HOME</tt>, <tt>SHELL</tt> i&nbsp;<tt>LOGNAME</tt> w&nbsp;środowisku. Wyjątek: doręczanie dla <tt>root</tt>-a odbywa się jako <tt>$default_user</tt>. <p> Inne interesujące zmienne środowiska: <tt>USER</tt> (nazwa użytkownika będącego odbiorcą), <tt>EXTENSION</tt> (rozszerzenie adresu), <tt>DOMAIN</tt> (domenowa część adresu), i&nbsp;<tt>LOCAL</tt> (lokalna część adresu). <p> W&nbsp;odróżnieniu od innych parametrów konfiguracyjnych Postfiksa, ta opcja nie jest poddana podstawianiu parametrów. Ma to na celu ułatwienie podawania składni powłoki (patrz poniższy przykład). <p> Unikaj metaznaków powłoki, gdyż zmuszą one Postfiksa do uruchomienia kosztownego procesu powłoki. Sam <tt>procmail</tt> jest dostatecznie kosztowny. <p> JEŚLI KORZYSTASZ Z&nbsp;TEJ OPCJI DLA DORĘCZANIA POCZTY W&nbsp;CAŁYM SYSTEMIE, MUSISZ USTAWIĆ ALIAS PRZEKIEROWUJĄCY POCZTĘ DO ROOT-A DO ZWYKŁEGO UŻYTKOWNIKA. <p> Przykłady: <ul> <li><tt>/gdzies/tam/procmail</tt> <li><tt>/gdzies/tam/procmail -a "$EXTENSION"</tt> </ul> <hr>
rcuvgd/Webmin22.01.2016
postfix/help/opt_mailbox_command.pl.UTF-8.html
HTML
bsd-3-clause
1,401
{% extends "layout.html" %} {% block page_title %} Apprenticeships {% endblock %} {% block content %} <script> var whereNow = function() { var goToEmployer = JSON.parse(localStorage.getItem('commitments.isEmployer')); if (goToEmployer == "yes") { window.location.href='../provider-in-progress/provider-list'; } else { window.location.href='employer-confirmation'; } }; </script> <style> .people-nav a { {% include "includes/nav-on-state-css.html" %} } </style> <main id="content" role="main"> {% include "includes/phase_banner_beta_noNav.html" %} {% include "includes/secondary-nav-provider.html" %} <!--div class="breadcrumbs"> <ol role="breadcrumbs"> <li><a href="/{% include "includes/sprint-link.html" %}/balance">Access my funds</a></li> </ol> </div--> <div class="breadcrumbs back-breadcrumb"> <ol role="breadcrumbs"> {% include "includes/breadcrumbs/register-back.html" %} </ol> </div> <div class="grid-row"> <div class="column-two-thirds"> <h1 class="heading-xlarge" >Instructions for your training provider</h1> <p class="lede">Let <span style="font-weight:700">Hackney Skills and Training Ltd</span> know which apprentices you'd like them to add.</p> <form action=""> <fieldset> <legend class="visuallyhidden">provider contact details and message - optional</legend> <div class="form-group"> <label class="form-label-bold" for="message">Instructions</label> <span class="form-hint">For example, please add the 12 admin level 2 apprentices and 13 engineering level 3 apprentices.</span> <textarea class="form-control" id="message" type="text" style="width:100%" rows="5" ></textarea> </div> </fieldset> <input class="button" id="Finish" onclick="whereNow()" type="button" value="Send"> </form> <div style="margin-top:50px"></div> <!-- template to pull in the start tabs so this doesn't get too messy - it is pulling in the tabs --> <!-- {% include "includes/start-tabs.html" %} --> </div> <div class="column-one-third"> <!--aside class="related"> <h2 class="heading-medium" style="margin-top:10px">Existing account</h2> <nav role="navigation"> <ul class="robSideNav"> <li> <a href="../login">Sign in</a> </li> </ul> </nav> </aside--> </div> </div> </main> <script> //jquery that runs the tabs. Uses the jquery.tabs.js from gov.uk {% endblock %}
SkillsFundingAgency/das-alpha-ui
app/views/programmeTwo/register/beta/spend/provider-contact.html
HTML
mit
2,727
<a href='https://github.com/angular/angular.js/edit/v1.4.x/src/ngMessages/messages.js?message=docs(ngMessagesInclude)%3A%20describe%20your%20change...#L482' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit">&nbsp;</i>Improve this Doc</a> <a href='https://github.com/angular/angular.js/tree/v1.4.7/src/ngMessages/messages.js#L482' class='view-source pull-right btn btn-primary'> <i class="glyphicon glyphicon-zoom-in">&nbsp;</i>View Source </a> <header class="api-profile-header"> <h1 class="api-profile-header-heading">ngMessagesInclude</h1> <ol class="api-profile-header-structure naked-list step-list"> <li> - directive in module <a href="api/ngMessages">ngMessages</a> </li> </ol> </header> <div class="api-profile-description"> <p><code>ngMessagesInclude</code> is a directive with the purpose to import existing ngMessage template code from a remote template and place the downloaded template code into the exact spot that the ngMessagesInclude directive is placed within the ngMessages container. This allows for a series of pre-defined messages to be reused and also allows for the developer to determine what messages are overridden due to the placement of the ngMessagesInclude directive.</p> </div> <div> <h2>Directive Info</h2> <ul> <li>This directive creates new scope.</li> <li>This directive executes at priority level 0.</li> </ul> <h2 id="usage">Usage</h2> <div class="usage"> <pre><code class="lang-html">&lt;!-- using attribute directives --&gt; &lt;ANY ng-messages=&quot;expression&quot; role=&quot;alert&quot;&gt; &lt;ANY ng-messages-include=&quot;remoteTplString&quot;&gt;...&lt;/ANY&gt; &lt;/ANY&gt; &lt;!-- or by using element directives --&gt; &lt;ng-messages for=&quot;expression&quot; role=&quot;alert&quot;&gt; &lt;ng-messages-include src=&quot;expressionValue1&quot;&gt;...&lt;/ng-messages-include&gt; &lt;/ng-messages&gt; </code></pre> <p><a href="api/ngMessages">Click here</a> to learn more about <code>ngMessages</code> and <code>ngMessage</code>.</p> </div> <section class="api-section"> <h3>Arguments</h3> <table class="variables-matrix input-arguments"> <thead> <tr> <th>Param</th> <th>Type</th> <th>Details</th> </tr> </thead> <tbody> <tr> <td> ngMessagesInclude | src </td> <td> <a href="" class="label type-hint type-hint-string">string</a> </td> <td> <p>a string value corresponding to the remote template.</p> </td> </tr> </tbody> </table> </section> </div>
bdipaola/DiplomacyScoring
vendor/assets/javascripts/docs/partials/api/ngMessages/directive/ngMessagesInclude.html
HTML
mit
2,671
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="ja"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Style-Type" content="text/css"> <link rel="up" title="FatFs" href="../00index_j.html"> <link rel="alternate" hreflang="en" title="English" href="../en/dstat.html"> <link rel="stylesheet" href="../css_j.css" type="text/css" media="screen" title="ELM Default"> <title>FatFs - disk_status</title> </head> <body> <div class="para func"> <h2>disk_status</h2> <p>ストレージ デバイスの状態を取得します。</p> <pre> DSTATUS disk_status ( BYTE <span class="arg">pdrv</span> <span class="c">/* [IN] 物理ドライブ番号 */</span> ); </pre> </div> <div class="para arg"> <h4>引数</h4> <dl class="par"> <dt>pdrv</dt> <dd>対象のデバイスを識別する物理ドライブ番号(0-9)が指定されます。物理ドライブが1台のときは、常に0になります。</dd> </dl> </div> <div class="para ret"> <h4>戻り値</h4> <p>現在のストレージ デバイスの状態を次のフラグの組み合わせ値で返します。</p> <dl class="ret"> <dt>STA_NOINIT</dt> <dd>デバイスが初期化されていないことを示すフラグ。システム リセットやメディアの取り外し等でセットされ、<tt>disk_initialize</tt>関数の正常終了でクリア、失敗でセットされます。メディア交換は非同期に発生するイベントなので、過去にメディア交換があった場合もこのフラグに反映させる必要があります。FatFsモジュールは、このフラグを参照してマウント動作が必要かどうかを判断します。</dd> <dt>STA_NODISK</dt> <dd>メディアが存在しないことを示すフラグ。メディアが取り外されている間はセットされ、セットされている間はクリアされます。固定ディスクでは常にクリアします。なお、このフラグはFatFsモジュールでは参照されません。</dd> <dt>STA_PROTECT</dt> <dd>メディアがライト プロテクトされていることを示すフラグ。ライト プロテクト機能をサポートしないときは、常にクリアします。リード オンリ構成では参照されません。</dd> </dl> </div> <p class="foot"><a href="../00index_j.html">戻る</a></p> </body> </html>
WarlockD/arm-cortex-v7-unix
stm32f746g-disco_hal_lib/Utilities/FatFs/doc/ja/dstat.html
HTML
apache-2.0
2,446
<html> <head> <title>Check Box</title> </head> <body> <input type="checkbox" id="opt1" value="Option 1" CHECKED> Option 1 <input type="checkbox" name="opt2" value="value2"> Option 2 <input type="checkbox" name="opt2" value="value3" CHECKED> Option 3 <input type="text" id="text1" /> </body> </html>
rahulkavale/scalatest
webapp/find-checkbox.html
HTML
apache-2.0
311
<!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="/static/css/gopherface.css" /> </head> <body> <h1>GopherFace - Video Preview</h1> <div class="sectionContainer"> <div class="imageContainer"> <img src="{{.thumbnailPath}}"> </div> <div class="videoContainer"> <video loop autoplay width="720"> <source src="{{.videoPath}}" type="video/mp4"> Your browser does not support the video tag. </video> </div> </div> </body> </html>
GolangAce/gocodelab
gopherfaceq/templates/videopreview.html
HTML
bsd-3-clause
473
<style> li:first-letter { color: red; } li.green:first-letter { color: green; } </style> <ul style="font-family: Ahem; font-size: 100px; -webkit-font-smoothing: none;"> <li id="target">a</li> </ul> <script> document.body.offsetTop; document.getElementById("target").className = "green"; </script>
nwjs/blink
LayoutTests/fast/dynamic/first-letter-after-list-marker.html
HTML
bsd-3-clause
317
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.8"/> <title>0.9.6: type_vec3.hpp Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectlogo"><img alt="Logo" src="logo.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">0.9.6 </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.8 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File&#160;List</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="dir_885cc87fac2d91e269af0a5a959fa5f6.html">E:</a></li><li class="navelem"><a class="el" href="dir_153b03dd71a7bff437c38ec53cb2e014.html">Source</a></li><li class="navelem"><a class="el" href="dir_0c6652232a835be54bedd6cfd7502504.html">G-Truc</a></li><li class="navelem"><a class="el" href="dir_e2c7faa62a52820b5be8795affd6e495.html">glm</a></li><li class="navelem"><a class="el" href="dir_5cf96241cdcf6779b80e104875f9716f.html">glm</a></li><li class="navelem"><a class="el" href="dir_9b22c367036d391e575f56d067c9855b.html">detail</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">type_vec3.hpp</div> </div> </div><!--header--> <div class="contents"> <a href="a00134.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;</div> <div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="preprocessor">#pragma once</span></div> <div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;</div> <div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="comment">//#include &quot;../fwd.hpp&quot;</span></div> <div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="a00131.html">type_vec.hpp</a>&quot;</span></div> <div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="preprocessor">#ifdef GLM_SWIZZLE</span></div> <div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="preprocessor"># if GLM_HAS_ANONYMOUS_UNION</span></div> <div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="preprocessor"># include &quot;<a class="code" href="a00004.html">_swizzle.hpp</a>&quot;</span></div> <div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="preprocessor"># else</span></div> <div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;<span class="preprocessor"># include &quot;<a class="code" href="a00005.html">_swizzle_func.hpp</a>&quot;</span></div> <div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="preprocessor"># endif</span></div> <div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<span class="preprocessor">#endif //GLM_SWIZZLE</span></div> <div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;<span class="preprocessor">#include &lt;cstddef&gt;</span></div> <div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;</div> <div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;<span class="keyword">namespace </span><a class="code" href="a00145.html">glm</a></div> <div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;{</div> <div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P = defaultp&gt;</div> <div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <span class="keyword">struct </span>tvec3</div> <div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; { </div> <div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <span class="comment">// Implementation detail</span></div> <div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;</div> <div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <span class="keyword">typedef</span> tvec3&lt;T, P&gt; type;</div> <div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <span class="keyword">typedef</span> tvec3&lt;bool, P&gt; bool_type;</div> <div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <span class="keyword">typedef</span> T value_type;</div> <div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;</div> <div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; <span class="comment">// Data</span></div> <div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;</div> <div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;<span class="preprocessor"># if GLM_HAS_ANONYMOUS_UNION</span></div> <div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <span class="keyword">union</span></div> <div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; {</div> <div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; <span class="keyword">struct</span>{ T x, y, z; };</div> <div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <span class="keyword">struct</span>{ T r, g, b; };</div> <div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; <span class="keyword">struct</span>{ T s, t, p; };</div> <div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;</div> <div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;<span class="preprocessor"># ifdef GLM_SWIZZLE</span></div> <div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; _GLM_SWIZZLE3_2_MEMBERS(T, P, tvec2, x, y, z)</div> <div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; _GLM_SWIZZLE3_2_MEMBERS(T, P, tvec2, r, g, b)</div> <div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; _GLM_SWIZZLE3_2_MEMBERS(T, P, tvec2, s, t, p)</div> <div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; _GLM_SWIZZLE3_3_MEMBERS(T, P, tvec3, x, y, z)</div> <div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; _GLM_SWIZZLE3_3_MEMBERS(T, P, tvec3, r, g, b)</div> <div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; _GLM_SWIZZLE3_3_MEMBERS(T, P, tvec3, s, t, p)</div> <div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; _GLM_SWIZZLE3_4_MEMBERS(T, P, tvec4, x, y, z)</div> <div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; _GLM_SWIZZLE3_4_MEMBERS(T, P, tvec4, r, g, b)</div> <div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; _GLM_SWIZZLE3_4_MEMBERS(T, P, tvec4, s, t, p)</div> <div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160;<span class="preprocessor"># endif//GLM_SWIZZLE</span></div> <div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; };</div> <div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160;<span class="preprocessor"># else</span></div> <div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; <span class="keyword">union </span>{ T x, r, s; };</div> <div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; <span class="keyword">union </span>{ T y, g, t; };</div> <div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; <span class="keyword">union </span>{ T z, b, p; };</div> <div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160;</div> <div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160;<span class="preprocessor"># ifdef GLM_SWIZZLE</span></div> <div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; GLM_SWIZZLE_GEN_VEC_FROM_VEC3(T, P, tvec3, tvec2, tvec3, tvec4)</div> <div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;<span class="preprocessor"># endif//GLM_SWIZZLE</span></div> <div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160;<span class="preprocessor"># endif//GLM_LANG</span></div> <div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160;</div> <div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <span class="comment">// Component accesses</span></div> <div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160;</div> <div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160;<span class="preprocessor"># ifdef GLM_FORCE_SIZE_FUNC</span></div> <div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <span class="keyword">typedef</span> <span class="keywordtype">size_t</span> size_type;</div> <div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; GLM_FUNC_DECL GLM_CONSTEXPR size_type size() <span class="keyword">const</span>;</div> <div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160;</div> <div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; GLM_FUNC_DECL T &amp; operator[](size_type i);</div> <div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; GLM_FUNC_DECL T <span class="keyword">const</span> &amp; operator[](size_type i) <span class="keyword">const</span>;</div> <div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160;<span class="preprocessor"># else</span></div> <div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <span class="keyword">typedef</span> length_t length_type;</div> <div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; GLM_FUNC_DECL GLM_CONSTEXPR length_type <a class="code" href="a00151.html#ga18d45e3d4c7705e67ccfabd99e521604">length</a>() <span class="keyword">const</span>;</div> <div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160;</div> <div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; GLM_FUNC_DECL T &amp; operator[](length_type i);</div> <div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; GLM_FUNC_DECL T <span class="keyword">const</span> &amp; operator[](length_type i) <span class="keyword">const</span>;</div> <div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160;<span class="preprocessor"># endif//GLM_FORCE_SIZE_FUNC</span></div> <div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160;</div> <div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; <span class="comment">// Implicit basic constructors</span></div> <div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160;</div> <div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; GLM_FUNC_DECL tvec3();</div> <div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <span class="keyword">template</span> &lt;precision Q&gt;</div> <div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; GLM_FUNC_DECL tvec3(tvec3&lt;T, Q&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160;</div> <div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; <span class="comment">// Explicit basic constructors</span></div> <div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160;</div> <div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; GLM_FUNC_DECL <span class="keyword">explicit</span> tvec3(ctor);</div> <div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; GLM_FUNC_DECL <span class="keyword">explicit</span> tvec3(T <span class="keyword">const</span> &amp; s);</div> <div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; GLM_FUNC_DECL tvec3(T <span class="keyword">const</span> &amp; a, T <span class="keyword">const</span> &amp; b, T <span class="keyword">const</span> &amp; c);</div> <div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160;</div> <div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; <span class="comment">// Conversion scalar constructors</span></div> <div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160;</div> <div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> A, <span class="keyword">typename</span> B, <span class="keyword">typename</span> C&gt;</div> <div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; GLM_FUNC_DECL tvec3(A <span class="keyword">const</span> &amp; a, B <span class="keyword">const</span> &amp; b, C <span class="keyword">const</span> &amp; c);</div> <div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> A, <span class="keyword">typename</span> B, <span class="keyword">typename</span> C&gt;</div> <div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; GLM_FUNC_DECL tvec3(tvec1&lt;A, P&gt; <span class="keyword">const</span> &amp; a, tvec1&lt;B, P&gt; <span class="keyword">const</span> &amp; b, tvec1&lt;C, P&gt; <span class="keyword">const</span> &amp; c);</div> <div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160;</div> <div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; <span class="comment">// Conversion vector constructors</span></div> <div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160;</div> <div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> A, <span class="keyword">typename</span> B, precision Q&gt;</div> <div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; GLM_FUNC_DECL <span class="keyword">explicit</span> tvec3(tvec2&lt;A, Q&gt; <span class="keyword">const</span> &amp; a, B <span class="keyword">const</span> &amp; b);</div> <div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> A, <span class="keyword">typename</span> B, precision Q&gt;</div> <div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; GLM_FUNC_DECL <span class="keyword">explicit</span> tvec3(tvec2&lt;A, Q&gt; <span class="keyword">const</span> &amp; a, tvec1&lt;B, Q&gt; <span class="keyword">const</span> &amp; b);</div> <div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> A, <span class="keyword">typename</span> B, precision Q&gt;</div> <div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; GLM_FUNC_DECL <span class="keyword">explicit</span> tvec3(A <span class="keyword">const</span> &amp; a, tvec2&lt;B, Q&gt; <span class="keyword">const</span> &amp; b);</div> <div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> A, <span class="keyword">typename</span> B, precision Q&gt;</div> <div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; GLM_FUNC_DECL <span class="keyword">explicit</span> tvec3(tvec1&lt;A, Q&gt; <span class="keyword">const</span> &amp; a, tvec2&lt;B, Q&gt; <span class="keyword">const</span> &amp; b);</div> <div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U, precision Q&gt;</div> <div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; GLM_FUNC_DECL <span class="keyword">explicit</span> tvec3(tvec4&lt;U, Q&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160;</div> <div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160;<span class="preprocessor"># ifdef GLM_FORCE_EXPLICIT_CTOR</span></div> <div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U, precision Q&gt;</div> <div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; GLM_FUNC_DECL <span class="keyword">explicit</span> tvec3(tvec3&lt;U, Q&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160;<span class="preprocessor"># else</span></div> <div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U, precision Q&gt;</div> <div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; GLM_FUNC_DECL tvec3(tvec3&lt;U, Q&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160;<span class="preprocessor"># endif</span></div> <div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160;</div> <div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; <span class="comment">// Swizzle constructors</span></div> <div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160;</div> <div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160;<span class="preprocessor"># if GLM_HAS_ANONYMOUS_UNION &amp;&amp; defined(GLM_SWIZZLE)</span></div> <div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; <span class="keyword">template</span> &lt;<span class="keywordtype">int</span> E0, <span class="keywordtype">int</span> E1, <span class="keywordtype">int</span> E2&gt;</div> <div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; GLM_FUNC_DECL tvec3(detail::_swizzle&lt;3, T, P, tvec3&lt;T, P&gt;, E0, E1, E2, -1&gt; <span class="keyword">const</span> &amp; that)</div> <div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; {</div> <div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; *<span class="keyword">this</span> = that();</div> <div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; }</div> <div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160;</div> <div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; <span class="keyword">template</span> &lt;<span class="keywordtype">int</span> E0, <span class="keywordtype">int</span> E1&gt;</div> <div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; GLM_FUNC_DECL tvec3(detail::_swizzle&lt;2, T, P, tvec2&lt;T, P&gt;, E0, E1, -1, -2&gt; <span class="keyword">const</span> &amp; v, T <span class="keyword">const</span> &amp; s)</div> <div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; {</div> <div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; *<span class="keyword">this</span> = tvec3&lt;T, P&gt;(v(), s);</div> <div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; }</div> <div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160;</div> <div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; <span class="keyword">template</span> &lt;<span class="keywordtype">int</span> E0, <span class="keywordtype">int</span> E1&gt;</div> <div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; GLM_FUNC_DECL tvec3(T <span class="keyword">const</span> &amp; s, detail::_swizzle&lt;2, T, P, tvec2&lt;T, P&gt;, E0, E1, -1, -2&gt; <span class="keyword">const</span> &amp; v)</div> <div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; {</div> <div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; *<span class="keyword">this</span> = tvec3&lt;T, P&gt;(s, v());</div> <div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160; }</div> <div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160;<span class="preprocessor"># endif// GLM_HAS_ANONYMOUS_UNION &amp;&amp; defined(GLM_SWIZZLE)</span></div> <div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160;</div> <div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160; <span class="comment">// Unary arithmetic operators</span></div> <div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160;</div> <div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div> <div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; &amp; operator=(tvec3&lt;U, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div> <div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; &amp; operator+=(U s);</div> <div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div> <div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; &amp; operator+=(tvec1&lt;U, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div> <div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; &amp; operator+=(tvec3&lt;U, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div> <div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; &amp; operator-=(U s);</div> <div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div> <div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; &amp; operator-=(tvec1&lt;U, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div> <div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; &amp; operator-=(tvec3&lt;U, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div> <div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; &amp; operator*=(U s);</div> <div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div> <div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; &amp; operator*=(tvec1&lt;U, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00205"></a><span class="lineno"> 205</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div> <div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; &amp; operator*=(tvec3&lt;U, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div> <div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; &amp; operator/=(U s);</div> <div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div> <div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; &amp; operator/=(tvec1&lt;U, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div> <div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; &amp; operator/=(tvec3&lt;U, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160;</div> <div class="line"><a name="l00215"></a><span class="lineno"> 215</span>&#160; <span class="comment">// Increment and decrement operators</span></div> <div class="line"><a name="l00216"></a><span class="lineno"> 216</span>&#160;</div> <div class="line"><a name="l00217"></a><span class="lineno"> 217</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; &amp; operator++();</div> <div class="line"><a name="l00218"></a><span class="lineno"> 218</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; &amp; operator--();</div> <div class="line"><a name="l00219"></a><span class="lineno"> 219</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator++(<span class="keywordtype">int</span>);</div> <div class="line"><a name="l00220"></a><span class="lineno"> 220</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator--(<span class="keywordtype">int</span>);</div> <div class="line"><a name="l00221"></a><span class="lineno"> 221</span>&#160;</div> <div class="line"><a name="l00223"></a><span class="lineno"> 223</span>&#160; <span class="comment">// Unary bit operators</span></div> <div class="line"><a name="l00224"></a><span class="lineno"> 224</span>&#160;</div> <div class="line"><a name="l00225"></a><span class="lineno"> 225</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div> <div class="line"><a name="l00226"></a><span class="lineno"> 226</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; &amp; operator%=(U s);</div> <div class="line"><a name="l00227"></a><span class="lineno"> 227</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div> <div class="line"><a name="l00228"></a><span class="lineno"> 228</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; &amp; operator%=(tvec1&lt;U, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00229"></a><span class="lineno"> 229</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div> <div class="line"><a name="l00230"></a><span class="lineno"> 230</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; &amp; operator%=(tvec3&lt;U, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00231"></a><span class="lineno"> 231</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div> <div class="line"><a name="l00232"></a><span class="lineno"> 232</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; &amp; operator&amp;=(U s);</div> <div class="line"><a name="l00233"></a><span class="lineno"> 233</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div> <div class="line"><a name="l00234"></a><span class="lineno"> 234</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; &amp; operator&amp;=(tvec1&lt;U, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00235"></a><span class="lineno"> 235</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div> <div class="line"><a name="l00236"></a><span class="lineno"> 236</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; &amp; operator&amp;=(tvec3&lt;U, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00237"></a><span class="lineno"> 237</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div> <div class="line"><a name="l00238"></a><span class="lineno"> 238</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; &amp; operator|=(U s);</div> <div class="line"><a name="l00239"></a><span class="lineno"> 239</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div> <div class="line"><a name="l00240"></a><span class="lineno"> 240</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; &amp; operator|=(tvec1&lt;U, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00241"></a><span class="lineno"> 241</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div> <div class="line"><a name="l00242"></a><span class="lineno"> 242</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; &amp; operator|=(tvec3&lt;U, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00243"></a><span class="lineno"> 243</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div> <div class="line"><a name="l00244"></a><span class="lineno"> 244</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; &amp; operator^=(U s);</div> <div class="line"><a name="l00245"></a><span class="lineno"> 245</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div> <div class="line"><a name="l00246"></a><span class="lineno"> 246</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; &amp; operator^=(tvec1&lt;U, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00247"></a><span class="lineno"> 247</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div> <div class="line"><a name="l00248"></a><span class="lineno"> 248</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; &amp; operator^=(tvec3&lt;U, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00249"></a><span class="lineno"> 249</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div> <div class="line"><a name="l00250"></a><span class="lineno"> 250</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; &amp; operator&lt;&lt;=(U s);</div> <div class="line"><a name="l00251"></a><span class="lineno"> 251</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div> <div class="line"><a name="l00252"></a><span class="lineno"> 252</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; &amp; operator&lt;&lt;=(tvec1&lt;U, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00253"></a><span class="lineno"> 253</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div> <div class="line"><a name="l00254"></a><span class="lineno"> 254</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; &amp; operator&lt;&lt;=(tvec3&lt;U, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00255"></a><span class="lineno"> 255</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div> <div class="line"><a name="l00256"></a><span class="lineno"> 256</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; &amp; operator&gt;&gt;=(U s);</div> <div class="line"><a name="l00257"></a><span class="lineno"> 257</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div> <div class="line"><a name="l00258"></a><span class="lineno"> 258</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; &amp; operator&gt;&gt;=(tvec1&lt;U, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00259"></a><span class="lineno"> 259</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div> <div class="line"><a name="l00260"></a><span class="lineno"> 260</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; &amp; operator&gt;&gt;=(tvec3&lt;U, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00261"></a><span class="lineno"> 261</span>&#160; };</div> <div class="line"><a name="l00262"></a><span class="lineno"> 262</span>&#160;</div> <div class="line"><a name="l00263"></a><span class="lineno"> 263</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00264"></a><span class="lineno"> 264</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator+(tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v, T <span class="keyword">const</span> &amp; s);</div> <div class="line"><a name="l00265"></a><span class="lineno"> 265</span>&#160;</div> <div class="line"><a name="l00266"></a><span class="lineno"> 266</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00267"></a><span class="lineno"> 267</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator+(tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v, tvec1&lt;T, P&gt; <span class="keyword">const</span> &amp; s);</div> <div class="line"><a name="l00268"></a><span class="lineno"> 268</span>&#160;</div> <div class="line"><a name="l00269"></a><span class="lineno"> 269</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00270"></a><span class="lineno"> 270</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator+(T <span class="keyword">const</span> &amp; s, tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00271"></a><span class="lineno"> 271</span>&#160;</div> <div class="line"><a name="l00272"></a><span class="lineno"> 272</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00273"></a><span class="lineno"> 273</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator+(tvec1&lt;T, P&gt; <span class="keyword">const</span> &amp; s, tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00274"></a><span class="lineno"> 274</span>&#160;</div> <div class="line"><a name="l00275"></a><span class="lineno"> 275</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00276"></a><span class="lineno"> 276</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator+(tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v1, tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v2);</div> <div class="line"><a name="l00277"></a><span class="lineno"> 277</span>&#160;</div> <div class="line"><a name="l00278"></a><span class="lineno"> 278</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00279"></a><span class="lineno"> 279</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator-(tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v, T <span class="keyword">const</span> &amp; s);</div> <div class="line"><a name="l00280"></a><span class="lineno"> 280</span>&#160;</div> <div class="line"><a name="l00281"></a><span class="lineno"> 281</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00282"></a><span class="lineno"> 282</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator-(tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v, tvec1&lt;T, P&gt; <span class="keyword">const</span> &amp; s);</div> <div class="line"><a name="l00283"></a><span class="lineno"> 283</span>&#160;</div> <div class="line"><a name="l00284"></a><span class="lineno"> 284</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00285"></a><span class="lineno"> 285</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator-(T <span class="keyword">const</span> &amp; s, tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00286"></a><span class="lineno"> 286</span>&#160;</div> <div class="line"><a name="l00287"></a><span class="lineno"> 287</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00288"></a><span class="lineno"> 288</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator-(tvec1&lt;T, P&gt; <span class="keyword">const</span> &amp; s, tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00289"></a><span class="lineno"> 289</span>&#160;</div> <div class="line"><a name="l00290"></a><span class="lineno"> 290</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00291"></a><span class="lineno"> 291</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator-(tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v1, tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v2);</div> <div class="line"><a name="l00292"></a><span class="lineno"> 292</span>&#160;</div> <div class="line"><a name="l00293"></a><span class="lineno"> 293</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00294"></a><span class="lineno"> 294</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator*(tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v, T <span class="keyword">const</span> &amp; s);</div> <div class="line"><a name="l00295"></a><span class="lineno"> 295</span>&#160;</div> <div class="line"><a name="l00296"></a><span class="lineno"> 296</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00297"></a><span class="lineno"> 297</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator*(tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v, tvec1&lt;T, P&gt; <span class="keyword">const</span> &amp; s);</div> <div class="line"><a name="l00298"></a><span class="lineno"> 298</span>&#160;</div> <div class="line"><a name="l00299"></a><span class="lineno"> 299</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00300"></a><span class="lineno"> 300</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator*(T <span class="keyword">const</span> &amp; s, tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00301"></a><span class="lineno"> 301</span>&#160;</div> <div class="line"><a name="l00302"></a><span class="lineno"> 302</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00303"></a><span class="lineno"> 303</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator*(tvec1&lt;T, P&gt; <span class="keyword">const</span> &amp; s, tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00304"></a><span class="lineno"> 304</span>&#160;</div> <div class="line"><a name="l00305"></a><span class="lineno"> 305</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00306"></a><span class="lineno"> 306</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator*(tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v1, tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v2);</div> <div class="line"><a name="l00307"></a><span class="lineno"> 307</span>&#160;</div> <div class="line"><a name="l00308"></a><span class="lineno"> 308</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00309"></a><span class="lineno"> 309</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator/(tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v, T <span class="keyword">const</span> &amp; s);</div> <div class="line"><a name="l00310"></a><span class="lineno"> 310</span>&#160;</div> <div class="line"><a name="l00311"></a><span class="lineno"> 311</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00312"></a><span class="lineno"> 312</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator/(tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v, tvec1&lt;T, P&gt; <span class="keyword">const</span> &amp; s);</div> <div class="line"><a name="l00313"></a><span class="lineno"> 313</span>&#160;</div> <div class="line"><a name="l00314"></a><span class="lineno"> 314</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00315"></a><span class="lineno"> 315</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator/(T <span class="keyword">const</span> &amp; s, tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00316"></a><span class="lineno"> 316</span>&#160;</div> <div class="line"><a name="l00317"></a><span class="lineno"> 317</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00318"></a><span class="lineno"> 318</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator/(tvec1&lt;T, P&gt; <span class="keyword">const</span> &amp; s, tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00319"></a><span class="lineno"> 319</span>&#160;</div> <div class="line"><a name="l00320"></a><span class="lineno"> 320</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00321"></a><span class="lineno"> 321</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator/(tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v1, tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v2);</div> <div class="line"><a name="l00322"></a><span class="lineno"> 322</span>&#160;</div> <div class="line"><a name="l00323"></a><span class="lineno"> 323</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00324"></a><span class="lineno"> 324</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator-(tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00325"></a><span class="lineno"> 325</span>&#160;</div> <div class="line"><a name="l00326"></a><span class="lineno"> 326</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00327"></a><span class="lineno"> 327</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator%(tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v, T <span class="keyword">const</span> &amp; s);</div> <div class="line"><a name="l00328"></a><span class="lineno"> 328</span>&#160;</div> <div class="line"><a name="l00329"></a><span class="lineno"> 329</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00330"></a><span class="lineno"> 330</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator%(tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v, tvec1&lt;T, P&gt; <span class="keyword">const</span> &amp; s);</div> <div class="line"><a name="l00331"></a><span class="lineno"> 331</span>&#160;</div> <div class="line"><a name="l00332"></a><span class="lineno"> 332</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00333"></a><span class="lineno"> 333</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator%(T <span class="keyword">const</span> &amp; s, tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00334"></a><span class="lineno"> 334</span>&#160;</div> <div class="line"><a name="l00335"></a><span class="lineno"> 335</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00336"></a><span class="lineno"> 336</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator%(tvec1&lt;T, P&gt; <span class="keyword">const</span> &amp; s, tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00337"></a><span class="lineno"> 337</span>&#160;</div> <div class="line"><a name="l00338"></a><span class="lineno"> 338</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00339"></a><span class="lineno"> 339</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator%(tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v1, tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v2);</div> <div class="line"><a name="l00340"></a><span class="lineno"> 340</span>&#160;</div> <div class="line"><a name="l00341"></a><span class="lineno"> 341</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00342"></a><span class="lineno"> 342</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator&amp;(tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v, T <span class="keyword">const</span> &amp; s);</div> <div class="line"><a name="l00343"></a><span class="lineno"> 343</span>&#160;</div> <div class="line"><a name="l00344"></a><span class="lineno"> 344</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00345"></a><span class="lineno"> 345</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator&amp;(tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v, tvec1&lt;T, P&gt; <span class="keyword">const</span> &amp; s);</div> <div class="line"><a name="l00346"></a><span class="lineno"> 346</span>&#160;</div> <div class="line"><a name="l00347"></a><span class="lineno"> 347</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00348"></a><span class="lineno"> 348</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator&amp;(T <span class="keyword">const</span> &amp; s, tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00349"></a><span class="lineno"> 349</span>&#160;</div> <div class="line"><a name="l00350"></a><span class="lineno"> 350</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00351"></a><span class="lineno"> 351</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator&amp;(tvec1&lt;T, P&gt; <span class="keyword">const</span> &amp; s, tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00352"></a><span class="lineno"> 352</span>&#160;</div> <div class="line"><a name="l00353"></a><span class="lineno"> 353</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00354"></a><span class="lineno"> 354</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator&amp;(tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v1, tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v2);</div> <div class="line"><a name="l00355"></a><span class="lineno"> 355</span>&#160;</div> <div class="line"><a name="l00356"></a><span class="lineno"> 356</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00357"></a><span class="lineno"> 357</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator|(tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v, T <span class="keyword">const</span> &amp; s);</div> <div class="line"><a name="l00358"></a><span class="lineno"> 358</span>&#160;</div> <div class="line"><a name="l00359"></a><span class="lineno"> 359</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00360"></a><span class="lineno"> 360</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator|(tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v, tvec1&lt;T, P&gt; <span class="keyword">const</span> &amp; s);</div> <div class="line"><a name="l00361"></a><span class="lineno"> 361</span>&#160;</div> <div class="line"><a name="l00362"></a><span class="lineno"> 362</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00363"></a><span class="lineno"> 363</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator|(T <span class="keyword">const</span> &amp; s, tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00364"></a><span class="lineno"> 364</span>&#160;</div> <div class="line"><a name="l00365"></a><span class="lineno"> 365</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00366"></a><span class="lineno"> 366</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator|(tvec1&lt;T, P&gt; <span class="keyword">const</span> &amp; s, tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00367"></a><span class="lineno"> 367</span>&#160;</div> <div class="line"><a name="l00368"></a><span class="lineno"> 368</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00369"></a><span class="lineno"> 369</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator|(tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v1, tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v2);</div> <div class="line"><a name="l00370"></a><span class="lineno"> 370</span>&#160;</div> <div class="line"><a name="l00371"></a><span class="lineno"> 371</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00372"></a><span class="lineno"> 372</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator^(tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v, T <span class="keyword">const</span> &amp; s);</div> <div class="line"><a name="l00373"></a><span class="lineno"> 373</span>&#160;</div> <div class="line"><a name="l00374"></a><span class="lineno"> 374</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00375"></a><span class="lineno"> 375</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator^(tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v, tvec1&lt;T, P&gt; <span class="keyword">const</span> &amp; s);</div> <div class="line"><a name="l00376"></a><span class="lineno"> 376</span>&#160;</div> <div class="line"><a name="l00377"></a><span class="lineno"> 377</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00378"></a><span class="lineno"> 378</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator^(T <span class="keyword">const</span> &amp; s, tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00379"></a><span class="lineno"> 379</span>&#160;</div> <div class="line"><a name="l00380"></a><span class="lineno"> 380</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00381"></a><span class="lineno"> 381</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator^(tvec1&lt;T, P&gt; <span class="keyword">const</span> &amp; s, tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00382"></a><span class="lineno"> 382</span>&#160;</div> <div class="line"><a name="l00383"></a><span class="lineno"> 383</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00384"></a><span class="lineno"> 384</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator^(tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v1, tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v2);</div> <div class="line"><a name="l00385"></a><span class="lineno"> 385</span>&#160;</div> <div class="line"><a name="l00386"></a><span class="lineno"> 386</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00387"></a><span class="lineno"> 387</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator&lt;&lt;(tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v, T <span class="keyword">const</span> &amp; s);</div> <div class="line"><a name="l00388"></a><span class="lineno"> 388</span>&#160;</div> <div class="line"><a name="l00389"></a><span class="lineno"> 389</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00390"></a><span class="lineno"> 390</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator&lt;&lt;(tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v, tvec1&lt;T, P&gt; <span class="keyword">const</span> &amp; s);</div> <div class="line"><a name="l00391"></a><span class="lineno"> 391</span>&#160;</div> <div class="line"><a name="l00392"></a><span class="lineno"> 392</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00393"></a><span class="lineno"> 393</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator&lt;&lt;(T const &amp; s, tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00394"></a><span class="lineno"> 394</span>&#160;</div> <div class="line"><a name="l00395"></a><span class="lineno"> 395</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00396"></a><span class="lineno"> 396</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator&lt;&lt;(tvec1&lt;T, P&gt; <span class="keyword">const</span> &amp; s, tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00397"></a><span class="lineno"> 397</span>&#160;</div> <div class="line"><a name="l00398"></a><span class="lineno"> 398</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00399"></a><span class="lineno"> 399</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator&lt;&lt;(tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v1, tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v2);</div> <div class="line"><a name="l00400"></a><span class="lineno"> 400</span>&#160;</div> <div class="line"><a name="l00401"></a><span class="lineno"> 401</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00402"></a><span class="lineno"> 402</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator&gt;&gt;(tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v, T <span class="keyword">const</span> &amp; s);</div> <div class="line"><a name="l00403"></a><span class="lineno"> 403</span>&#160;</div> <div class="line"><a name="l00404"></a><span class="lineno"> 404</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00405"></a><span class="lineno"> 405</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator&gt;&gt;(tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v, tvec1&lt;T, P&gt; <span class="keyword">const</span> &amp; s);</div> <div class="line"><a name="l00406"></a><span class="lineno"> 406</span>&#160;</div> <div class="line"><a name="l00407"></a><span class="lineno"> 407</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00408"></a><span class="lineno"> 408</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator&gt;&gt;(T <span class="keyword">const</span> &amp; s, tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00409"></a><span class="lineno"> 409</span>&#160;</div> <div class="line"><a name="l00410"></a><span class="lineno"> 410</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00411"></a><span class="lineno"> 411</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator&gt;&gt;(tvec1&lt;T, P&gt; <span class="keyword">const</span> &amp; s, tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00412"></a><span class="lineno"> 412</span>&#160;</div> <div class="line"><a name="l00413"></a><span class="lineno"> 413</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div> <div class="line"><a name="l00414"></a><span class="lineno"> 414</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator&gt;&gt;(tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v1, tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v2);</div> <div class="line"><a name="l00415"></a><span class="lineno"> 415</span>&#160;</div> <div class="line"><a name="l00416"></a><span class="lineno"> 416</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt; </div> <div class="line"><a name="l00417"></a><span class="lineno"> 417</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; operator~(tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v);</div> <div class="line"><a name="l00418"></a><span class="lineno"> 418</span>&#160;}<span class="comment">//namespace glm</span></div> <div class="line"><a name="l00419"></a><span class="lineno"> 419</span>&#160;</div> <div class="line"><a name="l00420"></a><span class="lineno"> 420</span>&#160;<span class="preprocessor">#ifndef GLM_EXTERNAL_TEMPLATE</span></div> <div class="line"><a name="l00421"></a><span class="lineno"> 421</span>&#160;<span class="preprocessor">#include &quot;type_vec3.inl&quot;</span></div> <div class="line"><a name="l00422"></a><span class="lineno"> 422</span>&#160;<span class="preprocessor">#endif//GLM_EXTERNAL_TEMPLATE</span></div> <div class="ttc" id="a00005_html"><div class="ttname"><a href="a00005.html">_swizzle_func.hpp</a></div><div class="ttdoc">OpenGL Mathematics (glm.g-truc.net) </div></div> <div class="ttc" id="a00151_html_ga18d45e3d4c7705e67ccfabd99e521604"><div class="ttname"><a href="a00151.html#ga18d45e3d4c7705e67ccfabd99e521604">glm::length</a></div><div class="ttdeci">GLM_FUNC_DECL T length(vecType&lt; T, P &gt; const &amp;x)</div><div class="ttdoc">Returns the length of x, i.e., sqrt(x * x). </div></div> <div class="ttc" id="a00145_html"><div class="ttname"><a href="a00145.html">glm</a></div><div class="ttdef"><b>Definition:</b> <a href="a00003_source.html#l00039">_noise.hpp:39</a></div></div> <div class="ttc" id="a00131_html"><div class="ttname"><a href="a00131.html">type_vec.hpp</a></div><div class="ttdoc">OpenGL Mathematics (glm.g-truc.net) </div></div> <div class="ttc" id="a00004_html"><div class="ttname"><a href="a00004.html">_swizzle.hpp</a></div><div class="ttdoc">OpenGL Mathematics (glm.g-truc.net) </div></div> </div><!-- fragment --></div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated by &#160;<a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.8 </small></address> </body> </html>
ronsaldo/loden
thirdparty/glm/doc/api/a00134_source.html
HTML
mit
67,346
<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="refresh" content="0;URL=../../libc/enum.fpos64_t.html"> </head> <body> <p>Redirecting to <a href="../../libc/enum.fpos64_t.html">../../libc/enum.fpos64_t.html</a>...</p> <script>location.replace("../../libc/enum.fpos64_t.html" + location.search + location.hash);</script> </body> </html>
ssgrn/Rust-Matrix-Computations
target/doc/libc/unix/enum.fpos64_t.html
HTML
mit
357
<html><body><span wicket:id="label"><img alt="logo" src="../logo.png"><br>Some text<br>Some more text</span></body></html>
dashorst/wicket
wicket-core/src/test/java/org/apache/wicket/markup/parser/filter/DynamicMarkupPageWithNonClosedTags_expected.html
HTML
apache-2.0
122
{% include vars.html %} <nav class="navbar navbar-full navbar-fixed-top navbar-dark"> <div class="container"> <a class="navbar-brand" href="{{url_base}}/"> {% include svg/logo-flow-nav.svg %} <span class="sr-only">Flow</span> </a> <div class="clearfix hidden-lg-up"> <button class="navbar-toggler float-xs-right" type="button" data-toggle="collapse" data-target="#navbar" aria-controls="exCollapsingNavbar2" aria-expanded="false" aria-label="Toggle navigation"> <!-- &#9776; --> </button> </div> <div class="collapse navbar-toggleable-md" id="navbar"> <ul class="nav navbar-nav"> <li class="nav-item"> <a class="nav-link" href="{{url_base}}/docs/getting-started/">{{i18n.navbar_getting_started}}</a> </li> <li class="nav-item"> <a class="nav-link" href="{{url_base}}/docs/">{{i18n.navbar_documentation}}</a> </li> <li class="nav-item"> <a class="nav-link" href="{{base_url}}/try/">{{i18n.navbar_try}}</a> </li> <li class="nav-item"> <a class="nav-link" href="{{base_url}}/blog/">{{i18n.navbar_blog}}</a> </li> </ul> <ul class="nav navbar-nav float-lg-right"> {% assign path = page.url | split: '/' %} {% unless true || path[1] == 'blog' %} <li class="nav-item dropdown"> <a id="dropdownNavLanguage" class="nav-link dropdown-toggle" role="button" href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> {% include svg/icon-language.svg class="navbar-icon" %} <span class="navbar-language-label">{{lang.name}}</span> </a> <div class="dropdown-menu" aria-labelledby="dropdownNavLanguage"> {% for language in site.data.languages %} {% if language.enabled %} <a href="{{site.baseurl}}/{{language.tag}}/{{url_relative}}" class="dropdown-item{% if lang.tag == language.tag %} active{% endif %}" data-lang="{{language.accept_languages[0]}}"> {{language.name}} </a> {% endif %} {% endfor %} </div> </li> {% endunless %} <li class="nav-item"> <a class="nav-link" href="https://twitter.com/flowtype"> {% include svg/icon-twitter.svg class="navbar-icon" %} <span class="sr-only">{{i18n.navbar_twitter}}</span> </a> </li> <li class="nav-item"> <a class="nav-link" href="http://stackoverflow.com/questions/tagged/flowtype"> {% include svg/icon-stackoverflow.svg class="navbar-icon" %} <span class="sr-only">{{i18n.navbar_stackoverflow}}</span> </a> </li> <li class="nav-item"> <a class="nav-link" href="https://github.com/facebook/flow"> {% include svg/icon-github.svg class="navbar-icon" %} <span class="sr-only">{{i18n.navbar_github}}</span> </a> </li> </ul> </div> </div> </nav>
JonathanUsername/flow
website/_includes/navbar.html
HTML
mit
3,153
<div>Does not close properly<div>Nested same level as next div</div></div><div>Will be nested, but should be top level</div>
creationix/haml-js
test/div_nesting.html
HTML
mit
124
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> <html> <head> <title>The Epytext Markup Language</title> <link rel="stylesheet" href="epydoc.css" type="text/css"/> </head> <!-- $Id: epytext.html 1211 2006-04-10 19:38:37Z edloper $ --> <body> <div class="body"> <h1>The Epytext Markup Language</h1> <a name="overview"/> <h2> 1. Overview </h2> <p> Epytext is a lightweight markup language for Python docstrings. The epytext markup language is used by epydoc to parse docstrings and create structured API documentation. Epytext markup is broken up into the following categories: </p> <ul> <li> <b><i>Block Structure</i></b> divides the docstring into nested blocks of text, such as paragraphs and lists. <ul> <li> <b><i>Basic Blocks</i></b> are the basic unit of block structure. </li> <li> <b><i>Hierarchical blocks</i></b> represent the nesting structure of the docstring. </li> </ul> </li> <li> <b><i>Inline Markup</i></b> marks regions of text within a basic block with properties, such as italics and hyperlinks. </li> </ul> <!-- =========== BLOCK STRUCTURE ============= --> <a name="block_structure"/> <h2> 2. Block Structure </h2> <p> Block structure is encoded using indentation, blank lines, and a handful of special character sequences. </p> <ul> <li> Indentation is used to encode the nesting structure of hierarchical blocks. The indentation of a line is defined as the number of leading spaces on that line; and the indentation of a block is typically the indentation of its first line. </li> <li> Blank lines are used to separate blocks. A blank line is a line that only contains whitespace. </li> <li> Special character sequences are used to mark the beginnings of some blocks. For example, "<code>-</code>" is used as a bullet for unordered list items, and "<code>&gt;&gt;&gt;</code>" is used to mark doctest blocks. </li> </ul> <p> The following sections describe how to use each type of block structure. </p> <a name="paragraph"/> <h3> 2.1. Paragraphs </h3> <p> A paragraph is the simplest type of basic block. It consists of one or more lines of text. Paragraphs must be left justified (i.e., every line must have the same indentation). The following example illustrates how paragraphs can be used: </p> <table border="1" cellspacing="0" cellpadding="3" width="95%"> <tr><th width="50%">Docstring Input</th><th width="50%">Rendered Output</th> <tr valign="top"><td> <pre> <code class="keyword">def</code> <code class="function">example</code>(): <code class="string">""" This is a paragraph. Paragraphs can span multiple lines, and can contain I{inline markup}. This is another paragraph. Paragraphs are separated by blank lines. """</code> <i>[...]</i> </pre> </td><td> <p> This is a paragraph. Paragraphs can span multiple lines, and contain <i>inline markup</i>. </p> <p> This is another paragraph. Paragraphs are separated from each other by blank lines. </p> </td></tr> </table> <a name="list"/> <h3> 2.2. Lists </h3> <p> Epytext supports both ordered and unordered lists. A list consists of one or more consecutive <i>list items</i> of the same type (ordered or unordered), with the same indentation. Each list item is marked by a <i>bullet</i>. The bullet for unordered list items is a single dash character ("<code>-</code>"). Bullets for ordered list items consist of a series of numbers followed by periods, such as "<code>12.</code>" or "<code>1.2.8.</code>". </p> <p> List items typically consist of a bullet followed by a space and a single paragraph. The paragraph may be indented more than the list item's bullet; often, the paragraph is intended two or three characters, so that its left margin lines up with the right side of the bullet. The following example illustrates a simple ordered list. </p> <table border="1" cellspacing="0" cellpadding="3" width="95%"> <tr><th width="50%">Docstring Input</th><th width="50%">Rendered Output</th> <tr valign="top"><td> <pre> <code class="keyword">def</code> <code class="function">example</code>(): <code class="string">""" 1. This is an ordered list item. 2. This is a another ordered list item. 3. This is a third list item. Note that the paragraph may be indented more than the bullet. """</code> <i>[...]</i> </pre> </td><td> <ol> <li> This is an ordered list item. </li> <li> This is another ordered list item. </li> <li> This is a third list item. Note that the paragraph may be indented more than the bullet.</li> </td></tr> </table> <p> List items can contain more than one paragraph; and they can also contain sublists, literal blocks, and doctest blocks. All of the blocks contained by a list item must all have equal indentation, and that indentation must be greater than or equal to the indentation of the list item's bullet. If the first contained block is a paragraph, it may appear on the same line as the bullet, separated from the bullet by one or more spaces, as shown in the previous example. All other block types must follow on separate lines. </p> <p> Every list must be separated from surrounding blocks by indentation: </p> <table border="1" cellspacing="0" cellpadding="3" width="95%"> <tr><th width="50%">Docstring Input</th><th width="50%">Rendered Output</th> <tr valign="top"><td> <pre> <code class="keyword">def</code> <code class="function">example</code>(): <code class="string">""" This is a paragraph. 1. This is a list item. 2. This a second list item. - This is a sublist """</code> <i>[...]</i> </pre> </td><td> This is a paragraph. <ol> <li> This is a list item. </li> <li> This is a second list item. <ul><li>This is a sublist.</li></ul></li> </ol> </td></tr> </table> <p> Note that sublists must be separated from the blocks in their parent list item by indentation. In particular, the following docstring generates an error, since the sublist is not separated from the paragraph in its parent list item by indentation: </p> <table border="1" cellspacing="0" cellpadding="3" width="95%"> <tr><th width="50%">Docstring Input</th><th width="50%">Rendered Output</th> <tr valign="top"><td> <pre> <code class="keyword">def</code> <code class="function">example</code>(): <code class="string">""" 1. This is a list item. Its paragraph is indented 7 spaces. - This is a sublist. It is indented 7 spaces. """</code> <i>[...]</i> </pre> </td><td> <b>L5: Error: Lists must be indented.</b> </td></tr> </table> <p> The following example illustrates how lists can be used: </p> <table border="1" cellspacing="0" cellpadding="3" width="95%"> <tr><th width="50%">Docstring Input</th><th width="50%">Rendered Output</th> <tr valign="top"><td> <pre> <code class="keyword">def</code> <code class="function">example</code>(): <code class="string">""" This is a paragraph. 1. This is a list item. - This is a sublist. - The sublist contains two items. - The second item of the sublist has its own sublist. 2. This list item contains two paragraphs and a doctest block. &gt;&gt;&gt; print 'This is a doctest block' This is a doctest block This is the second paragraph. """</code> <i>[...]</i> </pre> </td><td> This is a paragraph. <ol> <li> This is a list item. </li> <ul> <li> This is a sublist. </li> <li> The sublist contains two items. </li> <ul> <li> The second item of the sublist has its own own sublist. </li> </ul> </ul> <li> This list item contains two paragraphs and a doctest block. <pre> <code class="prompt">&gt;&gt;&gt;</code> <code class="keyword">print</code> <code class="string">'This is a doctest block'</code> <code class="output">This is a doctest block</code></pre> <p> This is the second paragraph. </p> </li> </ol> </td></tr> </table> <p> Epytext will treat any line that begins with a bullet as a list item. If you want to include bullet-like text in a paragraph, then you must either ensure that it is not at the beginning of the line, or use <a href="#escaping">escaping</a> to prevent epytext from treating it as markup: </p> <table border="1" cellspacing="0" cellpadding="3" width="95%"> <tr><th width="50%">Docstring Input</th><th width="50%">Rendered Output</th> <tr valign="top"><td> <pre> <code class="keyword">def</code> <code class="function">example</code>(): <code class="string">""" This sentence ends with the number 1. Epytext can't tell if the "1." is a bullet or part of the paragraph, so it generates an error. """</code> <i>[...]</i> </pre> </td><td> <b> L4: Error: Lists must be indented. </b> </td></tr> <tr valign="top"><td> <pre> <code class="keyword">def</code> <code class="function">example</code>(): <code class="string">""" This sentence ends with the number 1. This sentence ends with the number E{1}. """</code> <i>[...]</i> </pre> </td><td> This sentence ends with the number 1. <p> This sentence ends with the number 1.</p> </td></tr> </table> <a name="section"/> <h3> 2.3. Sections </h3> <p> A section consists of a heading followed by one or more child blocks. </p> <ul> <li> The heading is a single underlined line of text. Top-level section headings are underlined with the "=" character; subsection headings are underlined with the "-" character; and subsubsection headings are underlined with the "~" character. The length of the underline must exactly match the length of the heading.</li> <li> The child blocks can be paragraphs, lists, literal blocks, doctest blocks, or sections. Each child must have equal indentation, and that indentation must be greater than or equal to the heading's indentation. </li> </ul> <p> The following example illustrates how sections can be used: </p> <table border="1" cellspacing="0" cellpadding="3" width="95%"> <tr><th width="50%">Docstring Input</th><th width="50%">Rendered Output</th> <tr valign="top"><td> <pre> <code class="keyword">def</code> <code class="function">example</code>(): <code class="string">""" This paragraph is not in any section. Section 1 ========= This is a paragraph in section 1. Section 1.1 ----------- This is a paragraph in section 1.1. Section 2 ========= This is a paragraph in section 2. """</code> <i>[...]</i> </pre> </td><td> <b><font size="+2">Section 1</font></b><br> This is a paragraph in section 1. <br><br> <b><font size="+1">Section 1.1</font></b><br> This is a paragraph in section 1.1. <br><br> <b><font size="+2">Section 2</font></b><br> This is a paragraph in section 2. </table> <a name="literal"/> <h3> 2.4. Literal Blocks </h3> <p> Literal blocks are used to represent "preformatted" text. Everything within a literal block should be displayed exactly as it appears in plaintext. In particular: </p> <ul> <li> Spaces and newlines are preserved. </li> <li> Text is shown in a monospaced font. </li> <li> Inline markup is not detected. </li> </ul> <p> Literal blocks are introduced by paragraphs ending in the special sequence "<code>::</code>". Literal blocks end at the first line whose indentation is equal to or less than that of the paragraph that introduces them. The following example shows how literal blocks can be used: </p> <table border="1" cellspacing="0" cellpadding="3" width="95%"> <tr><th width="50%">Docstring Input</th><th width="50%">Rendered Output</th> <tr valign="top"><td> <pre> <code class="keyword">def</code> <code class="function">example</code>(): <code class="string">""" The following is a literal block:: Literal / / Block This is a paragraph following the literal block. """</code> <i>[...]</i> </pre> </td><td> <p>The following is a literal block:</p> <pre> Literal / / Block </pre> <p>This is a paragraph following the literal block.</p> </table> <p> Literal blocks are indented relative to the paragraphs that introduce them; for example, in the previous example, the word "Literal" is displayed with four leading spaces, not eight. Also, note that the double colon ("<code>::</code>") that introduces the literal block is rendered as a single colon. </p> <a name="doctest"/> <h3> 2.5. Doctest Blocks </h3> <p> Doctest blocks contain examples consisting of Python expressions and their output. Doctest blocks can be used by the <a href="http://www.python.org/doc/current/lib/module-doctest.html">doctest</a> module to test the documented object. Doctest blocks begin with the special sequence "<code>&gt;&gt;&gt;</code>". Doctest blocks are delimited from surrounding blocks by blank lines. Doctest blocks may not contain blank lines. The following example shows how doctest blocks can be used: </p> <table border="1" cellspacing="0" cellpadding="3" width="95%"> <tr><th width="50%">Docstring Input</th><th width="50%">Rendered Output</th> <tr valign="top"><td> <pre> <code class="keyword">def</code> <code class="function">example</code>(): <code class="string">""" The following is a doctest block: &gt;&gt;&gt; print (1+3, ... 3+5) (4, 8) &gt;&gt;&gt; 'a-b-c-d-e'.split('-') ['a', 'b', 'c', 'd', 'e'] This is a paragraph following the doctest block. """</code> <i>[...]</i> </pre> </td><td> <p> The following is a doctest block: </p> <pre> <code class="prompt">&gt;&gt;&gt;</code> <code class="keyword">print</code> <code class="pycode">(1+3,</code> <code class="prompt">...</code> <code class="pycode">3+5)</code> <code class="output">(4, 8)</code> <code class="prompt">&gt;&gt;&gt;</code> <code class="string">'a-b-c-d-e'</code><code class="pycode">.split('-')</code> <code class="output">['a', 'b', 'c', 'd', 'e']</code> </pre> <p>This is a paragraph following the doctest block.</p> </table> <a name="fieldlist"/> <h3> 2.6. Fields </h3> <p> Fields are used to describe specific properties of a documented object. For example, fields can be used to define the parameters and return value of a function; the instance variables of a class; and the author of a module. Each field is marked by a <i>field tag</i>, which consist of an at sign ("<code>@</code>") followed by a <i>field name</i>, optionally followed by a space and a <i>field argument</i>, followed by a colon ("<code>:</code>"). For example, "<code>@return:</code>" and "<code>@param&nbsp;x:</code>" are field tags. </p> <p> Fields can contain paragraphs, lists, literal blocks, and doctest blocks. All of the blocks contained by a field must all have equal indentation, and that indentation must be greater than or equal to the indentation of the field's tag. If the first contained block is a paragraph, it may appear on the same line as the field tag, separated from the field tag by one or more spaces. All other block types must follow on separate lines. </p> <p> Fields must be placed at the end of the docstring, after the description of the object. Fields may be included in any order. </p> <p> Fields do not need to be separated from other blocks by a blank line. Any line that begins with a field tag followed by a space or newline is considered a field. </p> <p> The following example illustrates how fields can be used: </p> <table border="1" cellspacing="0" cellpadding="3" width="95%"> <tr><th width="50%">Docstring Input</th><th width="50%">Rendered Output</th> <tr valign="top"><td> <pre> <code class="keyword">def</code> <code class="function">example</code>(): <code class="string">""" <code class="field">@param x:</code> This is a description of the parameter x to a function. Note that the description is indented four spaces. <code class="field">@type x:</code> This is a description of x's type. <code class="field">@return:</code> This is a description of the function's return value. It contains two paragraphs. """</code> <i>[...]</i> </pre> </td><td> <dl><dt><b>Parameters:</b></dt> <dd><code><b>x</b></code> - This is a description of the parameter x to a function. Note that the description is indented four spaces. <br><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (type=This is a description of x's type.)</i> </dd> </dl> <dl><dt><b>Returns:</b></dt> <dd> This is a description of the function's return value. <p>It contains two paragraphs.</p> </dd> </td></tr> </table> <p> For a list of the fields that are supported by epydoc, see the <a href="fields.html#fields">epydoc fields page</a>. <!-- =========== INLINE MARKUP ============= --> <a name="inline"/> <h2> 3. Inline Markup </h2> <p> Inline markup has the form "<i>x</i><code>{</code>...<code>}</code>", where "<i>x</i>" is a single capital letter that specifies how the text between the braces should be rendered. Inline markup is recognized within paragraphs and section headings. It is <i>not</i> recognized within literal and doctest blocks. Inline markup can contain multiple words, and can span multiple lines. Inline markup may be nested. </p> <p> A matching pair of curly braces is only interpreted as inline markup if the left brace is immediately preceeded by a capital letter. So in most cases, you can use curly braces in your text without any form of escaping. However, you <i>do</i> need to escape curly braces when: </p> <ol> <li> You want to include a single (un-matched) curly brace. <li> You want to preceed a matched pair of curly braces with a capital letter. </li> </ol> <p> Note that there is no valid Python expression where a pair of matched curly braces is immediately preceeded by a capital letter (except within string literals). In particular, you never need to escape braces when writing Python dictionaries. See <a href="#escaping">section 3.5</a> for a discussion of escaping. </p> <a name="basic_inline"/> <h3> 3.1. Basic Inline Markup </h3> <p> Epytext defines four types of inline markup that specify how text should be displayed: </p> <ul> <li> <code>I{</code>...<code>}</code>: Italicized text. </li> <li> <code>B{</code>...<code>}</code>: Bold-faced text. </li> <li> <code>C{</code>...<code>}</code>: Source code or a Python identifier. </li> <li> <code>M{</code>...<code>}</code>: A mathematical expression. </li> </ul> <p> By default, source code is rendered in a fixed width font; and mathematical expressions are rendered in italics. But those defaults may be changed by modifying the CSS stylesheet. The following example illustrates how the four basic markup types can be used: </p> <table border="1" cellspacing="0" cellpadding="3" width="95%"> <tr><th width="50%">Docstring Input</th><th width="50%">Rendered Output</th> <tr valign="top"><td> <pre> <code class="keyword">def</code> <code class="function">example</code>(): <code class="string">""" I{B{Inline markup} may be nested; and it may span} multiple lines. - I{Italicized text} - B{Bold-faced text} - C{Source code} - M{Math} Without the capital letter, matching braces are not interpreted as markup: C{my_dict={1:2, 3:4}}. """</code> <i>[...]</i> </pre> </td><td> <i><b>Inline markup</b> may be nested; and it may span</i> multiple lines. <ul> <li> <i>Italicized text</i> </li> <li> <b>Bold-faced text</b> </li> <li> <code>Source code</code> </li> <li> Math: <i>m*x+b</i> </li> </ul> Without the capital letter, matching braces are not interpreted as markup: <code>my_dict={1:2, 3:4}</code>. </td></tr> </table> <a name="urls"/> <h3> 3.2. URLs </h3> <p> The inline markup construct "<code>U{</code><i>text</i><code>&lt;</code><i>url</i><code>&gt;}</code>" is used to create links to external URLs and URIs. "<i>Text</i>" is the text that should be displayed for the link, and "<i>url</i>" is the target of the link. If you wish to use the URL as the text for the link, you can simply write "<code>U{</code><i>url</i><code>}</code>". Whitespace within URL targets is ignored. In particular, URL targets may be split over multiple lines. The following example illustrates how URLs can be used: </p> <table border="1" cellspacing="0" cellpadding="3" width="95%"> <tr><th width="50%">Docstring Input</th><th width="50%">Rendered Output</th> <tr valign="top"><td rowspan="2"> <pre> <code class="keyword">def</code> <code class="function">example</code>(): <code class="string">""" - U{www.python.org} - U{http://www.python.org} - U{The epydoc homepage&lt;http:// epydoc.sourceforge.net&gt;} - U{The B{I{Python}} homepage &lt;www.python.org&gt;} - U{Edward Loper&lt;mailto:edloper@ gradient.cis.upenn.edu&gt;} """</code> <i>[...]</i> </pre> </td><td> <ul> <li> <a href="http://www.python.org">www.python.org</a> </li> <li> <a href="http://www.python.org">http://www.python.org</a> </li> <li> <a href="http://epydoc.sourceforge.net">The epydoc homepage</a> </li> <li> <a href="http://www.python.org">The <b><i>Python</i></b> homepage</a> </li> <li> <a href="mailto:edloper@gradient.cis.upenn.edu">Edward Loper</a> </li> </ul> </td></tr> </table> <a name="links"/> <h3> 3.3. Documentation Crossreference Links </h3> <p> The inline markup construct "<code>L{</code><i>text</i><code>&lt;</code><i>object</i><code>&gt;}</code>" is used to create links to the documentation for other Python objects. "<i>Text</i>" is the text that should be displayed for the link, and "<i>object</i>" is the name of the Python object that should be linked to. If you wish to use the name of the Python object as the text for the link, you can simply write "<code>L{</code><i>object</i><code>}</code>". Whitespace within object names is ignored. In particular, object names may be split over multiple lines. The following example illustrates how documentation crossreference links can be used: </p> <table border="1" cellspacing="0" cellpadding="3" width="95%"> <tr><th width="50%">Docstring Input</th><th width="50%">Rendered Output</th> <tr valign="top"><td rowspan="2"> <pre> <code class="keyword">def</code> <code class="function">example</code>(): <code class="string">""" - L{x_transform} - L{search&lt;re.search&gt;} - L{The I{x-transform} function &lt;x_transform&gt;} """</code> <i>[...]</i> </pre> </td><td> <ul> <li> <a href="examples/example.html#x_intercept" ><code>x_transform</code></a></li> <li> <a href="examples/sre.html#search" ><code>search</code></a></li> <li> <a href="examples/example.html#x_intercept" ><code>The <i>x-transform</i> function</code></a></li> </ul> </td></tr> </table> <p> In order to find the object that corresponds to a given name, epydoc checks the following locations, in order: </p> <ol> <li> If the link is made from a class or method docstring, then epydoc checks for a method, instance variable, or class variable with the given name. </li> <li> Next, epydoc looks for an object with the given name in the current module. </li> <li> Epydoc then tries to import the given name as a module. If the current module is contained in a package, then epydoc will also try importing the given name from all packages containing the current module. </li> <li> Finally, epydoc tries to divide the given name into a module name and an object name, and to import the object from the module. If the current module is contained in a package, then epydoc will also try importing the module name from all packages containing the current module. </li> </ol> <p> If no object is found that corresponds with the given name, then epydoc issues a warning. </p> <a name="indexed"/> <h3> 3.4. Indexed Terms </h3> <p> Epydoc automatically creates an index of term definitions for the API documentation. The inline markup construct "<code>X{</code>...<code>}</code>" is used to mark terms for inclusion in the index. The term itself will be italicized; and a link will be created from the index page to the location of the term in the text. The following example illustrates how index terms can be used: </p> <table border="1" cellspacing="0" cellpadding="3" width="95%"> <tr><th width="50%">Docstring Input</th><th width="50%">Rendered Output</th> <tr valign="top"><td rowspan="2"> <pre> <code class="keyword">def</code> <code class="function">example</code>(): <code class="string">""" An X{index term} is a term that should be included in the index. """</code> <i>[...]</i> </pre> </td><td> An <a name="index-index_term"/><i>index term</i> is a term that should be included in the index. </td></tr><tr><td> <table border="1" cellpadding="3" cellspacing="0" width="95%" class="grayf"> <tr> <th colspan="2" class="grayc">Index</th></tr> <tr><td width="15%">index&nbsp;term</td> <td><i><a href="#index-index_term">example</a></i></tr></td> <tr><td width="15%">x&nbsp;intercept</td> <td><i><a href="examples/example.html#index-x_intercept">x_intercept</a></i></tr></td> <tr><td width="15%">y&nbsp;intercept</td> <td><i><a href="examples/example.html#index-y_intercept">x_intercept</a></i></tr></td> </table> </td></tr> </table> <a name="symbols"/> <h3> 3.5. Symbols </h3> <p> Symbols are used to insert special characters in your documentation. A symbol has the form "<code>S{</code><i>code</i><code>}</code>", where <i>code</i> is a symbol code that specifies what character should be produced. The following example illustrates how symbols can be used to generate special characters: </p> <table border="1" cellspacing="0" cellpadding="3" width="95%"> <tr><th width="50%">Docstring Input</th><th width="50%">Rendered Output</th> <tr valign="top"><td rowspan="2"> <pre> <code class="keyword">def</code> <code class="function">example</code>(): <code class="string">""" Symbols can be used in equations: - S{sum}S{alpha}/x S{<=} S{beta} S{<-} and S{larr} both give left arrows. Some other arrows are S{rarr}, S{uarr}, and S{darr}. """</code> <i>[...]</i> </pre> </td><td> <p>Symbols can be used in equations:</p> <ul><li>&sum;&alpha;/x &le; &beta;</li></ul> <p>&larr; and &larr; both give left arrows. Some other arrows are &rarr;, &uarr;, and &darr;.</p> </td></tr> </table> <p> Although symbols can be quite useful, you should keep in mind that they can make it harder to read your docstring in plaintext. In general, symbols should be used sparingly. For a complete list of the symbols that are currently supported, see the reference documentation for <a href="api/public/epydoc.markup.epytext-module.html#SYMBOLS" >epydoc.epytext.SYMBOLS</a>. </p> <a name="escaping"/> <h3> 3.6. Escaping </h3> <p> Escaping is used to write text that would otherwise be interpreted as epytext markup. Epytext was carefully constructed to minimize the need for this type of escaping; but sometimes, it is unavoidable. Escaped text has the form "<code>E{</code><i>code</i><code>}</code>", where <i>code</i> is an escape code that specifies what character should be produced. If the escape code is a single character (other than "<code>{</code>" or "<code>}</code>"), then that character is produced. For example, to begin a paragraph with a dash (which would normally signal a list item), write "<code>E{-}</code>". In addition, two special escape codes are defined: "<code>E{lb}</code>" produces a left curly brace ("<code>{</code>"); and "<code>E{rb}</code>" produces a right curly brace ("<code>}</code>"). The following example illustrates how escaping can be used: </p> <table border="1" cellspacing="0" cellpadding="3" width="95%"> <tr><th width="50%">Docstring Input</th><th width="50%">Rendered Output</th> <tr valign="top"><td rowspan="2"> <pre> <code class="keyword">def</code> <code class="function">example</code>(): <code class="string">""" This paragraph ends with two colons, but does not introduce a literal blockE{:}E{:} E{-} This is not a list item. Escapes can be used to write unmatched curly braces: E{rb}E{lb} """</code> <i>[...]</i> </pre> </td><td> <p>This paragraph ends with two colons, but does not introduce a literal block::</p> <p>- This is not a list item.</p> <p>Escapes can be used to write unmatched curly braces: }{</p> </td></tr> </table> <a name="graphs"/> <h3> 3.7. Graphs </h3> <p> The inline markup construct "<code>G{</code><i>graphtype</i> <i>args...</i>}</code>" is used to insert automatically generated graphs. The following graphs generation constructions are currently defines:</p> <table border="1" cellspacing="0" cellpadding="3" width="95%"> <tr><th width="10%">Markup</th><th width="90%">Description</th></tr> <tr valign="top"> <td><pre>G{classtree <code class="user">classes...</code>}</pre></td> <td> Display a class hierarchy for the given class or classes (including all superclasses &amp; subclasses). If no class is specified, and the directive is used in a class's docstring, then that class's class hierarchy will be displayed. </td></tr> <tr valign="top"> <td><pre>G{packagetree <code class="user">modules...</code>}</pre></td> <td> Display a package hierarchy for the given module or modules (including all subpackages and submodules). If no module is specified, and the directive is used in a module's docstring, then that module's package hierarchy will be displayed. </td></tr> <tr valign="top"> <td><pre>G{impotgraph <code class="user">modules...</code>}</pre></td> <td> Display an import graph for the given module or modules. If no module is specified, and the directive is used in a module's docstring, then that module's import graph will be displayed. </td></tr> <tr valign="top"> <td><pre>G{callgraph <code class="user">functions...</code>}</pre></td> <td> Display a call graph for the given function or functions. If no function is specified, and the directive is used in a function's docstring, then that function's call graph will be displayed. </td></tr> </table> <!-- =========== CHARACTERS ============= --> <a name="characters"/> <h2> 4. Characters </h2> <a name="valid_characters"/> <h3> 4.1. Valid Characters </h3> <p> Valid characters for an epytext docstring are space ("\040"); newline ("\012"); and any letter, digit, or punctuation, as defined by the current locale. Control characters ("\000"-"\010" and "\013"-"\037") are not valid content characters. Tabs ("\011") are expanded to spaces, using the same algorithm used by the Python parser. Carridge-return/newline pairs ("\015\012") are converted to newlines. </p> <a name="content_characters"/> <h3> 4.2. Content Characters </h3> <p> Characters in a docstring that are not involved in markup are called <i>content characters</i>. Content characters are always displayed as-is. In particular, HTML codes are <i>not</i> passed through. For example, consider the following example: </p> <table border="1" cellspacing="0" cellpadding="3" width="95%"> <tr><th width="50%">Docstring Input</th><th width="50%">Rendered Output</th> <tr valign="top"><td> <pre> <code class="keyword">def</code> <code class="function">example</code>(): <code class="string">""" &lt;B&gt;test&lt;/B&gt; """</code> <i>[...]</i> </pre> </td><td> &lt;B&gt;test&lt;/B&gt; </table> <p> The docstring is rendered as "&lt;B&gt;test&lt;/B&gt;", and not as the word "test" in bold face. </p> <a name="whitespace"/> <h3> 4.3. Spaces and Newlines </h3> <p> In general, spaces and newlines within docstrings are treated as <i>soft spaces</i>. In other words, sequences of spaces and newlines (that do not contain a blank line) are rendered as a single space, and words may wrapped at spaces. However, within literal blocks and doctest blocks, spaces and newlines are preserved, and no word-wrapping occurs; and within URL targets and documentation link targets, whitespace is ignored. </p> <!-- =========== WARNINGS ============= --> <!-- (make sure this is consistant w/ the man page!!) --> <a name="warnings"/> <h2> 5. Warnings and Errors </h2> <p>If epydoc encounters an error while processing a docstring, it issues a warning message that describes the error, and attempts to continue generating documentation. Errors related to epytext are divided into three categories: </p> <ul> <li> <b>Epytext Warnings</b> are caused by epytext docstrings that contain questionable or suspicious markup. Epytext warnings do not prevent the docstring in question from being parsed. </li> <li> <b> Field Warnings</b> are caused by epytext docstrings containing invalid fields. The contents of the invalid field are generally ignored. </li> <li> <b>Epytext Errors</b> are caused by epytext docstrings that contain invalid markup. Whenever an epytext error is detected, the docstring in question is treated as a plaintext docstring. </li> </ul> <p> The following sections list and describe the warning messages that epydoc can generate. They are intended as a reference resource, which you can search for more information and possible causes if you encounter an error and do not understand it. These descriptions are also available in the <a href="epydoc-man.html#lbAH"><code>epydoc(1)</code> man page</a>. </p> <h3> 5.1. Epytext Warnings </h3> <ul> <li><b class="error">Possible mal-formatted field item.</b> <br /> Epytext detected a line that looks like a field item, but is not correctly formatted. This typically occurs when the trailing colon (<b>":"</b>) is not included in the field tag. <li><b class="error">Possible heading typo.</b> <br /> Epytext detected a pair of lines that looks like a heading, but the number of underline characters does not match the number of characters in the heading. The number of characters in these two lines must match exactly for them to be considered a heading. </ul> <h3> 5.2. Field Warnings </h3> <ul> <li><b class="error"><code>@param</code> for unknown parameter <i>param</i>.</b> <br /> A <code>@param</code> field was used to specify the type for a parameter that is not included in the function's signature. This is typically caused by a typo in the parameter name. <li><b class="error"><i>tag</i> did not expect an argument.</b> <br /> The field tag <i>tag</i> was used with an argument, but it does not take one. <li><b class="error"><i>tag</i> expected an argument.</b> <br /> The field tag <i>tag</i> was used without an argument, but it requires one. <li><b class="error"><code>@type</code> for unknown parameter <i>param</i>.</b> <br /> A <code>@type</code> field was used to specify the type for a parameter that is not included in the function's signature. This is typically caused by a typo in the parameter name. <li><b class="error"><code>@type</code> for unknown variable <i>var</i>.</b> <br /> A <code>@type</code> field was used to specify the type for a variable, but no other information is known about the variable. This is typically caused by a typo in the variable name. <li><b class="error">Unknown field tag <i>tag</i>.</b> <br /> A docstring contains a field with the unknown tag <i>tag</i>. <li><b class="error">Redefinition of <i>field</i>.</b> <br /> Multiple field tags define the value of <i>field</i> in the same docstring, but <i>field</i> can only take a single value. </ul> <h3> 5.3. Epytext Errors </h3> <ul> <li><b class="error">Bad link target.</b> <br /> The target specified for an inline link contruction (<code>L{...}</code>) is not well-formed. Link targets must be valid python identifiers. <li><b class="error">Bad uri target.</b> <br /> The target specified for an inline uri contruction (<code>U{...}</code>) is not well-formed. This typically occurs if inline markup is nested inside the URI target. <li><b class="error">Fields must be at the top level.</b> <br /> The list of fields (<code>@param</code>, etc.) is contained by some other block structure (such as a list or a section). <li><b class="error">Fields must be the final elements in an epytext string.</b> <br /> The list of fields (<code>@param</code>, etc.) is not at the end of a docstring. <li><b class="error">Headings must occur at top level.</b> <br /> The heading is contianed in some other block structure (such as a list). <li><b class="error">Improper doctest block indentation.</b> <br /> The doctest block dedents past the indentation of its initial prompt line. <li><b class="error">Improper heading indentation.</b> <br /> The heading for a section is not left-aligned with the paragraphs in the section that contains it. <li><b class="error">Improper paragraph indentation.</b> <br /> The paragraphs within a block are not left-aligned. This error is often generated when plaintext docstrings are parsed using epytext. <li><b class="error">Invalid escape.</b> <br /> An unknown escape sequence was used with the inline escape construction (<code>E{...}</code>). <li><b class="error">Lists must be indented.</b> <br /> An unindented line immediately following a paragraph starts with a list bullet. Epydoc is not sure whether you meant to start a new list item, or meant for a paragraph to include a word that looks like a bullet. If you intended the former, then indent the list. If you intended the latter, then change the word-wrapping of the paragraph, or escape the first character of the word that looks like a bullet. <li><b class="error">Unbalanced '{'.</b> <br /> The docstring contains unbalanced braces. Epytext requires that all braces must be balanced. To include a single unbalanced brace, use the escape sequences <code>E{lb}</code> (left brace) and <code>E{rb}</code> (right brace). <li><b class="error">Unbalanced '}'.</b> <br /> The docstring contains unbalanced braces. Epytext requires that all braces must be balanced. To include a single unbalanced brace, use the escape sequences <code>E{lb}</code> (left brace) and <code>E{rb}</code> (right brace). <li><b class="error">Unknown inline markup tag.</b> <br /> An unknown tag was used with the inline markup construction (<code><i>x</i>{...}</code>). <li><b class="error">Wrong underline character for heading.</b> <br /> The underline character used for this section heading does not indicate an appopriate section level. The "<code>=</code>" character should be used to underline sections; "<code>-</code>" for subsections; and "<code>~</code>" for subsubsections. </ul> </div> <table width="100%" class="navbox" cellpadding="1" cellspacing="0"> <tr> <a class="nav" href="index.html"> <td align="center" width="20%" class="nav"> <a class="nav" href="index.html"> Home</a></td></a> <a class="nav" href="installing.html"> <td align="center" width="20%" class="nav"> <a class="nav" href="installing.html"> Installing Epydoc</a></td></a> <a class="nav" href="using.html"> <td align="center" width="20%" class="nav"> <a class="nav" href="using.html"> Using Epydoc</a></td></a> <a class="nav" href="epytext.html"> <td align="center" width="20%" class="navselect" class="nav"> <a class="nav" href="epytext.html"> Epytext</a></td></a> <td align="center" width="20%" class="nav"> <A href="http://sourceforge.net/projects/epydoc"> <IMG src="sflogo.png" width="88" height="26" border="0" alt="SourceForge" align="top"/></A></td> </tr> </table> </body> </html>
regular/pyglet-avbin-optimizations
tools/epydoc/doc/epytext.html
HTML
bsd-3-clause
40,057
<d2-custom-data-entry-form custom-data-entry-form="customDataEntryForm"></d2-custom-data-entry-form>
minagri-rwanda/DHIS2-Agriculture
dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/angular-forms/custom-dataentry-form.html
HTML
bsd-3-clause
100
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html><head><title>FindBugs Bug Descriptions</title> <link rel="stylesheet" type="text/css" href="findbugs.css"/> <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/> </head><body> <table width="100%"><tr> <td bgcolor="#b9b9fe" valign="top" align="left" width="20%"> <table width="100%" cellspacing="0" border="0"> <tr><td><a class="sidebar" href="index.html"><img src="umdFindbugs.png" alt="FindBugs"></a></td></tr> <tr><td>&nbsp;</td></tr> <tr><td><b>Docs and Info</b></td></tr> <tr><td><font size="-1"><a class="sidebar" href="findbugs2.html">FindBugs 2.0</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="demo.html">Demo and data</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="users.html">Users and supporters</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="http://findbugs.blogspot.com/">FindBugs blog</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="factSheet.html">Fact sheet</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="manual/index.html">Manual</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="ja/manual/index.html">Manual(ja/&#26085;&#26412;&#35486;)</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="FAQ.html">FAQ</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="bugDescriptions.html">Bug descriptions</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="mailingLists.html">Mailing lists</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="publications.html">Documents and Publications</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="links.html">Links</a></font></td></tr> <tr><td>&nbsp;</td></tr> <tr><td><a class="sidebar" href="downloads.html"><b>Downloads</b></a></td></tr> <tr><td>&nbsp;</td></tr> <tr><td><a class="sidebar" href="http://www.cafeshops.com/findbugs"><b>FindBugs Swag</b></a></td></tr> <tr><td>&nbsp;</td></tr> <tr><td><b>Development</b></td></tr> <tr><td><font size="-1"><a class="sidebar" href="http://sourceforge.net/tracker/?group_id=96405">Open bugs</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="reportingBugs.html">Reporting bugs</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="contributing.html">Contributing</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="team.html">Dev team</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="api/index.html">API</a> <a class="sidebar" href="api/overview-summary.html">[no frames]</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="Changes.html">Change log</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="http://sourceforge.net/projects/findbugs">SF project page</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="http://code.google.com/p/findbugs/source/browse/">Browse source</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="http://code.google.com/p/findbugs/source/list">Latest code changes</a></font></td></tr> </table> </td> <td align="left" valign="top"> <h1>FindBugs Bug Descriptions</h1> <p>This document lists the standard bug patterns reported by <a href="http://findbugs.sourceforge.net">FindBugs</a> version 2.0.3.</p> <h2>Summary</h2> <table width="100%"> <tr bgcolor="#b9b9fe"><th>Description</th><th>Category</th></tr> <tr bgcolor="#eeeeee"><td><a href="#BC_EQUALS_METHOD_SHOULD_WORK_FOR_ALL_OBJECTS">BC: Equals method should not assume anything about the type of its argument</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#BIT_SIGNED_CHECK">BIT: Check for sign of bitwise operation</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#CN_IDIOM">CN: Class implements Cloneable but does not define or use clone method</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#CN_IDIOM_NO_SUPER_CALL">CN: clone method does not call super.clone()</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#CN_IMPLEMENTS_CLONE_BUT_NOT_CLONEABLE">CN: Class defines clone() but doesn't implement Cloneable</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#CO_ABSTRACT_SELF">Co: Abstract class defines covariant compareTo() method</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#CO_SELF_NO_OBJECT">Co: Covariant compareTo() method defined</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#DE_MIGHT_DROP">DE: Method might drop exception</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#DE_MIGHT_IGNORE">DE: Method might ignore exception</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#DMI_ENTRY_SETS_MAY_REUSE_ENTRY_OBJECTS">DMI: Adding elements of an entry set may fail due to reuse of Entry objects</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#DMI_RANDOM_USED_ONLY_ONCE">DMI: Random object created and used only once</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#DMI_USING_REMOVEALL_TO_CLEAR_COLLECTION">DMI: Don't use removeAll to clear a collection</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#DM_EXIT">Dm: Method invokes System.exit(...)</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#DM_RUN_FINALIZERS_ON_EXIT">Dm: Method invokes dangerous method runFinalizersOnExit</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#ES_COMPARING_PARAMETER_STRING_WITH_EQ">ES: Comparison of String parameter using == or !=</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#ES_COMPARING_STRINGS_WITH_EQ">ES: Comparison of String objects using == or !=</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#EQ_ABSTRACT_SELF">Eq: Abstract class defines covariant equals() method</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#EQ_CHECK_FOR_OPERAND_NOT_COMPATIBLE_WITH_THIS">Eq: Equals checks for incompatible operand</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#EQ_COMPARETO_USE_OBJECT_EQUALS">Eq: Class defines compareTo(...) and uses Object.equals()</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#EQ_GETCLASS_AND_CLASS_CONSTANT">Eq: equals method fails for subtypes</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#EQ_SELF_NO_OBJECT">Eq: Covariant equals() method defined</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#FI_EMPTY">FI: Empty finalizer should be deleted</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#FI_EXPLICIT_INVOCATION">FI: Explicit invocation of finalizer</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#FI_FINALIZER_NULLS_FIELDS">FI: Finalizer nulls fields</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#FI_FINALIZER_ONLY_NULLS_FIELDS">FI: Finalizer only nulls fields</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#FI_MISSING_SUPER_CALL">FI: Finalizer does not call superclass finalizer</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#FI_NULLIFY_SUPER">FI: Finalizer nullifies superclass finalizer</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#FI_USELESS">FI: Finalizer does nothing but call superclass finalizer</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#VA_FORMAT_STRING_USES_NEWLINE">FS: Format string should use %n rather than \n</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#GC_UNCHECKED_TYPE_IN_GENERIC_CALL">GC: Unchecked type in generic call</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#HE_EQUALS_NO_HASHCODE">HE: Class defines equals() but not hashCode()</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#HE_EQUALS_USE_HASHCODE">HE: Class defines equals() and uses Object.hashCode()</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#HE_HASHCODE_NO_EQUALS">HE: Class defines hashCode() but not equals()</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#HE_HASHCODE_USE_OBJECT_EQUALS">HE: Class defines hashCode() and uses Object.equals()</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#HE_INHERITS_EQUALS_USE_HASHCODE">HE: Class inherits equals() and uses Object.hashCode()</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#IC_SUPERCLASS_USES_SUBCLASS_DURING_INITIALIZATION">IC: Superclass uses subclass during initialization</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#IMSE_DONT_CATCH_IMSE">IMSE: Dubious catching of IllegalMonitorStateException</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#ISC_INSTANTIATE_STATIC_CLASS">ISC: Needless instantiation of class that only supplies static methods</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#IT_NO_SUCH_ELEMENT">It: Iterator next() method can't throw NoSuchElementException</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#J2EE_STORE_OF_NON_SERIALIZABLE_OBJECT_INTO_SESSION">J2EE: Store of non serializable object into HttpSession</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#JCIP_FIELD_ISNT_FINAL_IN_IMMUTABLE_CLASS">JCIP: Fields of immutable classes should be final</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#NP_BOOLEAN_RETURN_NULL">NP: Method with Boolean return type returns explicit null</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#NP_CLONE_COULD_RETURN_NULL">NP: Clone method may return null</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#NP_EQUALS_SHOULD_HANDLE_NULL_ARGUMENT">NP: equals() method does not check for null argument</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#NP_TOSTRING_COULD_RETURN_NULL">NP: toString method may return null</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#NM_CLASS_NAMING_CONVENTION">Nm: Class names should start with an upper case letter</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#NM_CLASS_NOT_EXCEPTION">Nm: Class is not derived from an Exception, even though it is named as such</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#NM_CONFUSING">Nm: Confusing method names</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#NM_FIELD_NAMING_CONVENTION">Nm: Field names should start with a lower case letter</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#NM_FUTURE_KEYWORD_USED_AS_IDENTIFIER">Nm: Use of identifier that is a keyword in later versions of Java</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#NM_FUTURE_KEYWORD_USED_AS_MEMBER_IDENTIFIER">Nm: Use of identifier that is a keyword in later versions of Java</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#NM_METHOD_NAMING_CONVENTION">Nm: Method names should start with a lower case letter</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#NM_SAME_SIMPLE_NAME_AS_INTERFACE">Nm: Class names shouldn't shadow simple name of implemented interface</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#NM_SAME_SIMPLE_NAME_AS_SUPERCLASS">Nm: Class names shouldn't shadow simple name of superclass</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#NM_VERY_CONFUSING_INTENTIONAL">Nm: Very confusing method names (but perhaps intentional)</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#NM_WRONG_PACKAGE_INTENTIONAL">Nm: Method doesn't override method in superclass due to wrong package for parameter</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#ODR_OPEN_DATABASE_RESOURCE">ODR: Method may fail to close database resource</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#ODR_OPEN_DATABASE_RESOURCE_EXCEPTION_PATH">ODR: Method may fail to close database resource on exception</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#OS_OPEN_STREAM">OS: Method may fail to close stream</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#OS_OPEN_STREAM_EXCEPTION_PATH">OS: Method may fail to close stream on exception</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#PZ_DONT_REUSE_ENTRY_OBJECTS_IN_ITERATORS">PZ: Don't reuse entry objects in iterators</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#RC_REF_COMPARISON_BAD_PRACTICE">RC: Suspicious reference comparison to constant</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#RC_REF_COMPARISON_BAD_PRACTICE_BOOLEAN">RC: Suspicious reference comparison of Boolean values</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#RR_NOT_CHECKED">RR: Method ignores results of InputStream.read()</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#SR_NOT_CHECKED">RR: Method ignores results of InputStream.skip()</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#RV_NEGATING_RESULT_OF_COMPARETO">RV: Negating the result of compareTo()/compare()</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#RV_RETURN_VALUE_IGNORED_BAD_PRACTICE">RV: Method ignores exceptional return value</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#SI_INSTANCE_BEFORE_FINALS_ASSIGNED">SI: Static initializer creates instance before all static final fields assigned</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#SW_SWING_METHODS_INVOKED_IN_SWING_THREAD">SW: Certain swing methods needs to be invoked in Swing thread</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#SE_BAD_FIELD">Se: Non-transient non-serializable instance field in serializable class</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#SE_BAD_FIELD_INNER_CLASS">Se: Non-serializable class has a serializable inner class</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#SE_BAD_FIELD_STORE">Se: Non-serializable value stored into instance field of a serializable class</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#SE_COMPARATOR_SHOULD_BE_SERIALIZABLE">Se: Comparator doesn't implement Serializable</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#SE_INNER_CLASS">Se: Serializable inner class</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#SE_NONFINAL_SERIALVERSIONID">Se: serialVersionUID isn't final</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#SE_NONLONG_SERIALVERSIONID">Se: serialVersionUID isn't long</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#SE_NONSTATIC_SERIALVERSIONID">Se: serialVersionUID isn't static</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#SE_NO_SUITABLE_CONSTRUCTOR">Se: Class is Serializable but its superclass doesn't define a void constructor</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#SE_NO_SUITABLE_CONSTRUCTOR_FOR_EXTERNALIZATION">Se: Class is Externalizable but doesn't define a void constructor</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#SE_READ_RESOLVE_MUST_RETURN_OBJECT">Se: The readResolve method must be declared with a return type of Object. </a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#SE_TRANSIENT_FIELD_NOT_RESTORED">Se: Transient field that isn't set by deserialization. </a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#SE_NO_SERIALVERSIONID">SnVI: Class is Serializable, but doesn't define serialVersionUID</a></td><td>Bad practice</td></tr> <tr bgcolor="#eeeeee"><td><a href="#UI_INHERITANCE_UNSAFE_GETRESOURCE">UI: Usage of GetResource may be unsafe if class is extended</a></td><td>Bad practice</td></tr> <tr bgcolor="#ffffff"><td><a href="#BC_IMPOSSIBLE_CAST">BC: Impossible cast</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#BC_IMPOSSIBLE_DOWNCAST">BC: Impossible downcast</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#BC_IMPOSSIBLE_DOWNCAST_OF_TOARRAY">BC: Impossible downcast of toArray() result</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#BC_IMPOSSIBLE_INSTANCEOF">BC: instanceof will always return false</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#BIT_ADD_OF_SIGNED_BYTE">BIT: Bitwise add of signed byte value</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#BIT_AND">BIT: Incompatible bit masks</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#BIT_AND_ZZ">BIT: Check to see if ((...) & 0) == 0</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#BIT_IOR">BIT: Incompatible bit masks</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#BIT_IOR_OF_SIGNED_BYTE">BIT: Bitwise OR of signed byte value</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#BIT_SIGNED_CHECK_HIGH_BIT">BIT: Check for sign of bitwise operation</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#BOA_BADLY_OVERRIDDEN_ADAPTER">BOA: Class overrides a method implemented in super class Adapter wrongly</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#ICAST_BAD_SHIFT_AMOUNT">BSHIFT: 32 bit int shifted by an amount not in the range -31..31</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#BX_UNBOXED_AND_COERCED_FOR_TERNARY_OPERATOR">Bx: Primitive value is unboxed and coerced for ternary operator</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#CO_COMPARETO_RESULTS_MIN_VALUE">Co: compareTo()/compare() returns Integer.MIN_VALUE</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#DLS_DEAD_LOCAL_INCREMENT_IN_RETURN">DLS: Useless increment in return statement</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#DLS_DEAD_STORE_OF_CLASS_LITERAL">DLS: Dead store of class literal</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#DLS_OVERWRITTEN_INCREMENT">DLS: Overwritten increment</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#DMI_ARGUMENTS_WRONG_ORDER">DMI: Reversed method arguments</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#DMI_BAD_MONTH">DMI: Bad constant value for month</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#DMI_BIGDECIMAL_CONSTRUCTED_FROM_DOUBLE">DMI: BigDecimal constructed from double that isn't represented precisely</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#DMI_CALLING_NEXT_FROM_HASNEXT">DMI: hasNext method invokes next</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#DMI_COLLECTIONS_SHOULD_NOT_CONTAIN_THEMSELVES">DMI: Collections should not contain themselves</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#DMI_DOH">DMI: D'oh! A nonsensical method invocation</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#DMI_INVOKING_HASHCODE_ON_ARRAY">DMI: Invocation of hashCode on an array</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#DMI_LONG_BITS_TO_DOUBLE_INVOKED_ON_INT">DMI: Double.longBitsToDouble invoked on an int</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#DMI_VACUOUS_SELF_COLLECTION_CALL">DMI: Vacuous call to collections</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#DMI_ANNOTATION_IS_NOT_VISIBLE_TO_REFLECTION">Dm: Can't use reflection to check for presence of annotation without runtime retention</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#DMI_FUTILE_ATTEMPT_TO_CHANGE_MAXPOOL_SIZE_OF_SCHEDULED_THREAD_POOL_EXECUTOR">Dm: Futile attempt to change max pool size of ScheduledThreadPoolExecutor</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#DMI_SCHEDULED_THREAD_POOL_EXECUTOR_WITH_ZERO_CORE_THREADS">Dm: Creation of ScheduledThreadPoolExecutor with zero core threads</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#DMI_VACUOUS_CALL_TO_EASYMOCK_METHOD">Dm: Useless/vacuous call to EasyMock method</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#EC_ARRAY_AND_NONARRAY">EC: equals() used to compare array and nonarray</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#EC_BAD_ARRAY_COMPARE">EC: Invocation of equals() on an array, which is equivalent to ==</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#EC_INCOMPATIBLE_ARRAY_COMPARE">EC: equals(...) used to compare incompatible arrays</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#EC_NULL_ARG">EC: Call to equals(null)</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#EC_UNRELATED_CLASS_AND_INTERFACE">EC: Call to equals() comparing unrelated class and interface</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#EC_UNRELATED_INTERFACES">EC: Call to equals() comparing different interface types</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#EC_UNRELATED_TYPES">EC: Call to equals() comparing different types</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#EC_UNRELATED_TYPES_USING_POINTER_EQUALITY">EC: Using pointer equality to compare different types</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#EQ_ALWAYS_FALSE">Eq: equals method always returns false</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#EQ_ALWAYS_TRUE">Eq: equals method always returns true</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#EQ_COMPARING_CLASS_NAMES">Eq: equals method compares class names rather than class objects</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#EQ_DONT_DEFINE_EQUALS_FOR_ENUM">Eq: Covariant equals() method defined for enum</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#EQ_OTHER_NO_OBJECT">Eq: equals() method defined that doesn't override equals(Object)</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#EQ_OTHER_USE_OBJECT">Eq: equals() method defined that doesn't override Object.equals(Object)</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#EQ_OVERRIDING_EQUALS_NOT_SYMMETRIC">Eq: equals method overrides equals in superclass and may not be symmetric</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#EQ_SELF_USE_OBJECT">Eq: Covariant equals() method defined, Object.equals(Object) inherited</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#FE_TEST_IF_EQUAL_TO_NOT_A_NUMBER">FE: Doomed test for equality to NaN</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#VA_FORMAT_STRING_BAD_ARGUMENT">FS: Format string placeholder incompatible with passed argument</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#VA_FORMAT_STRING_BAD_CONVERSION">FS: The type of a supplied argument doesn't match format specifier</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#VA_FORMAT_STRING_EXPECTED_MESSAGE_FORMAT_SUPPLIED">FS: MessageFormat supplied where printf style format expected</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#VA_FORMAT_STRING_EXTRA_ARGUMENTS_PASSED">FS: More arguments are passed than are actually used in the format string</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#VA_FORMAT_STRING_ILLEGAL">FS: Illegal format string</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#VA_FORMAT_STRING_MISSING_ARGUMENT">FS: Format string references missing argument</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#VA_FORMAT_STRING_NO_PREVIOUS_ARGUMENT">FS: No previous argument for format string</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#GC_UNRELATED_TYPES">GC: No relationship between generic parameter and method argument</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#HE_SIGNATURE_DECLARES_HASHING_OF_UNHASHABLE_CLASS">HE: Signature declares use of unhashable class in hashed construct</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#HE_USE_OF_UNHASHABLE_CLASS">HE: Use of class without a hashCode() method in a hashed data structure</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#ICAST_INT_2_LONG_AS_INSTANT">ICAST: int value converted to long and used as absolute time</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#ICAST_INT_CAST_TO_DOUBLE_PASSED_TO_CEIL">ICAST: Integral value cast to double and then passed to Math.ceil</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#ICAST_INT_CAST_TO_FLOAT_PASSED_TO_ROUND">ICAST: int value cast to float and then passed to Math.round</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#IJU_ASSERT_METHOD_INVOKED_FROM_RUN_METHOD">IJU: JUnit assertion in run method will not be noticed by JUnit</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#IJU_BAD_SUITE_METHOD">IJU: TestCase declares a bad suite method </a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#IJU_NO_TESTS">IJU: TestCase has no tests</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#IJU_SETUP_NO_SUPER">IJU: TestCase defines setUp that doesn't call super.setUp()</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#IJU_SUITE_NOT_STATIC">IJU: TestCase implements a non-static suite method </a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#IJU_TEARDOWN_NO_SUPER">IJU: TestCase defines tearDown that doesn't call super.tearDown()</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#IL_CONTAINER_ADDED_TO_ITSELF">IL: A collection is added to itself</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#IL_INFINITE_LOOP">IL: An apparent infinite loop</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#IL_INFINITE_RECURSIVE_LOOP">IL: An apparent infinite recursive loop</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#IM_MULTIPLYING_RESULT_OF_IREM">IM: Integer multiply of result of integer remainder</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#INT_BAD_COMPARISON_WITH_INT_VALUE">INT: Bad comparison of int value with long constant</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#INT_BAD_COMPARISON_WITH_NONNEGATIVE_VALUE">INT: Bad comparison of nonnegative value with negative constant</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#INT_BAD_COMPARISON_WITH_SIGNED_BYTE">INT: Bad comparison of signed byte</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#IO_APPENDING_TO_OBJECT_OUTPUT_STREAM">IO: Doomed attempt to append to an object output stream</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#IP_PARAMETER_IS_DEAD_BUT_OVERWRITTEN">IP: A parameter is dead upon entry to a method but overwritten</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#MF_CLASS_MASKS_FIELD">MF: Class defines field that masks a superclass field</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#MF_METHOD_MASKS_FIELD">MF: Method defines a variable that obscures a field</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#NP_ALWAYS_NULL">NP: Null pointer dereference</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#NP_ALWAYS_NULL_EXCEPTION">NP: Null pointer dereference in method on exception path</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#NP_ARGUMENT_MIGHT_BE_NULL">NP: Method does not check for null argument</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#NP_CLOSING_NULL">NP: close() invoked on a value that is always null</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#NP_GUARANTEED_DEREF">NP: Null value is guaranteed to be dereferenced</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#NP_GUARANTEED_DEREF_ON_EXCEPTION_PATH">NP: Value is null and guaranteed to be dereferenced on exception path</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR">NP: Nonnull field is not initialized</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#NP_NONNULL_PARAM_VIOLATION">NP: Method call passes null to a nonnull parameter </a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#NP_NONNULL_RETURN_VIOLATION">NP: Method may return null, but is declared @NonNull</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#NP_NULL_INSTANCEOF">NP: A known null value is checked to see if it is an instance of a type</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#NP_NULL_ON_SOME_PATH">NP: Possible null pointer dereference</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#NP_NULL_ON_SOME_PATH_EXCEPTION">NP: Possible null pointer dereference in method on exception path</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#NP_NULL_PARAM_DEREF">NP: Method call passes null for nonnull parameter</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS">NP: Method call passes null for nonnull parameter</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#NP_NULL_PARAM_DEREF_NONVIRTUAL">NP: Non-virtual method call passes null for nonnull parameter</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#NP_STORE_INTO_NONNULL_FIELD">NP: Store of null value into field annotated NonNull</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#NP_UNWRITTEN_FIELD">NP: Read of unwritten field</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#NM_BAD_EQUAL">Nm: Class defines equal(Object); should it be equals(Object)?</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#NM_LCASE_HASHCODE">Nm: Class defines hashcode(); should it be hashCode()?</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#NM_LCASE_TOSTRING">Nm: Class defines tostring(); should it be toString()?</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#NM_METHOD_CONSTRUCTOR_CONFUSION">Nm: Apparent method/constructor confusion</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#NM_VERY_CONFUSING">Nm: Very confusing method names</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#NM_WRONG_PACKAGE">Nm: Method doesn't override method in superclass due to wrong package for parameter</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#QBA_QUESTIONABLE_BOOLEAN_ASSIGNMENT">QBA: Method assigns boolean literal in boolean expression</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#RC_REF_COMPARISON">RC: Suspicious reference comparison</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE">RCN: Nullcheck of value previously dereferenced</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#RE_BAD_SYNTAX_FOR_REGULAR_EXPRESSION">RE: Invalid syntax for regular expression</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#RE_CANT_USE_FILE_SEPARATOR_AS_REGULAR_EXPRESSION">RE: File.separator used for regular expression</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#RE_POSSIBLE_UNINTENDED_PATTERN">RE: "." or "|" used for regular expression</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#RV_01_TO_INT">RV: Random value from 0 to 1 is coerced to the integer 0</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#RV_ABSOLUTE_VALUE_OF_HASHCODE">RV: Bad attempt to compute absolute value of signed 32-bit hashcode </a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#RV_ABSOLUTE_VALUE_OF_RANDOM_INT">RV: Bad attempt to compute absolute value of signed random integer</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#RV_CHECK_COMPARETO_FOR_SPECIFIC_RETURN_VALUE">RV: Code checks for specific values returned by compareTo</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#RV_EXCEPTION_NOT_THROWN">RV: Exception created and dropped rather than thrown</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#RV_RETURN_VALUE_IGNORED">RV: Method ignores return value</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#RpC_REPEATED_CONDITIONAL_TEST">RpC: Repeated conditional tests</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#SA_FIELD_SELF_ASSIGNMENT">SA: Self assignment of field</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#SA_FIELD_SELF_COMPARISON">SA: Self comparison of field with itself</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#SA_FIELD_SELF_COMPUTATION">SA: Nonsensical self computation involving a field (e.g., x & x)</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#SA_LOCAL_SELF_ASSIGNMENT_INSTEAD_OF_FIELD">SA: Self assignment of local rather than assignment to field</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#SA_LOCAL_SELF_COMPARISON">SA: Self comparison of value with itself</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#SA_LOCAL_SELF_COMPUTATION">SA: Nonsensical self computation involving a variable (e.g., x & x)</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#SF_DEAD_STORE_DUE_TO_SWITCH_FALLTHROUGH">SF: Dead store due to switch statement fall through</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#SF_DEAD_STORE_DUE_TO_SWITCH_FALLTHROUGH_TO_THROW">SF: Dead store due to switch statement fall through to throw</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#SIC_THREADLOCAL_DEADLY_EMBRACE">SIC: Deadly embrace of non-static inner class and thread local</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#SIO_SUPERFLUOUS_INSTANCEOF">SIO: Unnecessary type check done using instanceof operator</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#SQL_BAD_PREPARED_STATEMENT_ACCESS">SQL: Method attempts to access a prepared statement parameter with index 0</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#SQL_BAD_RESULTSET_ACCESS">SQL: Method attempts to access a result set field with index 0</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#STI_INTERRUPTED_ON_CURRENTTHREAD">STI: Unneeded use of currentThread() call, to call interrupted() </a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#STI_INTERRUPTED_ON_UNKNOWNTHREAD">STI: Static Thread.interrupted() method invoked on thread instance</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#SE_METHOD_MUST_BE_PRIVATE">Se: Method must be private in order for serialization to work</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#SE_READ_RESOLVE_IS_STATIC">Se: The readResolve method must not be declared as a static method. </a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#TQ_ALWAYS_VALUE_USED_WHERE_NEVER_REQUIRED">TQ: Value annotated as carrying a type qualifier used where a value that must not carry that qualifier is required</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#TQ_COMPARING_VALUES_WITH_INCOMPATIBLE_TYPE_QUALIFIERS">TQ: Comparing values with incompatible type qualifiers</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#TQ_MAYBE_SOURCE_VALUE_REACHES_ALWAYS_SINK">TQ: Value that might not carry a type qualifier is always used in a way requires that type qualifier</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#TQ_MAYBE_SOURCE_VALUE_REACHES_NEVER_SINK">TQ: Value that might carry a type qualifier is always used in a way prohibits it from having that type qualifier</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#TQ_NEVER_VALUE_USED_WHERE_ALWAYS_REQUIRED">TQ: Value annotated as never carrying a type qualifier used where value carrying that qualifier is required</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#TQ_UNKNOWN_VALUE_USED_WHERE_ALWAYS_STRICTLY_REQUIRED">TQ: Value without a type qualifier used where a value is required to have that qualifier</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS">UMAC: Uncallable method defined in anonymous class</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#UR_UNINIT_READ">UR: Uninitialized read of field in constructor</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#UR_UNINIT_READ_CALLED_FROM_SUPER_CONSTRUCTOR">UR: Uninitialized read of field method called from constructor of superclass</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#DMI_INVOKING_TOSTRING_ON_ANONYMOUS_ARRAY">USELESS_STRING: Invocation of toString on an unnamed array</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#DMI_INVOKING_TOSTRING_ON_ARRAY">USELESS_STRING: Invocation of toString on an array</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#VA_FORMAT_STRING_BAD_CONVERSION_FROM_ARRAY">USELESS_STRING: Array formatted in useless way using format string</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#UWF_NULL_FIELD">UwF: Field only ever set to null</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#UWF_UNWRITTEN_FIELD">UwF: Unwritten field</a></td><td>Correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#VA_PRIMITIVE_ARRAY_PASSED_TO_OBJECT_VARARG">VA: Primitive array passed to function expecting a variable number of object arguments</a></td><td>Correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#LG_LOST_LOGGER_DUE_TO_WEAK_REFERENCE">LG: Potential lost logger changes due to weak reference in OpenJDK</a></td><td>Experimental</td></tr> <tr bgcolor="#eeeeee"><td><a href="#OBL_UNSATISFIED_OBLIGATION">OBL: Method may fail to clean up stream or resource</a></td><td>Experimental</td></tr> <tr bgcolor="#ffffff"><td><a href="#OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE">OBL: Method may fail to clean up stream or resource on checked exception</a></td><td>Experimental</td></tr> <tr bgcolor="#eeeeee"><td><a href="#DM_CONVERT_CASE">Dm: Consider using Locale parameterized version of invoked method</a></td><td>Internationalization</td></tr> <tr bgcolor="#ffffff"><td><a href="#DM_DEFAULT_ENCODING">Dm: Reliance on default encoding</a></td><td>Internationalization</td></tr> <tr bgcolor="#eeeeee"><td><a href="#DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED">DP: Classloaders should only be created inside doPrivileged block</a></td><td>Malicious code vulnerability</td></tr> <tr bgcolor="#ffffff"><td><a href="#DP_DO_INSIDE_DO_PRIVILEGED">DP: Method invoked that should be only be invoked inside a doPrivileged block</a></td><td>Malicious code vulnerability</td></tr> <tr bgcolor="#eeeeee"><td><a href="#EI_EXPOSE_REP">EI: May expose internal representation by returning reference to mutable object</a></td><td>Malicious code vulnerability</td></tr> <tr bgcolor="#ffffff"><td><a href="#EI_EXPOSE_REP2">EI2: May expose internal representation by incorporating reference to mutable object</a></td><td>Malicious code vulnerability</td></tr> <tr bgcolor="#eeeeee"><td><a href="#FI_PUBLIC_SHOULD_BE_PROTECTED">FI: Finalizer should be protected, not public</a></td><td>Malicious code vulnerability</td></tr> <tr bgcolor="#ffffff"><td><a href="#EI_EXPOSE_STATIC_REP2">MS: May expose internal static state by storing a mutable object into a static field</a></td><td>Malicious code vulnerability</td></tr> <tr bgcolor="#eeeeee"><td><a href="#MS_CANNOT_BE_FINAL">MS: Field isn't final and can't be protected from malicious code</a></td><td>Malicious code vulnerability</td></tr> <tr bgcolor="#ffffff"><td><a href="#MS_EXPOSE_REP">MS: Public static method may expose internal representation by returning array</a></td><td>Malicious code vulnerability</td></tr> <tr bgcolor="#eeeeee"><td><a href="#MS_FINAL_PKGPROTECT">MS: Field should be both final and package protected</a></td><td>Malicious code vulnerability</td></tr> <tr bgcolor="#ffffff"><td><a href="#MS_MUTABLE_ARRAY">MS: Field is a mutable array</a></td><td>Malicious code vulnerability</td></tr> <tr bgcolor="#eeeeee"><td><a href="#MS_MUTABLE_HASHTABLE">MS: Field is a mutable Hashtable</a></td><td>Malicious code vulnerability</td></tr> <tr bgcolor="#ffffff"><td><a href="#MS_OOI_PKGPROTECT">MS: Field should be moved out of an interface and made package protected</a></td><td>Malicious code vulnerability</td></tr> <tr bgcolor="#eeeeee"><td><a href="#MS_PKGPROTECT">MS: Field should be package protected</a></td><td>Malicious code vulnerability</td></tr> <tr bgcolor="#ffffff"><td><a href="#MS_SHOULD_BE_FINAL">MS: Field isn't final but should be</a></td><td>Malicious code vulnerability</td></tr> <tr bgcolor="#eeeeee"><td><a href="#MS_SHOULD_BE_REFACTORED_TO_BE_FINAL">MS: Field isn't final but should be refactored to be so</a></td><td>Malicious code vulnerability</td></tr> <tr bgcolor="#ffffff"><td><a href="#AT_OPERATION_SEQUENCE_ON_CONCURRENT_ABSTRACTION">AT: Sequence of calls to concurrent abstraction may not be atomic</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#DC_DOUBLECHECK">DC: Possible double check of field</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#DL_SYNCHRONIZATION_ON_BOOLEAN">DL: Synchronization on Boolean</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#DL_SYNCHRONIZATION_ON_BOXED_PRIMITIVE">DL: Synchronization on boxed primitive</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#DL_SYNCHRONIZATION_ON_SHARED_CONSTANT">DL: Synchronization on interned String </a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#DL_SYNCHRONIZATION_ON_UNSHARED_BOXED_PRIMITIVE">DL: Synchronization on boxed primitive values</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#DM_MONITOR_WAIT_ON_CONDITION">Dm: Monitor wait() called on Condition</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#DM_USELESS_THREAD">Dm: A thread was created using the default empty run method</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#ESync_EMPTY_SYNC">ESync: Empty synchronized block</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#IS2_INCONSISTENT_SYNC">IS: Inconsistent synchronization</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#IS_FIELD_NOT_GUARDED">IS: Field not guarded against concurrent access</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#JLM_JSR166_LOCK_MONITORENTER">JLM: Synchronization performed on Lock</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#JLM_JSR166_UTILCONCURRENT_MONITORENTER">JLM: Synchronization performed on util.concurrent instance</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#JML_JSR166_CALLING_WAIT_RATHER_THAN_AWAIT">JLM: Using monitor style wait methods on util.concurrent abstraction</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#LI_LAZY_INIT_STATIC">LI: Incorrect lazy initialization of static field</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#LI_LAZY_INIT_UPDATE_STATIC">LI: Incorrect lazy initialization and update of static field</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#ML_SYNC_ON_FIELD_TO_GUARD_CHANGING_THAT_FIELD">ML: Synchronization on field in futile attempt to guard that field</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#ML_SYNC_ON_UPDATED_FIELD">ML: Method synchronizes on an updated field</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#MSF_MUTABLE_SERVLET_FIELD">MSF: Mutable servlet field</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#MWN_MISMATCHED_NOTIFY">MWN: Mismatched notify()</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#MWN_MISMATCHED_WAIT">MWN: Mismatched wait()</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#NN_NAKED_NOTIFY">NN: Naked notify</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#NP_SYNC_AND_NULL_CHECK_FIELD">NP: Synchronize and null check on the same field.</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#NO_NOTIFY_NOT_NOTIFYALL">No: Using notify() rather than notifyAll()</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#RS_READOBJECT_SYNC">RS: Class's readObject() method is synchronized</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#RV_RETURN_VALUE_OF_PUTIFABSENT_IGNORED">RV: Return value of putIfAbsent ignored, value passed to putIfAbsent reused</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#RU_INVOKE_RUN">Ru: Invokes run on a thread (did you mean to start it instead?)</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#SC_START_IN_CTOR">SC: Constructor invokes Thread.start()</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#SP_SPIN_ON_FIELD">SP: Method spins on field</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#STCAL_INVOKE_ON_STATIC_CALENDAR_INSTANCE">STCAL: Call to static Calendar</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#STCAL_INVOKE_ON_STATIC_DATE_FORMAT_INSTANCE">STCAL: Call to static DateFormat</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#STCAL_STATIC_CALENDAR_INSTANCE">STCAL: Static Calendar field</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#STCAL_STATIC_SIMPLE_DATE_FORMAT_INSTANCE">STCAL: Static DateFormat</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#SWL_SLEEP_WITH_LOCK_HELD">SWL: Method calls Thread.sleep() with a lock held</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#TLW_TWO_LOCK_WAIT">TLW: Wait with two locks held</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#UG_SYNC_SET_UNSYNC_GET">UG: Unsynchronized get method, synchronized set method</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#UL_UNRELEASED_LOCK">UL: Method does not release lock on all paths</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#UL_UNRELEASED_LOCK_EXCEPTION_PATH">UL: Method does not release lock on all exception paths</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#UW_UNCOND_WAIT">UW: Unconditional wait</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#VO_VOLATILE_INCREMENT">VO: An increment to a volatile field isn't atomic</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#VO_VOLATILE_REFERENCE_TO_ARRAY">VO: A volatile reference to an array doesn't treat the array elements as volatile</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#WL_USING_GETCLASS_RATHER_THAN_CLASS_LITERAL">WL: Synchronization on getClass rather than class literal</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#WS_WRITEOBJECT_SYNC">WS: Class's writeObject() method is synchronized but nothing else is</a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#WA_AWAIT_NOT_IN_LOOP">Wa: Condition.await() not in loop </a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#ffffff"><td><a href="#WA_NOT_IN_LOOP">Wa: Wait not in loop </a></td><td>Multithreaded correctness</td></tr> <tr bgcolor="#eeeeee"><td><a href="#BX_BOXING_IMMEDIATELY_UNBOXED">Bx: Primitive value is boxed and then immediately unboxed</a></td><td>Performance</td></tr> <tr bgcolor="#ffffff"><td><a href="#BX_BOXING_IMMEDIATELY_UNBOXED_TO_PERFORM_COERCION">Bx: Primitive value is boxed then unboxed to perform primitive coercion</a></td><td>Performance</td></tr> <tr bgcolor="#eeeeee"><td><a href="#BX_UNBOXING_IMMEDIATELY_REBOXED">Bx: Boxed value is unboxed and then immediately reboxed</a></td><td>Performance</td></tr> <tr bgcolor="#ffffff"><td><a href="#DM_BOXED_PRIMITIVE_FOR_PARSING">Bx: Boxing/unboxing to parse a primitive</a></td><td>Performance</td></tr> <tr bgcolor="#eeeeee"><td><a href="#DM_BOXED_PRIMITIVE_TOSTRING">Bx: Method allocates a boxed primitive just to call toString</a></td><td>Performance</td></tr> <tr bgcolor="#ffffff"><td><a href="#DM_FP_NUMBER_CTOR">Bx: Method invokes inefficient floating-point Number constructor; use static valueOf instead</a></td><td>Performance</td></tr> <tr bgcolor="#eeeeee"><td><a href="#DM_NUMBER_CTOR">Bx: Method invokes inefficient Number constructor; use static valueOf instead</a></td><td>Performance</td></tr> <tr bgcolor="#ffffff"><td><a href="#DMI_BLOCKING_METHODS_ON_URL">Dm: The equals and hashCode methods of URL are blocking</a></td><td>Performance</td></tr> <tr bgcolor="#eeeeee"><td><a href="#DMI_COLLECTION_OF_URLS">Dm: Maps and sets of URLs can be performance hogs</a></td><td>Performance</td></tr> <tr bgcolor="#ffffff"><td><a href="#DM_BOOLEAN_CTOR">Dm: Method invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead</a></td><td>Performance</td></tr> <tr bgcolor="#eeeeee"><td><a href="#DM_GC">Dm: Explicit garbage collection; extremely dubious except in benchmarking code</a></td><td>Performance</td></tr> <tr bgcolor="#ffffff"><td><a href="#DM_NEW_FOR_GETCLASS">Dm: Method allocates an object, only to get the class object</a></td><td>Performance</td></tr> <tr bgcolor="#eeeeee"><td><a href="#DM_NEXTINT_VIA_NEXTDOUBLE">Dm: Use the nextInt method of Random rather than nextDouble to generate a random integer</a></td><td>Performance</td></tr> <tr bgcolor="#ffffff"><td><a href="#DM_STRING_CTOR">Dm: Method invokes inefficient new String(String) constructor</a></td><td>Performance</td></tr> <tr bgcolor="#eeeeee"><td><a href="#DM_STRING_TOSTRING">Dm: Method invokes toString() method on a String</a></td><td>Performance</td></tr> <tr bgcolor="#ffffff"><td><a href="#DM_STRING_VOID_CTOR">Dm: Method invokes inefficient new String() constructor</a></td><td>Performance</td></tr> <tr bgcolor="#eeeeee"><td><a href="#HSC_HUGE_SHARED_STRING_CONSTANT">HSC: Huge string constants is duplicated across multiple class files</a></td><td>Performance</td></tr> <tr bgcolor="#ffffff"><td><a href="#ITA_INEFFICIENT_TO_ARRAY">ITA: Method uses toArray() with zero-length array argument</a></td><td>Performance</td></tr> <tr bgcolor="#eeeeee"><td><a href="#SBSC_USE_STRINGBUFFER_CONCATENATION">SBSC: Method concatenates strings using + in a loop</a></td><td>Performance</td></tr> <tr bgcolor="#ffffff"><td><a href="#SIC_INNER_SHOULD_BE_STATIC">SIC: Should be a static inner class</a></td><td>Performance</td></tr> <tr bgcolor="#eeeeee"><td><a href="#SIC_INNER_SHOULD_BE_STATIC_ANON">SIC: Could be refactored into a named static inner class</a></td><td>Performance</td></tr> <tr bgcolor="#ffffff"><td><a href="#SIC_INNER_SHOULD_BE_STATIC_NEEDS_THIS">SIC: Could be refactored into a static inner class</a></td><td>Performance</td></tr> <tr bgcolor="#eeeeee"><td><a href="#SS_SHOULD_BE_STATIC">SS: Unread field: should this field be static?</a></td><td>Performance</td></tr> <tr bgcolor="#ffffff"><td><a href="#UM_UNNECESSARY_MATH">UM: Method calls static Math class method on a constant value</a></td><td>Performance</td></tr> <tr bgcolor="#eeeeee"><td><a href="#UPM_UNCALLED_PRIVATE_METHOD">UPM: Private method is never called</a></td><td>Performance</td></tr> <tr bgcolor="#ffffff"><td><a href="#URF_UNREAD_FIELD">UrF: Unread field</a></td><td>Performance</td></tr> <tr bgcolor="#eeeeee"><td><a href="#UUF_UNUSED_FIELD">UuF: Unused field</a></td><td>Performance</td></tr> <tr bgcolor="#ffffff"><td><a href="#WMI_WRONG_MAP_ITERATOR">WMI: Inefficient use of keySet iterator instead of entrySet iterator</a></td><td>Performance</td></tr> <tr bgcolor="#eeeeee"><td><a href="#DMI_CONSTANT_DB_PASSWORD">Dm: Hardcoded constant database password</a></td><td>Security</td></tr> <tr bgcolor="#ffffff"><td><a href="#DMI_EMPTY_DB_PASSWORD">Dm: Empty database password</a></td><td>Security</td></tr> <tr bgcolor="#eeeeee"><td><a href="#HRS_REQUEST_PARAMETER_TO_COOKIE">HRS: HTTP cookie formed from untrusted input</a></td><td>Security</td></tr> <tr bgcolor="#ffffff"><td><a href="#HRS_REQUEST_PARAMETER_TO_HTTP_HEADER">HRS: HTTP Response splitting vulnerability</a></td><td>Security</td></tr> <tr bgcolor="#eeeeee"><td><a href="#PT_ABSOLUTE_PATH_TRAVERSAL">PT: Absolute path traversal in servlet</a></td><td>Security</td></tr> <tr bgcolor="#ffffff"><td><a href="#PT_RELATIVE_PATH_TRAVERSAL">PT: Relative path traversal in servlet</a></td><td>Security</td></tr> <tr bgcolor="#eeeeee"><td><a href="#SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE">SQL: Nonconstant string passed to execute method on an SQL statement</a></td><td>Security</td></tr> <tr bgcolor="#ffffff"><td><a href="#SQL_PREPARED_STATEMENT_GENERATED_FROM_NONCONSTANT_STRING">SQL: A prepared statement is generated from a nonconstant String</a></td><td>Security</td></tr> <tr bgcolor="#eeeeee"><td><a href="#XSS_REQUEST_PARAMETER_TO_JSP_WRITER">XSS: JSP reflected cross site scripting vulnerability</a></td><td>Security</td></tr> <tr bgcolor="#ffffff"><td><a href="#XSS_REQUEST_PARAMETER_TO_SEND_ERROR">XSS: Servlet reflected cross site scripting vulnerability in error page</a></td><td>Security</td></tr> <tr bgcolor="#eeeeee"><td><a href="#XSS_REQUEST_PARAMETER_TO_SERVLET_WRITER">XSS: Servlet reflected cross site scripting vulnerability</a></td><td>Security</td></tr> <tr bgcolor="#ffffff"><td><a href="#BC_BAD_CAST_TO_ABSTRACT_COLLECTION">BC: Questionable cast to abstract collection </a></td><td>Dodgy code</td></tr> <tr bgcolor="#eeeeee"><td><a href="#BC_BAD_CAST_TO_CONCRETE_COLLECTION">BC: Questionable cast to concrete collection</a></td><td>Dodgy code</td></tr> <tr bgcolor="#ffffff"><td><a href="#BC_UNCONFIRMED_CAST">BC: Unchecked/unconfirmed cast</a></td><td>Dodgy code</td></tr> <tr bgcolor="#eeeeee"><td><a href="#BC_UNCONFIRMED_CAST_OF_RETURN_VALUE">BC: Unchecked/unconfirmed cast of return value from method</a></td><td>Dodgy code</td></tr> <tr bgcolor="#ffffff"><td><a href="#BC_VACUOUS_INSTANCEOF">BC: instanceof will always return true</a></td><td>Dodgy code</td></tr> <tr bgcolor="#eeeeee"><td><a href="#ICAST_QUESTIONABLE_UNSIGNED_RIGHT_SHIFT">BSHIFT: Unsigned right shift cast to short/byte</a></td><td>Dodgy code</td></tr> <tr bgcolor="#ffffff"><td><a href="#CI_CONFUSED_INHERITANCE">CI: Class is final but declares protected field</a></td><td>Dodgy code</td></tr> <tr bgcolor="#eeeeee"><td><a href="#DB_DUPLICATE_BRANCHES">DB: Method uses the same code for two branches</a></td><td>Dodgy code</td></tr> <tr bgcolor="#ffffff"><td><a href="#DB_DUPLICATE_SWITCH_CLAUSES">DB: Method uses the same code for two switch clauses</a></td><td>Dodgy code</td></tr> <tr bgcolor="#eeeeee"><td><a href="#DLS_DEAD_LOCAL_STORE">DLS: Dead store to local variable</a></td><td>Dodgy code</td></tr> <tr bgcolor="#ffffff"><td><a href="#DLS_DEAD_LOCAL_STORE_IN_RETURN">DLS: Useless assignment in return statement</a></td><td>Dodgy code</td></tr> <tr bgcolor="#eeeeee"><td><a href="#DLS_DEAD_LOCAL_STORE_OF_NULL">DLS: Dead store of null to local variable</a></td><td>Dodgy code</td></tr> <tr bgcolor="#ffffff"><td><a href="#DLS_DEAD_LOCAL_STORE_SHADOWS_FIELD">DLS: Dead store to local variable that shadows field</a></td><td>Dodgy code</td></tr> <tr bgcolor="#eeeeee"><td><a href="#DMI_HARDCODED_ABSOLUTE_FILENAME">DMI: Code contains a hard coded reference to an absolute pathname</a></td><td>Dodgy code</td></tr> <tr bgcolor="#ffffff"><td><a href="#DMI_NONSERIALIZABLE_OBJECT_WRITTEN">DMI: Non serializable object written to ObjectOutput</a></td><td>Dodgy code</td></tr> <tr bgcolor="#eeeeee"><td><a href="#DMI_USELESS_SUBSTRING">DMI: Invocation of substring(0), which returns the original value</a></td><td>Dodgy code</td></tr> <tr bgcolor="#ffffff"><td><a href="#DMI_THREAD_PASSED_WHERE_RUNNABLE_EXPECTED">Dm: Thread passed where Runnable expected</a></td><td>Dodgy code</td></tr> <tr bgcolor="#eeeeee"><td><a href="#EQ_DOESNT_OVERRIDE_EQUALS">Eq: Class doesn't override equals in superclass</a></td><td>Dodgy code</td></tr> <tr bgcolor="#ffffff"><td><a href="#EQ_UNUSUAL">Eq: Unusual equals method </a></td><td>Dodgy code</td></tr> <tr bgcolor="#eeeeee"><td><a href="#FE_FLOATING_POINT_EQUALITY">FE: Test for floating point equality</a></td><td>Dodgy code</td></tr> <tr bgcolor="#ffffff"><td><a href="#VA_FORMAT_STRING_BAD_CONVERSION_TO_BOOLEAN">FS: Non-Boolean argument formatted using %b format specifier</a></td><td>Dodgy code</td></tr> <tr bgcolor="#eeeeee"><td><a href="#IA_AMBIGUOUS_INVOCATION_OF_INHERITED_OR_OUTER_METHOD">IA: Potentially ambiguous invocation of either an inherited or outer method</a></td><td>Dodgy code</td></tr> <tr bgcolor="#ffffff"><td><a href="#IC_INIT_CIRCULARITY">IC: Initialization circularity</a></td><td>Dodgy code</td></tr> <tr bgcolor="#eeeeee"><td><a href="#ICAST_IDIV_CAST_TO_DOUBLE">ICAST: Integral division result cast to double or float</a></td><td>Dodgy code</td></tr> <tr bgcolor="#ffffff"><td><a href="#ICAST_INTEGER_MULTIPLY_CAST_TO_LONG">ICAST: Result of integer multiplication cast to long</a></td><td>Dodgy code</td></tr> <tr bgcolor="#eeeeee"><td><a href="#IM_AVERAGE_COMPUTATION_COULD_OVERFLOW">IM: Computation of average could overflow</a></td><td>Dodgy code</td></tr> <tr bgcolor="#ffffff"><td><a href="#IM_BAD_CHECK_FOR_ODD">IM: Check for oddness that won't work for negative numbers </a></td><td>Dodgy code</td></tr> <tr bgcolor="#eeeeee"><td><a href="#INT_BAD_REM_BY_1">INT: Integer remainder modulo 1</a></td><td>Dodgy code</td></tr> <tr bgcolor="#ffffff"><td><a href="#INT_VACUOUS_BIT_OPERATION">INT: Vacuous bit mask operation on integer value</a></td><td>Dodgy code</td></tr> <tr bgcolor="#eeeeee"><td><a href="#INT_VACUOUS_COMPARISON">INT: Vacuous comparison of integer value</a></td><td>Dodgy code</td></tr> <tr bgcolor="#ffffff"><td><a href="#MTIA_SUSPECT_SERVLET_INSTANCE_FIELD">MTIA: Class extends Servlet class and uses instance variables</a></td><td>Dodgy code</td></tr> <tr bgcolor="#eeeeee"><td><a href="#MTIA_SUSPECT_STRUTS_INSTANCE_FIELD">MTIA: Class extends Struts Action class and uses instance variables</a></td><td>Dodgy code</td></tr> <tr bgcolor="#ffffff"><td><a href="#NP_DEREFERENCE_OF_READLINE_VALUE">NP: Dereference of the result of readLine() without nullcheck</a></td><td>Dodgy code</td></tr> <tr bgcolor="#eeeeee"><td><a href="#NP_IMMEDIATE_DEREFERENCE_OF_READLINE">NP: Immediate dereference of the result of readLine()</a></td><td>Dodgy code</td></tr> <tr bgcolor="#ffffff"><td><a href="#NP_LOAD_OF_KNOWN_NULL_VALUE">NP: Load of known null value</a></td><td>Dodgy code</td></tr> <tr bgcolor="#eeeeee"><td><a href="#NP_METHOD_PARAMETER_TIGHTENS_ANNOTATION">NP: Method tightens nullness annotation on parameter</a></td><td>Dodgy code</td></tr> <tr bgcolor="#ffffff"><td><a href="#NP_METHOD_RETURN_RELAXING_ANNOTATION">NP: Method relaxes nullness annotation on return value</a></td><td>Dodgy code</td></tr> <tr bgcolor="#eeeeee"><td><a href="#NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE">NP: Possible null pointer dereference due to return value of called method</a></td><td>Dodgy code</td></tr> <tr bgcolor="#ffffff"><td><a href="#NP_NULL_ON_SOME_PATH_MIGHT_BE_INFEASIBLE">NP: Possible null pointer dereference on branch that might be infeasible</a></td><td>Dodgy code</td></tr> <tr bgcolor="#eeeeee"><td><a href="#NP_PARAMETER_MUST_BE_NONNULL_BUT_MARKED_AS_NULLABLE">NP: Parameter must be nonnull but is marked as nullable</a></td><td>Dodgy code</td></tr> <tr bgcolor="#ffffff"><td><a href="#NP_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD">NP: Read of unwritten public or protected field</a></td><td>Dodgy code</td></tr> <tr bgcolor="#eeeeee"><td><a href="#NS_DANGEROUS_NON_SHORT_CIRCUIT">NS: Potentially dangerous use of non-short-circuit logic</a></td><td>Dodgy code</td></tr> <tr bgcolor="#ffffff"><td><a href="#NS_NON_SHORT_CIRCUIT">NS: Questionable use of non-short-circuit logic</a></td><td>Dodgy code</td></tr> <tr bgcolor="#eeeeee"><td><a href="#PZLA_PREFER_ZERO_LENGTH_ARRAYS">PZLA: Consider returning a zero length array rather than null</a></td><td>Dodgy code</td></tr> <tr bgcolor="#ffffff"><td><a href="#QF_QUESTIONABLE_FOR_LOOP">QF: Complicated, subtle or wrong increment in for-loop </a></td><td>Dodgy code</td></tr> <tr bgcolor="#eeeeee"><td><a href="#RCN_REDUNDANT_COMPARISON_OF_NULL_AND_NONNULL_VALUE">RCN: Redundant comparison of non-null value to null</a></td><td>Dodgy code</td></tr> <tr bgcolor="#ffffff"><td><a href="#RCN_REDUNDANT_COMPARISON_TWO_NULL_VALUES">RCN: Redundant comparison of two null values</a></td><td>Dodgy code</td></tr> <tr bgcolor="#eeeeee"><td><a href="#RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE">RCN: Redundant nullcheck of value known to be non-null</a></td><td>Dodgy code</td></tr> <tr bgcolor="#ffffff"><td><a href="#RCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE">RCN: Redundant nullcheck of value known to be null</a></td><td>Dodgy code</td></tr> <tr bgcolor="#eeeeee"><td><a href="#REC_CATCH_EXCEPTION">REC: Exception is caught when Exception is not thrown</a></td><td>Dodgy code</td></tr> <tr bgcolor="#ffffff"><td><a href="#RI_REDUNDANT_INTERFACES">RI: Class implements same interface as superclass</a></td><td>Dodgy code</td></tr> <tr bgcolor="#eeeeee"><td><a href="#RV_CHECK_FOR_POSITIVE_INDEXOF">RV: Method checks to see if result of String.indexOf is positive</a></td><td>Dodgy code</td></tr> <tr bgcolor="#ffffff"><td><a href="#RV_DONT_JUST_NULL_CHECK_READLINE">RV: Method discards result of readLine after checking if it is nonnull</a></td><td>Dodgy code</td></tr> <tr bgcolor="#eeeeee"><td><a href="#RV_REM_OF_HASHCODE">RV: Remainder of hashCode could be negative</a></td><td>Dodgy code</td></tr> <tr bgcolor="#ffffff"><td><a href="#RV_REM_OF_RANDOM_INT">RV: Remainder of 32-bit signed random integer</a></td><td>Dodgy code</td></tr> <tr bgcolor="#eeeeee"><td><a href="#RV_RETURN_VALUE_IGNORED_INFERRED">RV: Method ignores return value, is this OK?</a></td><td>Dodgy code</td></tr> <tr bgcolor="#ffffff"><td><a href="#SA_FIELD_DOUBLE_ASSIGNMENT">SA: Double assignment of field</a></td><td>Dodgy code</td></tr> <tr bgcolor="#eeeeee"><td><a href="#SA_LOCAL_DOUBLE_ASSIGNMENT">SA: Double assignment of local variable </a></td><td>Dodgy code</td></tr> <tr bgcolor="#ffffff"><td><a href="#SA_LOCAL_SELF_ASSIGNMENT">SA: Self assignment of local variable</a></td><td>Dodgy code</td></tr> <tr bgcolor="#eeeeee"><td><a href="#SF_SWITCH_FALLTHROUGH">SF: Switch statement found where one case falls through to the next case</a></td><td>Dodgy code</td></tr> <tr bgcolor="#ffffff"><td><a href="#SF_SWITCH_NO_DEFAULT">SF: Switch statement found where default case is missing</a></td><td>Dodgy code</td></tr> <tr bgcolor="#eeeeee"><td><a href="#ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD">ST: Write to static field from instance method</a></td><td>Dodgy code</td></tr> <tr bgcolor="#ffffff"><td><a href="#SE_PRIVATE_READ_RESOLVE_NOT_INHERITED">Se: Private readResolve method not inherited by subclasses</a></td><td>Dodgy code</td></tr> <tr bgcolor="#eeeeee"><td><a href="#SE_TRANSIENT_FIELD_OF_NONSERIALIZABLE_CLASS">Se: Transient field of class that isn't Serializable. </a></td><td>Dodgy code</td></tr> <tr bgcolor="#ffffff"><td><a href="#TQ_EXPLICIT_UNKNOWN_SOURCE_VALUE_REACHES_ALWAYS_SINK">TQ: Value required to have type qualifier, but marked as unknown</a></td><td>Dodgy code</td></tr> <tr bgcolor="#eeeeee"><td><a href="#TQ_EXPLICIT_UNKNOWN_SOURCE_VALUE_REACHES_NEVER_SINK">TQ: Value required to not have type qualifier, but marked as unknown</a></td><td>Dodgy code</td></tr> <tr bgcolor="#ffffff"><td><a href="#UCF_USELESS_CONTROL_FLOW">UCF: Useless control flow</a></td><td>Dodgy code</td></tr> <tr bgcolor="#eeeeee"><td><a href="#UCF_USELESS_CONTROL_FLOW_NEXT_LINE">UCF: Useless control flow to next line</a></td><td>Dodgy code</td></tr> <tr bgcolor="#ffffff"><td><a href="#URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD">UrF: Unread public/protected field</a></td><td>Dodgy code</td></tr> <tr bgcolor="#eeeeee"><td><a href="#UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD">UuF: Unused public or protected field</a></td><td>Dodgy code</td></tr> <tr bgcolor="#ffffff"><td><a href="#UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR">UwF: Field not initialized in constructor but dereferenced without null check</a></td><td>Dodgy code</td></tr> <tr bgcolor="#eeeeee"><td><a href="#UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD">UwF: Unwritten public or protected field</a></td><td>Dodgy code</td></tr> <tr bgcolor="#ffffff"><td><a href="#XFB_XML_FACTORY_BYPASS">XFB: Method directly allocates a specific implementation of xml interfaces</a></td><td>Dodgy code</td></tr> </table> <h2>Descriptions</h2> <h3><a name="BC_EQUALS_METHOD_SHOULD_WORK_FOR_ALL_OBJECTS">BC: Equals method should not assume anything about the type of its argument (BC_EQUALS_METHOD_SHOULD_WORK_FOR_ALL_OBJECTS)</a></h3> <p> The <code>equals(Object o)</code> method shouldn't make any assumptions about the type of <code>o</code>. It should simply return false if <code>o</code> is not the same type as <code>this</code>. </p> <h3><a name="BIT_SIGNED_CHECK">BIT: Check for sign of bitwise operation (BIT_SIGNED_CHECK)</a></h3> <p> This method compares an expression such as</p> <pre>((event.detail &amp; SWT.SELECTED) &gt; 0)</pre>. <p>Using bit arithmetic and then comparing with the greater than operator can lead to unexpected results (of course depending on the value of SWT.SELECTED). If SWT.SELECTED is a negative number, this is a candidate for a bug. Even when SWT.SELECTED is not negative, it seems good practice to use '!= 0' instead of '&gt; 0'. </p> <p> <em>Boris Bokowski</em> </p> <h3><a name="CN_IDIOM">CN: Class implements Cloneable but does not define or use clone method (CN_IDIOM)</a></h3> <p> Class implements Cloneable but does not define or use the clone method.</p> <h3><a name="CN_IDIOM_NO_SUPER_CALL">CN: clone method does not call super.clone() (CN_IDIOM_NO_SUPER_CALL)</a></h3> <p> This non-final class defines a clone() method that does not call super.clone(). If this class ("<i>A</i>") is extended by a subclass ("<i>B</i>"), and the subclass <i>B</i> calls super.clone(), then it is likely that <i>B</i>'s clone() method will return an object of type <i>A</i>, which violates the standard contract for clone().</p> <p> If all clone() methods call super.clone(), then they are guaranteed to use Object.clone(), which always returns an object of the correct type.</p> <h3><a name="CN_IMPLEMENTS_CLONE_BUT_NOT_CLONEABLE">CN: Class defines clone() but doesn't implement Cloneable (CN_IMPLEMENTS_CLONE_BUT_NOT_CLONEABLE)</a></h3> <p> This class defines a clone() method but the class doesn't implement Cloneable. There are some situations in which this is OK (e.g., you want to control how subclasses can clone themselves), but just make sure that this is what you intended. </p> <h3><a name="CO_ABSTRACT_SELF">Co: Abstract class defines covariant compareTo() method (CO_ABSTRACT_SELF)</a></h3> <p> This class defines a covariant version of <code>compareTo()</code>.&nbsp; To correctly override the <code>compareTo()</code> method in the <code>Comparable</code> interface, the parameter of <code>compareTo()</code> must have type <code>java.lang.Object</code>.</p> <h3><a name="CO_SELF_NO_OBJECT">Co: Covariant compareTo() method defined (CO_SELF_NO_OBJECT)</a></h3> <p> This class defines a covariant version of <code>compareTo()</code>.&nbsp; To correctly override the <code>compareTo()</code> method in the <code>Comparable</code> interface, the parameter of <code>compareTo()</code> must have type <code>java.lang.Object</code>.</p> <h3><a name="DE_MIGHT_DROP">DE: Method might drop exception (DE_MIGHT_DROP)</a></h3> <p> This method might drop an exception.&nbsp; In general, exceptions should be handled or reported in some way, or they should be thrown out of the method.</p> <h3><a name="DE_MIGHT_IGNORE">DE: Method might ignore exception (DE_MIGHT_IGNORE)</a></h3> <p> This method might ignore an exception.&nbsp; In general, exceptions should be handled or reported in some way, or they should be thrown out of the method.</p> <h3><a name="DMI_ENTRY_SETS_MAY_REUSE_ENTRY_OBJECTS">DMI: Adding elements of an entry set may fail due to reuse of Entry objects (DMI_ENTRY_SETS_MAY_REUSE_ENTRY_OBJECTS)</a></h3> <p> The entrySet() method is allowed to return a view of the underlying Map in which a single Entry object is reused and returned during the iteration. As of Java 1.6, both IdentityHashMap and EnumMap did so. When iterating through such a Map, the Entry value is only valid until you advance to the next iteration. If, for example, you try to pass such an entrySet to an addAll method, things will go badly wrong. </p> <h3><a name="DMI_RANDOM_USED_ONLY_ONCE">DMI: Random object created and used only once (DMI_RANDOM_USED_ONLY_ONCE)</a></h3> <p> This code creates a java.util.Random object, uses it to generate one random number, and then discards the Random object. This produces mediocre quality random numbers and is inefficient. If possible, rewrite the code so that the Random object is created once and saved, and each time a new random number is required invoke a method on the existing Random object to obtain it. </p> <p>If it is important that the generated Random numbers not be guessable, you <em>must</em> not create a new Random for each random number; the values are too easily guessable. You should strongly consider using a java.security.SecureRandom instead (and avoid allocating a new SecureRandom for each random number needed). </p> <h3><a name="DMI_USING_REMOVEALL_TO_CLEAR_COLLECTION">DMI: Don't use removeAll to clear a collection (DMI_USING_REMOVEALL_TO_CLEAR_COLLECTION)</a></h3> <p> If you want to remove all elements from a collection <code>c</code>, use <code>c.clear</code>, not <code>c.removeAll(c)</code>. Calling <code>c.removeAll(c)</code> to clear a collection is less clear, susceptible to errors from typos, less efficient and for some collections, might throw a <code>ConcurrentModificationException</code>. </p> <h3><a name="DM_EXIT">Dm: Method invokes System.exit(...) (DM_EXIT)</a></h3> <p> Invoking System.exit shuts down the entire Java virtual machine. This should only been done when it is appropriate. Such calls make it hard or impossible for your code to be invoked by other code. Consider throwing a RuntimeException instead.</p> <h3><a name="DM_RUN_FINALIZERS_ON_EXIT">Dm: Method invokes dangerous method runFinalizersOnExit (DM_RUN_FINALIZERS_ON_EXIT)</a></h3> <p> <em>Never call System.runFinalizersOnExit or Runtime.runFinalizersOnExit for any reason: they are among the most dangerous methods in the Java libraries.</em> -- Joshua Bloch</p> <h3><a name="ES_COMPARING_PARAMETER_STRING_WITH_EQ">ES: Comparison of String parameter using == or != (ES_COMPARING_PARAMETER_STRING_WITH_EQ)</a></h3> <p>This code compares a <code>java.lang.String</code> parameter for reference equality using the == or != operators. Requiring callers to pass only String constants or interned strings to a method is unnecessarily fragile, and rarely leads to measurable performance gains. Consider using the <code>equals(Object)</code> method instead.</p> <h3><a name="ES_COMPARING_STRINGS_WITH_EQ">ES: Comparison of String objects using == or != (ES_COMPARING_STRINGS_WITH_EQ)</a></h3> <p>This code compares <code>java.lang.String</code> objects for reference equality using the == or != operators. Unless both strings are either constants in a source file, or have been interned using the <code>String.intern()</code> method, the same string value may be represented by two different String objects. Consider using the <code>equals(Object)</code> method instead.</p> <h3><a name="EQ_ABSTRACT_SELF">Eq: Abstract class defines covariant equals() method (EQ_ABSTRACT_SELF)</a></h3> <p> This class defines a covariant version of <code>equals()</code>.&nbsp; To correctly override the <code>equals()</code> method in <code>java.lang.Object</code>, the parameter of <code>equals()</code> must have type <code>java.lang.Object</code>.</p> <h3><a name="EQ_CHECK_FOR_OPERAND_NOT_COMPATIBLE_WITH_THIS">Eq: Equals checks for incompatible operand (EQ_CHECK_FOR_OPERAND_NOT_COMPATIBLE_WITH_THIS)</a></h3> <p> This equals method is checking to see if the argument is some incompatible type (i.e., a class that is neither a supertype nor subtype of the class that defines the equals method). For example, the Foo class might have an equals method that looks like: </p> <pre> public boolean equals(Object o) { if (o instanceof Foo) return name.equals(((Foo)o).name); else if (o instanceof String) return name.equals(o); else return false; </pre> <p>This is considered bad practice, as it makes it very hard to implement an equals method that is symmetric and transitive. Without those properties, very unexpected behavoirs are possible. </p> <h3><a name="EQ_COMPARETO_USE_OBJECT_EQUALS">Eq: Class defines compareTo(...) and uses Object.equals() (EQ_COMPARETO_USE_OBJECT_EQUALS)</a></h3> <p> This class defines a <code>compareTo(...)</code> method but inherits its <code>equals()</code> method from <code>java.lang.Object</code>. Generally, the value of compareTo should return zero if and only if equals returns true. If this is violated, weird and unpredictable failures will occur in classes such as PriorityQueue. In Java 5 the PriorityQueue.remove method uses the compareTo method, while in Java 6 it uses the equals method. <p>From the JavaDoc for the compareTo method in the Comparable interface: <blockquote> It is strongly recommended, but not strictly required that <code>(x.compareTo(y)==0) == (x.equals(y))</code>. Generally speaking, any class that implements the Comparable interface and violates this condition should clearly indicate this fact. The recommended language is "Note: this class has a natural ordering that is inconsistent with equals." </blockquote> <h3><a name="EQ_GETCLASS_AND_CLASS_CONSTANT">Eq: equals method fails for subtypes (EQ_GETCLASS_AND_CLASS_CONSTANT)</a></h3> <p> This class has an equals method that will be broken if it is inherited by subclasses. It compares a class literal with the class of the argument (e.g., in class <code>Foo</code> it might check if <code>Foo.class == o.getClass()</code>). It is better to check if <code>this.getClass() == o.getClass()</code>. </p> <h3><a name="EQ_SELF_NO_OBJECT">Eq: Covariant equals() method defined (EQ_SELF_NO_OBJECT)</a></h3> <p> This class defines a covariant version of <code>equals()</code>.&nbsp; To correctly override the <code>equals()</code> method in <code>java.lang.Object</code>, the parameter of <code>equals()</code> must have type <code>java.lang.Object</code>.</p> <h3><a name="FI_EMPTY">FI: Empty finalizer should be deleted (FI_EMPTY)</a></h3> <p> Empty <code>finalize()</code> methods are useless, so they should be deleted.</p> <h3><a name="FI_EXPLICIT_INVOCATION">FI: Explicit invocation of finalizer (FI_EXPLICIT_INVOCATION)</a></h3> <p> This method contains an explicit invocation of the <code>finalize()</code> method on an object.&nbsp; Because finalizer methods are supposed to be executed once, and only by the VM, this is a bad idea.</p> <p>If a connected set of objects beings finalizable, then the VM will invoke the finalize method on all the finalizable object, possibly at the same time in different threads. Thus, it is a particularly bad idea, in the finalize method for a class X, invoke finalize on objects referenced by X, because they may already be getting finalized in a separate thread. <h3><a name="FI_FINALIZER_NULLS_FIELDS">FI: Finalizer nulls fields (FI_FINALIZER_NULLS_FIELDS)</a></h3> <p> This finalizer nulls out fields. This is usually an error, as it does not aid garbage collection, and the object is going to be garbage collected anyway. <h3><a name="FI_FINALIZER_ONLY_NULLS_FIELDS">FI: Finalizer only nulls fields (FI_FINALIZER_ONLY_NULLS_FIELDS)</a></h3> <p> This finalizer does nothing except null out fields. This is completely pointless, and requires that the object be garbage collected, finalized, and then garbage collected again. You should just remove the finalize method. <h3><a name="FI_MISSING_SUPER_CALL">FI: Finalizer does not call superclass finalizer (FI_MISSING_SUPER_CALL)</a></h3> <p> This <code>finalize()</code> method does not make a call to its superclass's <code>finalize()</code> method.&nbsp; So, any finalizer actions defined for the superclass will not be performed.&nbsp; Add a call to <code>super.finalize()</code>.</p> <h3><a name="FI_NULLIFY_SUPER">FI: Finalizer nullifies superclass finalizer (FI_NULLIFY_SUPER)</a></h3> <p> This empty <code>finalize()</code> method explicitly negates the effect of any finalizer defined by its superclass.&nbsp; Any finalizer actions defined for the superclass will not be performed.&nbsp; Unless this is intended, delete this method.</p> <h3><a name="FI_USELESS">FI: Finalizer does nothing but call superclass finalizer (FI_USELESS)</a></h3> <p> The only thing this <code>finalize()</code> method does is call the superclass's <code>finalize()</code> method, making it redundant.&nbsp; Delete it.</p> <h3><a name="VA_FORMAT_STRING_USES_NEWLINE">FS: Format string should use %n rather than \n (VA_FORMAT_STRING_USES_NEWLINE)</a></h3> <p> This format string include a newline character (\n). In format strings, it is generally preferable better to use %n, which will produce the platform-specific line separator. </p> <h3><a name="GC_UNCHECKED_TYPE_IN_GENERIC_CALL">GC: Unchecked type in generic call (GC_UNCHECKED_TYPE_IN_GENERIC_CALL)</a></h3> <p> This call to a generic collection method passes an argument while compile type Object where a specific type from the generic type parameters is expected. Thus, neither the standard Java type system nor static analysis can provide useful information on whether the object being passed as a parameter is of an appropriate type. </p> <h3><a name="HE_EQUALS_NO_HASHCODE">HE: Class defines equals() but not hashCode() (HE_EQUALS_NO_HASHCODE)</a></h3> <p> This class overrides <code>equals(Object)</code>, but does not override <code>hashCode()</code>.&nbsp; Therefore, the class may violate the invariant that equal objects must have equal hashcodes.</p> <h3><a name="HE_EQUALS_USE_HASHCODE">HE: Class defines equals() and uses Object.hashCode() (HE_EQUALS_USE_HASHCODE)</a></h3> <p> This class overrides <code>equals(Object)</code>, but does not override <code>hashCode()</code>, and inherits the implementation of <code>hashCode()</code> from <code>java.lang.Object</code> (which returns the identity hash code, an arbitrary value assigned to the object by the VM).&nbsp; Therefore, the class is very likely to violate the invariant that equal objects must have equal hashcodes.</p> <p>If you don't think instances of this class will ever be inserted into a HashMap/HashTable, the recommended <code>hashCode</code> implementation to use is:</p> <pre>public int hashCode() { assert false : "hashCode not designed"; return 42; // any arbitrary constant will do }</pre> <h3><a name="HE_HASHCODE_NO_EQUALS">HE: Class defines hashCode() but not equals() (HE_HASHCODE_NO_EQUALS)</a></h3> <p> This class defines a <code>hashCode()</code> method but not an <code>equals()</code> method.&nbsp; Therefore, the class may violate the invariant that equal objects must have equal hashcodes.</p> <h3><a name="HE_HASHCODE_USE_OBJECT_EQUALS">HE: Class defines hashCode() and uses Object.equals() (HE_HASHCODE_USE_OBJECT_EQUALS)</a></h3> <p> This class defines a <code>hashCode()</code> method but inherits its <code>equals()</code> method from <code>java.lang.Object</code> (which defines equality by comparing object references).&nbsp; Although this will probably satisfy the contract that equal objects must have equal hashcodes, it is probably not what was intended by overriding the <code>hashCode()</code> method.&nbsp; (Overriding <code>hashCode()</code> implies that the object's identity is based on criteria more complicated than simple reference equality.)</p> <p>If you don't think instances of this class will ever be inserted into a HashMap/HashTable, the recommended <code>hashCode</code> implementation to use is:</p> <pre>public int hashCode() { assert false : "hashCode not designed"; return 42; // any arbitrary constant will do }</pre> <h3><a name="HE_INHERITS_EQUALS_USE_HASHCODE">HE: Class inherits equals() and uses Object.hashCode() (HE_INHERITS_EQUALS_USE_HASHCODE)</a></h3> <p> This class inherits <code>equals(Object)</code> from an abstract superclass, and <code>hashCode()</code> from <code>java.lang.Object</code> (which returns the identity hash code, an arbitrary value assigned to the object by the VM).&nbsp; Therefore, the class is very likely to violate the invariant that equal objects must have equal hashcodes.</p> <p>If you don't want to define a hashCode method, and/or don't believe the object will ever be put into a HashMap/Hashtable, define the <code>hashCode()</code> method to throw <code>UnsupportedOperationException</code>.</p> <h3><a name="IC_SUPERCLASS_USES_SUBCLASS_DURING_INITIALIZATION">IC: Superclass uses subclass during initialization (IC_SUPERCLASS_USES_SUBCLASS_DURING_INITIALIZATION)</a></h3> <p> During the initialization of a class, the class makes an active use of a subclass. That subclass will not yet be initialized at the time of this use. For example, in the following code, <code>foo</code> will be null.</p> <pre> public class CircularClassInitialization { static class InnerClassSingleton extends CircularClassInitialization { static InnerClassSingleton singleton = new InnerClassSingleton(); } static CircularClassInitialization foo = InnerClassSingleton.singleton; } </pre> <h3><a name="IMSE_DONT_CATCH_IMSE">IMSE: Dubious catching of IllegalMonitorStateException (IMSE_DONT_CATCH_IMSE)</a></h3> <p>IllegalMonitorStateException is generally only thrown in case of a design flaw in your code (calling wait or notify on an object you do not hold a lock on).</p> <h3><a name="ISC_INSTANTIATE_STATIC_CLASS">ISC: Needless instantiation of class that only supplies static methods (ISC_INSTANTIATE_STATIC_CLASS)</a></h3> <p> This class allocates an object that is based on a class that only supplies static methods. This object does not need to be created, just access the static methods directly using the class name as a qualifier.</p> <h3><a name="IT_NO_SUCH_ELEMENT">It: Iterator next() method can't throw NoSuchElementException (IT_NO_SUCH_ELEMENT)</a></h3> <p> This class implements the <code>java.util.Iterator</code> interface.&nbsp; However, its <code>next()</code> method is not capable of throwing <code>java.util.NoSuchElementException</code>.&nbsp; The <code>next()</code> method should be changed so it throws <code>NoSuchElementException</code> if is called when there are no more elements to return.</p> <h3><a name="J2EE_STORE_OF_NON_SERIALIZABLE_OBJECT_INTO_SESSION">J2EE: Store of non serializable object into HttpSession (J2EE_STORE_OF_NON_SERIALIZABLE_OBJECT_INTO_SESSION)</a></h3> <p> This code seems to be storing a non-serializable object into an HttpSession. If this session is passivated or migrated, an error will result. </p> <h3><a name="JCIP_FIELD_ISNT_FINAL_IN_IMMUTABLE_CLASS">JCIP: Fields of immutable classes should be final (JCIP_FIELD_ISNT_FINAL_IN_IMMUTABLE_CLASS)</a></h3> <p> The class is annotated with net.jcip.annotations.Immutable or javax.annotation.concurrent.Immutable, and the rules for those annotations require that all fields are final. .</p> <h3><a name="NP_BOOLEAN_RETURN_NULL">NP: Method with Boolean return type returns explicit null (NP_BOOLEAN_RETURN_NULL)</a></h3> <p> A method that returns either Boolean.TRUE, Boolean.FALSE or null is an accident waiting to happen. This method can be invoked as though it returned a value of type boolean, and the compiler will insert automatic unboxing of the Boolean value. If a null value is returned, this will result in a NullPointerException. </p> <h3><a name="NP_CLONE_COULD_RETURN_NULL">NP: Clone method may return null (NP_CLONE_COULD_RETURN_NULL)</a></h3> <p> This clone method seems to return null in some circumstances, but clone is never allowed to return a null value. If you are convinced this path is unreachable, throw an AssertionError instead. </p> <h3><a name="NP_EQUALS_SHOULD_HANDLE_NULL_ARGUMENT">NP: equals() method does not check for null argument (NP_EQUALS_SHOULD_HANDLE_NULL_ARGUMENT)</a></h3> <p> This implementation of equals(Object) violates the contract defined by java.lang.Object.equals() because it does not check for null being passed as the argument. All equals() methods should return false if passed a null value. </p> <h3><a name="NP_TOSTRING_COULD_RETURN_NULL">NP: toString method may return null (NP_TOSTRING_COULD_RETURN_NULL)</a></h3> <p> This toString method seems to return null in some circumstances. A liberal reading of the spec could be interpreted as allowing this, but it is probably a bad idea and could cause other code to break. Return the empty string or some other appropriate string rather than null. </p> <h3><a name="NM_CLASS_NAMING_CONVENTION">Nm: Class names should start with an upper case letter (NM_CLASS_NAMING_CONVENTION)</a></h3> <p> Class names should be nouns, in mixed case with the first letter of each internal word capitalized. Try to keep your class names simple and descriptive. Use whole words-avoid acronyms and abbreviations (unless the abbreviation is much more widely used than the long form, such as URL or HTML). </p> <h3><a name="NM_CLASS_NOT_EXCEPTION">Nm: Class is not derived from an Exception, even though it is named as such (NM_CLASS_NOT_EXCEPTION)</a></h3> <p> This class is not derived from another exception, but ends with 'Exception'. This will be confusing to users of this class.</p> <h3><a name="NM_CONFUSING">Nm: Confusing method names (NM_CONFUSING)</a></h3> <p> The referenced methods have names that differ only by capitalization.</p> <h3><a name="NM_FIELD_NAMING_CONVENTION">Nm: Field names should start with a lower case letter (NM_FIELD_NAMING_CONVENTION)</a></h3> <p> Names of fields that are not final should be in mixed case with a lowercase first letter and the first letters of subsequent words capitalized. </p> <h3><a name="NM_FUTURE_KEYWORD_USED_AS_IDENTIFIER">Nm: Use of identifier that is a keyword in later versions of Java (NM_FUTURE_KEYWORD_USED_AS_IDENTIFIER)</a></h3> <p>The identifier is a word that is reserved as a keyword in later versions of Java, and your code will need to be changed in order to compile it in later versions of Java.</p> <h3><a name="NM_FUTURE_KEYWORD_USED_AS_MEMBER_IDENTIFIER">Nm: Use of identifier that is a keyword in later versions of Java (NM_FUTURE_KEYWORD_USED_AS_MEMBER_IDENTIFIER)</a></h3> <p>This identifier is used as a keyword in later versions of Java. This code, and any code that references this API, will need to be changed in order to compile it in later versions of Java.</p> <h3><a name="NM_METHOD_NAMING_CONVENTION">Nm: Method names should start with a lower case letter (NM_METHOD_NAMING_CONVENTION)</a></h3> <p> Methods should be verbs, in mixed case with the first letter lowercase, with the first letter of each internal word capitalized. </p> <h3><a name="NM_SAME_SIMPLE_NAME_AS_INTERFACE">Nm: Class names shouldn't shadow simple name of implemented interface (NM_SAME_SIMPLE_NAME_AS_INTERFACE)</a></h3> <p> This class/interface has a simple name that is identical to that of an implemented/extended interface, except that the interface is in a different package (e.g., <code>alpha.Foo</code> extends <code>beta.Foo</code>). This can be exceptionally confusing, create lots of situations in which you have to look at import statements to resolve references and creates many opportunities to accidently define methods that do not override methods in their superclasses. </p> <h3><a name="NM_SAME_SIMPLE_NAME_AS_SUPERCLASS">Nm: Class names shouldn't shadow simple name of superclass (NM_SAME_SIMPLE_NAME_AS_SUPERCLASS)</a></h3> <p> This class has a simple name that is identical to that of its superclass, except that its superclass is in a different package (e.g., <code>alpha.Foo</code> extends <code>beta.Foo</code>). This can be exceptionally confusing, create lots of situations in which you have to look at import statements to resolve references and creates many opportunities to accidently define methods that do not override methods in their superclasses. </p> <h3><a name="NM_VERY_CONFUSING_INTENTIONAL">Nm: Very confusing method names (but perhaps intentional) (NM_VERY_CONFUSING_INTENTIONAL)</a></h3> <p> The referenced methods have names that differ only by capitalization. This is very confusing because if the capitalization were identical then one of the methods would override the other. From the existence of other methods, it seems that the existence of both of these methods is intentional, but is sure is confusing. You should try hard to eliminate one of them, unless you are forced to have both due to frozen APIs. </p> <h3><a name="NM_WRONG_PACKAGE_INTENTIONAL">Nm: Method doesn't override method in superclass due to wrong package for parameter (NM_WRONG_PACKAGE_INTENTIONAL)</a></h3> <p> The method in the subclass doesn't override a similar method in a superclass because the type of a parameter doesn't exactly match the type of the corresponding parameter in the superclass. For example, if you have:</p> <blockquote> <pre> import alpha.Foo; public class A { public int f(Foo x) { return 17; } } ---- import beta.Foo; public class B extends A { public int f(Foo x) { return 42; } public int f(alpha.Foo x) { return 27; } } </pre> </blockquote> <p>The <code>f(Foo)</code> method defined in class <code>B</code> doesn't override the <code>f(Foo)</code> method defined in class <code>A</code>, because the argument types are <code>Foo</code>'s from different packages. </p> <p>In this case, the subclass does define a method with a signature identical to the method in the superclass, so this is presumably understood. However, such methods are exceptionally confusing. You should strongly consider removing or deprecating the method with the similar but not identical signature. </p> <h3><a name="ODR_OPEN_DATABASE_RESOURCE">ODR: Method may fail to close database resource (ODR_OPEN_DATABASE_RESOURCE)</a></h3> <p> The method creates a database resource (such as a database connection or row set), does not assign it to any fields, pass it to other methods, or return it, and does not appear to close the object on all paths out of the method.&nbsp; Failure to close database resources on all paths out of a method may result in poor performance, and could cause the application to have problems communicating with the database. </p> <h3><a name="ODR_OPEN_DATABASE_RESOURCE_EXCEPTION_PATH">ODR: Method may fail to close database resource on exception (ODR_OPEN_DATABASE_RESOURCE_EXCEPTION_PATH)</a></h3> <p> The method creates a database resource (such as a database connection or row set), does not assign it to any fields, pass it to other methods, or return it, and does not appear to close the object on all exception paths out of the method.&nbsp; Failure to close database resources on all paths out of a method may result in poor performance, and could cause the application to have problems communicating with the database.</p> <h3><a name="OS_OPEN_STREAM">OS: Method may fail to close stream (OS_OPEN_STREAM)</a></h3> <p> The method creates an IO stream object, does not assign it to any fields, pass it to other methods that might close it, or return it, and does not appear to close the stream on all paths out of the method.&nbsp; This may result in a file descriptor leak.&nbsp; It is generally a good idea to use a <code>finally</code> block to ensure that streams are closed.</p> <h3><a name="OS_OPEN_STREAM_EXCEPTION_PATH">OS: Method may fail to close stream on exception (OS_OPEN_STREAM_EXCEPTION_PATH)</a></h3> <p> The method creates an IO stream object, does not assign it to any fields, pass it to other methods, or return it, and does not appear to close it on all possible exception paths out of the method.&nbsp; This may result in a file descriptor leak.&nbsp; It is generally a good idea to use a <code>finally</code> block to ensure that streams are closed.</p> <h3><a name="PZ_DONT_REUSE_ENTRY_OBJECTS_IN_ITERATORS">PZ: Don't reuse entry objects in iterators (PZ_DONT_REUSE_ENTRY_OBJECTS_IN_ITERATORS)</a></h3> <p> The entrySet() method is allowed to return a view of the underlying Map in which an Iterator and Map.Entry. This clever idea was used in several Map implementations, but introduces the possibility of nasty coding mistakes. If a map <code>m</code> returns such an iterator for an entrySet, then <code>c.addAll(m.entrySet())</code> will go badly wrong. All of the Map implementations in OpenJDK 1.7 have been rewritten to avoid this, you should to. </p> <h3><a name="RC_REF_COMPARISON_BAD_PRACTICE">RC: Suspicious reference comparison to constant (RC_REF_COMPARISON_BAD_PRACTICE)</a></h3> <p> This method compares a reference value to a constant using the == or != operator, where the correct way to compare instances of this type is generally with the equals() method. It is possible to create distinct instances that are equal but do not compare as == since they are different objects. Examples of classes which should generally not be compared by reference are java.lang.Integer, java.lang.Float, etc.</p> <h3><a name="RC_REF_COMPARISON_BAD_PRACTICE_BOOLEAN">RC: Suspicious reference comparison of Boolean values (RC_REF_COMPARISON_BAD_PRACTICE_BOOLEAN)</a></h3> <p> This method compares two Boolean values using the == or != operator. Normally, there are only two Boolean values (Boolean.TRUE and Boolean.FALSE), but it is possible to create other Boolean objects using the <code>new Boolean(b)</code> constructor. It is best to avoid such objects, but if they do exist, then checking Boolean objects for equality using == or != will give results than are different than you would get using <code>.equals(...)</code> </p> <h3><a name="RR_NOT_CHECKED">RR: Method ignores results of InputStream.read() (RR_NOT_CHECKED)</a></h3> <p> This method ignores the return value of one of the variants of <code>java.io.InputStream.read()</code> which can return multiple bytes.&nbsp; If the return value is not checked, the caller will not be able to correctly handle the case where fewer bytes were read than the caller requested.&nbsp; This is a particularly insidious kind of bug, because in many programs, reads from input streams usually do read the full amount of data requested, causing the program to fail only sporadically.</p> <h3><a name="SR_NOT_CHECKED">RR: Method ignores results of InputStream.skip() (SR_NOT_CHECKED)</a></h3> <p> This method ignores the return value of <code>java.io.InputStream.skip()</code> which can skip multiple bytes.&nbsp; If the return value is not checked, the caller will not be able to correctly handle the case where fewer bytes were skipped than the caller requested.&nbsp; This is a particularly insidious kind of bug, because in many programs, skips from input streams usually do skip the full amount of data requested, causing the program to fail only sporadically. With Buffered streams, however, skip() will only skip data in the buffer, and will routinely fail to skip the requested number of bytes.</p> <h3><a name="RV_NEGATING_RESULT_OF_COMPARETO">RV: Negating the result of compareTo()/compare() (RV_NEGATING_RESULT_OF_COMPARETO)</a></h3> <p> This code negatives the return value of a compareTo or compare method. This is a questionable or bad programming practice, since if the return value is Integer.MIN_VALUE, negating the return value won't negate the sign of the result. You can achieve the same intended result by reversing the order of the operands rather than by negating the results. </p> <h3><a name="RV_RETURN_VALUE_IGNORED_BAD_PRACTICE">RV: Method ignores exceptional return value (RV_RETURN_VALUE_IGNORED_BAD_PRACTICE)</a></h3> <p> This method returns a value that is not checked. The return value should be checked since it can indicate an unusual or unexpected function execution. For example, the <code>File.delete()</code> method returns false if the file could not be successfully deleted (rather than throwing an Exception). If you don't check the result, you won't notice if the method invocation signals unexpected behavior by returning an atypical return value. </p> <h3><a name="SI_INSTANCE_BEFORE_FINALS_ASSIGNED">SI: Static initializer creates instance before all static final fields assigned (SI_INSTANCE_BEFORE_FINALS_ASSIGNED)</a></h3> <p> The class's static initializer creates an instance of the class before all of the static final fields are assigned.</p> <h3><a name="SW_SWING_METHODS_INVOKED_IN_SWING_THREAD">SW: Certain swing methods needs to be invoked in Swing thread (SW_SWING_METHODS_INVOKED_IN_SWING_THREAD)</a></h3> <p>(<a href="http://web.archive.org/web/20090526170426/http://java.sun.com/developer/JDCTechTips/2003/tt1208.html">From JDC Tech Tip</a>): The Swing methods show(), setVisible(), and pack() will create the associated peer for the frame. With the creation of the peer, the system creates the event dispatch thread. This makes things problematic because the event dispatch thread could be notifying listeners while pack and validate are still processing. This situation could result in two threads going through the Swing component-based GUI -- it's a serious flaw that could result in deadlocks or other related threading issues. A pack call causes components to be realized. As they are being realized (that is, not necessarily visible), they could trigger listener notification on the event dispatch thread.</p> <h3><a name="SE_BAD_FIELD">Se: Non-transient non-serializable instance field in serializable class (SE_BAD_FIELD)</a></h3> <p> This Serializable class defines a non-primitive instance field which is neither transient, Serializable, or <code>java.lang.Object</code>, and does not appear to implement the <code>Externalizable</code> interface or the <code>readObject()</code> and <code>writeObject()</code> methods.&nbsp; Objects of this class will not be deserialized correctly if a non-Serializable object is stored in this field.</p> <h3><a name="SE_BAD_FIELD_INNER_CLASS">Se: Non-serializable class has a serializable inner class (SE_BAD_FIELD_INNER_CLASS)</a></h3> <p> This Serializable class is an inner class of a non-serializable class. Thus, attempts to serialize it will also attempt to associate instance of the outer class with which it is associated, leading to a runtime error. </p> <p>If possible, making the inner class a static inner class should solve the problem. Making the outer class serializable might also work, but that would mean serializing an instance of the inner class would always also serialize the instance of the outer class, which it often not what you really want. <h3><a name="SE_BAD_FIELD_STORE">Se: Non-serializable value stored into instance field of a serializable class (SE_BAD_FIELD_STORE)</a></h3> <p> A non-serializable value is stored into a non-transient field of a serializable class.</p> <h3><a name="SE_COMPARATOR_SHOULD_BE_SERIALIZABLE">Se: Comparator doesn't implement Serializable (SE_COMPARATOR_SHOULD_BE_SERIALIZABLE)</a></h3> <p> This class implements the <code>Comparator</code> interface. You should consider whether or not it should also implement the <code>Serializable</code> interface. If a comparator is used to construct an ordered collection such as a <code>TreeMap</code>, then the <code>TreeMap</code> will be serializable only if the comparator is also serializable. As most comparators have little or no state, making them serializable is generally easy and good defensive programming. </p> <h3><a name="SE_INNER_CLASS">Se: Serializable inner class (SE_INNER_CLASS)</a></h3> <p> This Serializable class is an inner class. Any attempt to serialize it will also serialize the associated outer instance. The outer instance is serializable, so this won't fail, but it might serialize a lot more data than intended. If possible, making the inner class a static inner class (also known as a nested class) should solve the problem. <h3><a name="SE_NONFINAL_SERIALVERSIONID">Se: serialVersionUID isn't final (SE_NONFINAL_SERIALVERSIONID)</a></h3> <p> This class defines a <code>serialVersionUID</code> field that is not final.&nbsp; The field should be made final if it is intended to specify the version UID for purposes of serialization.</p> <h3><a name="SE_NONLONG_SERIALVERSIONID">Se: serialVersionUID isn't long (SE_NONLONG_SERIALVERSIONID)</a></h3> <p> This class defines a <code>serialVersionUID</code> field that is not long.&nbsp; The field should be made long if it is intended to specify the version UID for purposes of serialization.</p> <h3><a name="SE_NONSTATIC_SERIALVERSIONID">Se: serialVersionUID isn't static (SE_NONSTATIC_SERIALVERSIONID)</a></h3> <p> This class defines a <code>serialVersionUID</code> field that is not static.&nbsp; The field should be made static if it is intended to specify the version UID for purposes of serialization.</p> <h3><a name="SE_NO_SUITABLE_CONSTRUCTOR">Se: Class is Serializable but its superclass doesn't define a void constructor (SE_NO_SUITABLE_CONSTRUCTOR)</a></h3> <p> This class implements the <code>Serializable</code> interface and its superclass does not. When such an object is deserialized, the fields of the superclass need to be initialized by invoking the void constructor of the superclass. Since the superclass does not have one, serialization and deserialization will fail at runtime.</p> <h3><a name="SE_NO_SUITABLE_CONSTRUCTOR_FOR_EXTERNALIZATION">Se: Class is Externalizable but doesn't define a void constructor (SE_NO_SUITABLE_CONSTRUCTOR_FOR_EXTERNALIZATION)</a></h3> <p> This class implements the <code>Externalizable</code> interface, but does not define a void constructor. When Externalizable objects are deserialized, they first need to be constructed by invoking the void constructor. Since this class does not have one, serialization and deserialization will fail at runtime.</p> <h3><a name="SE_READ_RESOLVE_MUST_RETURN_OBJECT">Se: The readResolve method must be declared with a return type of Object. (SE_READ_RESOLVE_MUST_RETURN_OBJECT)</a></h3> <p> In order for the readResolve method to be recognized by the serialization mechanism, it must be declared to have a return type of Object. </p> <h3><a name="SE_TRANSIENT_FIELD_NOT_RESTORED">Se: Transient field that isn't set by deserialization. (SE_TRANSIENT_FIELD_NOT_RESTORED)</a></h3> <p> This class contains a field that is updated at multiple places in the class, thus it seems to be part of the state of the class. However, since the field is marked as transient and not set in readObject or readResolve, it will contain the default value in any deserialized instance of the class. </p> <h3><a name="SE_NO_SERIALVERSIONID">SnVI: Class is Serializable, but doesn't define serialVersionUID (SE_NO_SERIALVERSIONID)</a></h3> <p> This class implements the <code>Serializable</code> interface, but does not define a <code>serialVersionUID</code> field.&nbsp; A change as simple as adding a reference to a .class object will add synthetic fields to the class, which will unfortunately change the implicit serialVersionUID (e.g., adding a reference to <code>String.class</code> will generate a static field <code>class$java$lang$String</code>). Also, different source code to bytecode compilers may use different naming conventions for synthetic variables generated for references to class objects or inner classes. To ensure interoperability of Serializable across versions, consider adding an explicit serialVersionUID.</p> <h3><a name="UI_INHERITANCE_UNSAFE_GETRESOURCE">UI: Usage of GetResource may be unsafe if class is extended (UI_INHERITANCE_UNSAFE_GETRESOURCE)</a></h3> <p>Calling <code>this.getClass().getResource(...)</code> could give results other than expected if this class is extended by a class in another package.</p> <h3><a name="BC_IMPOSSIBLE_CAST">BC: Impossible cast (BC_IMPOSSIBLE_CAST)</a></h3> <p> This cast will always throw a ClassCastException. FindBugs tracks type information from instanceof checks, and also uses more precise information about the types of values returned from methods and loaded from fields. Thus, it may have more precise information that just the declared type of a variable, and can use this to determine that a cast will always throw an exception at runtime. </p> <h3><a name="BC_IMPOSSIBLE_DOWNCAST">BC: Impossible downcast (BC_IMPOSSIBLE_DOWNCAST)</a></h3> <p> This cast will always throw a ClassCastException. The analysis believes it knows the precise type of the value being cast, and the attempt to downcast it to a subtype will always fail by throwing a ClassCastException. </p> <h3><a name="BC_IMPOSSIBLE_DOWNCAST_OF_TOARRAY">BC: Impossible downcast of toArray() result (BC_IMPOSSIBLE_DOWNCAST_OF_TOARRAY)</a></h3> <p> This code is casting the result of calling <code>toArray()</code> on a collection to a type more specific than <code>Object[]</code>, as in:</p> <pre> String[] getAsArray(Collection&lt;String&gt; c) { return (String[]) c.toArray(); } </pre> <p>This will usually fail by throwing a ClassCastException. The <code>toArray()</code> of almost all collections return an <code>Object[]</code>. They can't really do anything else, since the Collection object has no reference to the declared generic type of the collection. <p>The correct way to do get an array of a specific type from a collection is to use <code>c.toArray(new String[]);</code> or <code>c.toArray(new String[c.size()]);</code> (the latter is slightly more efficient). <p>There is one common/known exception exception to this. The <code>toArray()</code> method of lists returned by <code>Arrays.asList(...)</code> will return a covariantly typed array. For example, <code>Arrays.asArray(new String[] { "a" }).toArray()</code> will return a <code>String []</code>. FindBugs attempts to detect and suppress such cases, but may miss some. </p> <h3><a name="BC_IMPOSSIBLE_INSTANCEOF">BC: instanceof will always return false (BC_IMPOSSIBLE_INSTANCEOF)</a></h3> <p> This instanceof test will always return false. Although this is safe, make sure it isn't an indication of some misunderstanding or some other logic error. </p> <h3><a name="BIT_ADD_OF_SIGNED_BYTE">BIT: Bitwise add of signed byte value (BIT_ADD_OF_SIGNED_BYTE)</a></h3> <p> Adds a byte value and a value which is known to have the 8 lower bits clear. Values loaded from a byte array are sign extended to 32 bits before any any bitwise operations are performed on the value. Thus, if <code>b[0]</code> contains the value <code>0xff</code>, and <code>x</code> is initially 0, then the code <code>((x &lt;&lt; 8) + b[0])</code> will sign extend <code>0xff</code> to get <code>0xffffffff</code>, and thus give the value <code>0xffffffff</code> as the result. </p> <p>In particular, the following code for packing a byte array into an int is badly wrong: </p> <pre> int result = 0; for(int i = 0; i &lt; 4; i++) result = ((result &lt;&lt; 8) + b[i]); </pre> <p>The following idiom will work instead: </p> <pre> int result = 0; for(int i = 0; i &lt; 4; i++) result = ((result &lt;&lt; 8) + (b[i] &amp; 0xff)); </pre> <h3><a name="BIT_AND">BIT: Incompatible bit masks (BIT_AND)</a></h3> <p> This method compares an expression of the form (e &amp; C) to D, which will always compare unequal due to the specific values of constants C and D. This may indicate a logic error or typo.</p> <h3><a name="BIT_AND_ZZ">BIT: Check to see if ((...) & 0) == 0 (BIT_AND_ZZ)</a></h3> <p> This method compares an expression of the form (e &amp; 0) to 0, which will always compare equal. This may indicate a logic error or typo.</p> <h3><a name="BIT_IOR">BIT: Incompatible bit masks (BIT_IOR)</a></h3> <p> This method compares an expression of the form (e | C) to D. which will always compare unequal due to the specific values of constants C and D. This may indicate a logic error or typo.</p> <p> Typically, this bug occurs because the code wants to perform a membership test in a bit set, but uses the bitwise OR operator ("|") instead of bitwise AND ("&amp;").</p> <h3><a name="BIT_IOR_OF_SIGNED_BYTE">BIT: Bitwise OR of signed byte value (BIT_IOR_OF_SIGNED_BYTE)</a></h3> <p> Loads a byte value (e.g., a value loaded from a byte array or returned by a method with return type byte) and performs a bitwise OR with that value. Byte values are sign extended to 32 bits before any any bitwise operations are performed on the value. Thus, if <code>b[0]</code> contains the value <code>0xff</code>, and <code>x</code> is initially 0, then the code <code>((x &lt;&lt; 8) | b[0])</code> will sign extend <code>0xff</code> to get <code>0xffffffff</code>, and thus give the value <code>0xffffffff</code> as the result. </p> <p>In particular, the following code for packing a byte array into an int is badly wrong: </p> <pre> int result = 0; for(int i = 0; i &lt; 4; i++) result = ((result &lt;&lt; 8) | b[i]); </pre> <p>The following idiom will work instead: </p> <pre> int result = 0; for(int i = 0; i &lt; 4; i++) result = ((result &lt;&lt; 8) | (b[i] &amp; 0xff)); </pre> <h3><a name="BIT_SIGNED_CHECK_HIGH_BIT">BIT: Check for sign of bitwise operation (BIT_SIGNED_CHECK_HIGH_BIT)</a></h3> <p> This method compares an expression such as</p> <pre>((event.detail &amp; SWT.SELECTED) &gt; 0)</pre>. <p>Using bit arithmetic and then comparing with the greater than operator can lead to unexpected results (of course depending on the value of SWT.SELECTED). If SWT.SELECTED is a negative number, this is a candidate for a bug. Even when SWT.SELECTED is not negative, it seems good practice to use '!= 0' instead of '&gt; 0'. </p> <p> <em>Boris Bokowski</em> </p> <h3><a name="BOA_BADLY_OVERRIDDEN_ADAPTER">BOA: Class overrides a method implemented in super class Adapter wrongly (BOA_BADLY_OVERRIDDEN_ADAPTER)</a></h3> <p> This method overrides a method found in a parent class, where that class is an Adapter that implements a listener defined in the java.awt.event or javax.swing.event package. As a result, this method will not get called when the event occurs.</p> <h3><a name="ICAST_BAD_SHIFT_AMOUNT">BSHIFT: 32 bit int shifted by an amount not in the range -31..31 (ICAST_BAD_SHIFT_AMOUNT)</a></h3> <p> The code performs shift of a 32 bit int by a constant amount outside the range -31..31. The effect of this is to use the lower 5 bits of the integer value to decide how much to shift by (e.g., shifting by 40 bits is the same as shifting by 8 bits, and shifting by 32 bits is the same as shifting by zero bits). This probably isn't what was expected, and it is at least confusing. </p> <h3><a name="BX_UNBOXED_AND_COERCED_FOR_TERNARY_OPERATOR">Bx: Primitive value is unboxed and coerced for ternary operator (BX_UNBOXED_AND_COERCED_FOR_TERNARY_OPERATOR)</a></h3> <p>A wrapped primitive value is unboxed and converted to another primitive type as part of the evaluation of a conditional ternary operator (the <code> b ? e1 : e2</code> operator). The semantics of Java mandate that if <code>e1</code> and <code>e2</code> are wrapped numeric values, the values are unboxed and converted/coerced to their common type (e.g, if <code>e1</code> is of type <code>Integer</code> and <code>e2</code> is of type <code>Float</code>, then <code>e1</code> is unboxed, converted to a floating point value, and boxed. See JLS Section 15.25. </p> <h3><a name="CO_COMPARETO_RESULTS_MIN_VALUE">Co: compareTo()/compare() returns Integer.MIN_VALUE (CO_COMPARETO_RESULTS_MIN_VALUE)</a></h3> <p> In some situation, this compareTo or compare method returns the constant Integer.MIN_VALUE, which is an exceptionally bad practice. The only thing that matters about the return value of compareTo is the sign of the result. But people will sometimes negate the return value of compareTo, expecting that this will negate the sign of the result. And it will, except in the case where the value returned is Integer.MIN_VALUE. So just return -1 rather than Integer.MIN_VALUE. <h3><a name="DLS_DEAD_LOCAL_INCREMENT_IN_RETURN">DLS: Useless increment in return statement (DLS_DEAD_LOCAL_INCREMENT_IN_RETURN)</a></h3> <p>This statement has a return such as <code>return x++;</code>. A postfix increment/decrement does not impact the value of the expression, so this increment/decrement has no effect. Please verify that this statement does the right thing. </p> <h3><a name="DLS_DEAD_STORE_OF_CLASS_LITERAL">DLS: Dead store of class literal (DLS_DEAD_STORE_OF_CLASS_LITERAL)</a></h3> <p> This instruction assigns a class literal to a variable and then never uses it. <a href="//java.sun.com/j2se/1.5.0/compatibility.html#literal">The behavior of this differs in Java 1.4 and in Java 5.</a> In Java 1.4 and earlier, a reference to <code>Foo.class</code> would force the static initializer for <code>Foo</code> to be executed, if it has not been executed already. In Java 5 and later, it does not. </p> <p>See Sun's <a href="//java.sun.com/j2se/1.5.0/compatibility.html#literal">article on Java SE compatibility</a> for more details and examples, and suggestions on how to force class initialization in Java 5. </p> <h3><a name="DLS_OVERWRITTEN_INCREMENT">DLS: Overwritten increment (DLS_OVERWRITTEN_INCREMENT)</a></h3> <p> The code performs an increment operation (e.g., <code>i++</code>) and then immediately overwrites it. For example, <code>i = i++</code> immediately overwrites the incremented value with the original value. </p> <h3><a name="DMI_ARGUMENTS_WRONG_ORDER">DMI: Reversed method arguments (DMI_ARGUMENTS_WRONG_ORDER)</a></h3> <p> The arguments to this method call seem to be in the wrong order. For example, a call <code>Preconditions.checkNotNull("message", message)</code> has reserved arguments: the value to be checked is the first argument. </p> <h3><a name="DMI_BAD_MONTH">DMI: Bad constant value for month (DMI_BAD_MONTH)</a></h3> <p> This code passes a constant month value outside the expected range of 0..11 to a method. </p> <h3><a name="DMI_BIGDECIMAL_CONSTRUCTED_FROM_DOUBLE">DMI: BigDecimal constructed from double that isn't represented precisely (DMI_BIGDECIMAL_CONSTRUCTED_FROM_DOUBLE)</a></h3> <p> This code creates a BigDecimal from a double value that doesn't translate well to a decimal number. For example, one might assume that writing new BigDecimal(0.1) in Java creates a BigDecimal which is exactly equal to 0.1 (an unscaled value of 1, with a scale of 1), but it is actually equal to 0.1000000000000000055511151231257827021181583404541015625. You probably want to use the BigDecimal.valueOf(double d) method, which uses the String representation of the double to create the BigDecimal (e.g., BigDecimal.valueOf(0.1) gives 0.1). </p> <h3><a name="DMI_CALLING_NEXT_FROM_HASNEXT">DMI: hasNext method invokes next (DMI_CALLING_NEXT_FROM_HASNEXT)</a></h3> <p> The hasNext() method invokes the next() method. This is almost certainly wrong, since the hasNext() method is not supposed to change the state of the iterator, and the next method is supposed to change the state of the iterator. </p> <h3><a name="DMI_COLLECTIONS_SHOULD_NOT_CONTAIN_THEMSELVES">DMI: Collections should not contain themselves (DMI_COLLECTIONS_SHOULD_NOT_CONTAIN_THEMSELVES)</a></h3> <p> This call to a generic collection's method would only make sense if a collection contained itself (e.g., if <code>s.contains(s)</code> were true). This is unlikely to be true and would cause problems if it were true (such as the computation of the hash code resulting in infinite recursion). It is likely that the wrong value is being passed as a parameter. </p> <h3><a name="DMI_DOH">DMI: D'oh! A nonsensical method invocation (DMI_DOH)</a></h3> <p> This partical method invocation doesn't make sense, for reasons that should be apparent from inspection. </p> <h3><a name="DMI_INVOKING_HASHCODE_ON_ARRAY">DMI: Invocation of hashCode on an array (DMI_INVOKING_HASHCODE_ON_ARRAY)</a></h3> <p> The code invokes hashCode on an array. Calling hashCode on an array returns the same value as System.identityHashCode, and ingores the contents and length of the array. If you need a hashCode that depends on the contents of an array <code>a</code>, use <code>java.util.Arrays.hashCode(a)</code>. </p> <h3><a name="DMI_LONG_BITS_TO_DOUBLE_INVOKED_ON_INT">DMI: Double.longBitsToDouble invoked on an int (DMI_LONG_BITS_TO_DOUBLE_INVOKED_ON_INT)</a></h3> <p> The Double.longBitsToDouble method is invoked, but a 32 bit int value is passed as an argument. This almostly certainly is not intended and is unlikely to give the intended result. </p> <h3><a name="DMI_VACUOUS_SELF_COLLECTION_CALL">DMI: Vacuous call to collections (DMI_VACUOUS_SELF_COLLECTION_CALL)</a></h3> <p> This call doesn't make sense. For any collection <code>c</code>, calling <code>c.containsAll(c)</code> should always be true, and <code>c.retainAll(c)</code> should have no effect. </p> <h3><a name="DMI_ANNOTATION_IS_NOT_VISIBLE_TO_REFLECTION">Dm: Can't use reflection to check for presence of annotation without runtime retention (DMI_ANNOTATION_IS_NOT_VISIBLE_TO_REFLECTION)</a></h3> <p> Unless an annotation has itself been annotated with @Retention(RetentionPolicy.RUNTIME), the annotation can't be observed using reflection (e.g., by using the isAnnotationPresent method). .</p> <h3><a name="DMI_FUTILE_ATTEMPT_TO_CHANGE_MAXPOOL_SIZE_OF_SCHEDULED_THREAD_POOL_EXECUTOR">Dm: Futile attempt to change max pool size of ScheduledThreadPoolExecutor (DMI_FUTILE_ATTEMPT_TO_CHANGE_MAXPOOL_SIZE_OF_SCHEDULED_THREAD_POOL_EXECUTOR)</a></h3> <p>(<a href="http://java.sun.com/javase/6/docs/api/java/util/concurrent/ScheduledThreadPoolExecutor.html">Javadoc</a>) While ScheduledThreadPoolExecutor inherits from ThreadPoolExecutor, a few of the inherited tuning methods are not useful for it. In particular, because it acts as a fixed-sized pool using corePoolSize threads and an unbounded queue, adjustments to maximumPoolSize have no useful effect. </p> <h3><a name="DMI_SCHEDULED_THREAD_POOL_EXECUTOR_WITH_ZERO_CORE_THREADS">Dm: Creation of ScheduledThreadPoolExecutor with zero core threads (DMI_SCHEDULED_THREAD_POOL_EXECUTOR_WITH_ZERO_CORE_THREADS)</a></h3> <p>(<a href="http://java.sun.com/javase/6/docs/api/java/util/concurrent/ScheduledThreadPoolExecutor.html#ScheduledThreadPoolExecutor(int)">Javadoc</a>) A ScheduledThreadPoolExecutor with zero core threads will never execute anything; changes to the max pool size are ignored. </p> <h3><a name="DMI_VACUOUS_CALL_TO_EASYMOCK_METHOD">Dm: Useless/vacuous call to EasyMock method (DMI_VACUOUS_CALL_TO_EASYMOCK_METHOD)</a></h3> <p>This call doesn't pass any objects to the EasyMock method, so the call doesn't do anything. </p> <h3><a name="EC_ARRAY_AND_NONARRAY">EC: equals() used to compare array and nonarray (EC_ARRAY_AND_NONARRAY)</a></h3> <p> This method invokes the .equals(Object o) to compare an array and a reference that doesn't seem to be an array. If things being compared are of different types, they are guaranteed to be unequal and the comparison is almost certainly an error. Even if they are both arrays, the equals method on arrays only determines of the two arrays are the same object. To compare the contents of the arrays, use java.util.Arrays.equals(Object[], Object[]). </p> <h3><a name="EC_BAD_ARRAY_COMPARE">EC: Invocation of equals() on an array, which is equivalent to == (EC_BAD_ARRAY_COMPARE)</a></h3> <p> This method invokes the .equals(Object o) method on an array. Since arrays do not override the equals method of Object, calling equals on an array is the same as comparing their addresses. To compare the contents of the arrays, use <code>java.util.Arrays.equals(Object[], Object[])</code>. To compare the addresses of the arrays, it would be less confusing to explicitly check pointer equality using <code>==</code>. </p> <h3><a name="EC_INCOMPATIBLE_ARRAY_COMPARE">EC: equals(...) used to compare incompatible arrays (EC_INCOMPATIBLE_ARRAY_COMPARE)</a></h3> <p> This method invokes the .equals(Object o) to compare two arrays, but the arrays of of incompatible types (e.g., String[] and StringBuffer[], or String[] and int[]). They will never be equal. In addition, when equals(...) is used to compare arrays it only checks to see if they are the same array, and ignores the contents of the arrays. </p> <h3><a name="EC_NULL_ARG">EC: Call to equals(null) (EC_NULL_ARG)</a></h3> <p> This method calls equals(Object), passing a null value as the argument. According to the contract of the equals() method, this call should always return <code>false</code>.</p> <h3><a name="EC_UNRELATED_CLASS_AND_INTERFACE">EC: Call to equals() comparing unrelated class and interface (EC_UNRELATED_CLASS_AND_INTERFACE)</a></h3> <p> This method calls equals(Object) on two references, one of which is a class and the other an interface, where neither the class nor any of its non-abstract subclasses implement the interface. Therefore, the objects being compared are unlikely to be members of the same class at runtime (unless some application classes were not analyzed, or dynamic class loading can occur at runtime). According to the contract of equals(), objects of different classes should always compare as unequal; therefore, according to the contract defined by java.lang.Object.equals(Object), the result of this comparison will always be false at runtime. </p> <h3><a name="EC_UNRELATED_INTERFACES">EC: Call to equals() comparing different interface types (EC_UNRELATED_INTERFACES)</a></h3> <p> This method calls equals(Object) on two references of unrelated interface types, where neither is a subtype of the other, and there are no known non-abstract classes which implement both interfaces. Therefore, the objects being compared are unlikely to be members of the same class at runtime (unless some application classes were not analyzed, or dynamic class loading can occur at runtime). According to the contract of equals(), objects of different classes should always compare as unequal; therefore, according to the contract defined by java.lang.Object.equals(Object), the result of this comparison will always be false at runtime. </p> <h3><a name="EC_UNRELATED_TYPES">EC: Call to equals() comparing different types (EC_UNRELATED_TYPES)</a></h3> <p> This method calls equals(Object) on two references of different class types with no common subclasses. Therefore, the objects being compared are unlikely to be members of the same class at runtime (unless some application classes were not analyzed, or dynamic class loading can occur at runtime). According to the contract of equals(), objects of different classes should always compare as unequal; therefore, according to the contract defined by java.lang.Object.equals(Object), the result of this comparison will always be false at runtime. </p> <h3><a name="EC_UNRELATED_TYPES_USING_POINTER_EQUALITY">EC: Using pointer equality to compare different types (EC_UNRELATED_TYPES_USING_POINTER_EQUALITY)</a></h3> <p> This method uses using pointer equality to compare two references that seem to be of different types. The result of this comparison will always be false at runtime. </p> <h3><a name="EQ_ALWAYS_FALSE">Eq: equals method always returns false (EQ_ALWAYS_FALSE)</a></h3> <p> This class defines an equals method that always returns false. This means that an object is not equal to itself, and it is impossible to create useful Maps or Sets of this class. More fundamentally, it means that equals is not reflexive, one of the requirements of the equals method.</p> <p>The likely intended semantics are object identity: that an object is equal to itself. This is the behavior inherited from class <code>Object</code>. If you need to override an equals inherited from a different superclass, you can use use:</p> <pre> public boolean equals(Object o) { return this == o; } </pre> <h3><a name="EQ_ALWAYS_TRUE">Eq: equals method always returns true (EQ_ALWAYS_TRUE)</a></h3> <p> This class defines an equals method that always returns true. This is imaginative, but not very smart. Plus, it means that the equals method is not symmetric. </p> <h3><a name="EQ_COMPARING_CLASS_NAMES">Eq: equals method compares class names rather than class objects (EQ_COMPARING_CLASS_NAMES)</a></h3> <p> This method checks to see if two objects are the same class by checking to see if the names of their classes are equal. You can have different classes with the same name if they are loaded by different class loaders. Just check to see if the class objects are the same. </p> <h3><a name="EQ_DONT_DEFINE_EQUALS_FOR_ENUM">Eq: Covariant equals() method defined for enum (EQ_DONT_DEFINE_EQUALS_FOR_ENUM)</a></h3> <p> This class defines an enumeration, and equality on enumerations are defined using object identity. Defining a covariant equals method for an enumeration value is exceptionally bad practice, since it would likely result in having two different enumeration values that compare as equals using the covariant enum method, and as not equal when compared normally. Don't do it. </p> <h3><a name="EQ_OTHER_NO_OBJECT">Eq: equals() method defined that doesn't override equals(Object) (EQ_OTHER_NO_OBJECT)</a></h3> <p> This class defines an <code>equals()</code> method, that doesn't override the normal <code>equals(Object)</code> method defined in the base <code>java.lang.Object</code> class.&nbsp; Instead, it inherits an <code>equals(Object)</code> method from a superclass. The class should probably define a <code>boolean equals(Object)</code> method. </p> <h3><a name="EQ_OTHER_USE_OBJECT">Eq: equals() method defined that doesn't override Object.equals(Object) (EQ_OTHER_USE_OBJECT)</a></h3> <p> This class defines an <code>equals()</code> method, that doesn't override the normal <code>equals(Object)</code> method defined in the base <code>java.lang.Object</code> class.&nbsp; The class should probably define a <code>boolean equals(Object)</code> method. </p> <h3><a name="EQ_OVERRIDING_EQUALS_NOT_SYMMETRIC">Eq: equals method overrides equals in superclass and may not be symmetric (EQ_OVERRIDING_EQUALS_NOT_SYMMETRIC)</a></h3> <p> This class defines an equals method that overrides an equals method in a superclass. Both equals methods methods use <code>instanceof</code> in the determination of whether two objects are equal. This is fraught with peril, since it is important that the equals method is symmetrical (in other words, <code>a.equals(b) == b.equals(a)</code>). If B is a subtype of A, and A's equals method checks that the argument is an instanceof A, and B's equals method checks that the argument is an instanceof B, it is quite likely that the equivalence relation defined by these methods is not symmetric. </p> <h3><a name="EQ_SELF_USE_OBJECT">Eq: Covariant equals() method defined, Object.equals(Object) inherited (EQ_SELF_USE_OBJECT)</a></h3> <p> This class defines a covariant version of the <code>equals()</code> method, but inherits the normal <code>equals(Object)</code> method defined in the base <code>java.lang.Object</code> class.&nbsp; The class should probably define a <code>boolean equals(Object)</code> method. </p> <h3><a name="FE_TEST_IF_EQUAL_TO_NOT_A_NUMBER">FE: Doomed test for equality to NaN (FE_TEST_IF_EQUAL_TO_NOT_A_NUMBER)</a></h3> <p> This code checks to see if a floating point value is equal to the special Not A Number value (e.g., <code>if (x == Double.NaN)</code>). However, because of the special semantics of <code>NaN</code>, no value is equal to <code>Nan</code>, including <code>NaN</code>. Thus, <code>x == Double.NaN</code> always evaluates to false. To check to see if a value contained in <code>x</code> is the special Not A Number value, use <code>Double.isNaN(x)</code> (or <code>Float.isNaN(x)</code> if <code>x</code> is floating point precision). </p> <h3><a name="VA_FORMAT_STRING_BAD_ARGUMENT">FS: Format string placeholder incompatible with passed argument (VA_FORMAT_STRING_BAD_ARGUMENT)</a></h3> <p> The format string placeholder is incompatible with the corresponding argument. For example, <code> System.out.println("%d\n", "hello"); </code> <p>The %d placeholder requires a numeric argument, but a string value is passed instead. A runtime exception will occur when this statement is executed. </p> <h3><a name="VA_FORMAT_STRING_BAD_CONVERSION">FS: The type of a supplied argument doesn't match format specifier (VA_FORMAT_STRING_BAD_CONVERSION)</a></h3> <p> One of the arguments is uncompatible with the corresponding format string specifier. As a result, this will generate a runtime exception when executed. For example, <code>String.format("%d", "1")</code> will generate an exception, since the String "1" is incompatible with the format specifier %d. </p> <h3><a name="VA_FORMAT_STRING_EXPECTED_MESSAGE_FORMAT_SUPPLIED">FS: MessageFormat supplied where printf style format expected (VA_FORMAT_STRING_EXPECTED_MESSAGE_FORMAT_SUPPLIED)</a></h3> <p> A method is called that expects a Java printf format string and a list of arguments. However, the format string doesn't contain any format specifiers (e.g., %s) but does contain message format elements (e.g., {0}). It is likely that the code is supplying a MessageFormat string when a printf-style format string is required. At runtime, all of the arguments will be ignored and the format string will be returned exactly as provided without any formatting. </p> <h3><a name="VA_FORMAT_STRING_EXTRA_ARGUMENTS_PASSED">FS: More arguments are passed than are actually used in the format string (VA_FORMAT_STRING_EXTRA_ARGUMENTS_PASSED)</a></h3> <p> A format-string method with a variable number of arguments is called, but more arguments are passed than are actually used by the format string. This won't cause a runtime exception, but the code may be silently omitting information that was intended to be included in the formatted string. </p> <h3><a name="VA_FORMAT_STRING_ILLEGAL">FS: Illegal format string (VA_FORMAT_STRING_ILLEGAL)</a></h3> <p> The format string is syntactically invalid, and a runtime exception will occur when this statement is executed. </p> <h3><a name="VA_FORMAT_STRING_MISSING_ARGUMENT">FS: Format string references missing argument (VA_FORMAT_STRING_MISSING_ARGUMENT)</a></h3> <p> Not enough arguments are passed to satisfy a placeholder in the format string. A runtime exception will occur when this statement is executed. </p> <h3><a name="VA_FORMAT_STRING_NO_PREVIOUS_ARGUMENT">FS: No previous argument for format string (VA_FORMAT_STRING_NO_PREVIOUS_ARGUMENT)</a></h3> <p> The format string specifies a relative index to request that the argument for the previous format specifier be reused. However, there is no previous argument. For example, </p> <p><code>formatter.format("%&lt;s %s", "a", "b")</code> </p> <p>would throw a MissingFormatArgumentException when executed. </p> <h3><a name="GC_UNRELATED_TYPES">GC: No relationship between generic parameter and method argument (GC_UNRELATED_TYPES)</a></h3> <p> This call to a generic collection method contains an argument with an incompatible class from that of the collection's parameter (i.e., the type of the argument is neither a supertype nor a subtype of the corresponding generic type argument). Therefore, it is unlikely that the collection contains any objects that are equal to the method argument used here. Most likely, the wrong value is being passed to the method.</p> <p>In general, instances of two unrelated classes are not equal. For example, if the <code>Foo</code> and <code>Bar</code> classes are not related by subtyping, then an instance of <code>Foo</code> should not be equal to an instance of <code>Bar</code>. Among other issues, doing so will likely result in an equals method that is not symmetrical. For example, if you define the <code>Foo</code> class so that a <code>Foo</code> can be equal to a <code>String</code>, your equals method isn't symmetrical since a <code>String</code> can only be equal to a <code>String</code>. </p> <p>In rare cases, people do define nonsymmetrical equals methods and still manage to make their code work. Although none of the APIs document or guarantee it, it is typically the case that if you check if a <code>Collection&lt;String&gt;</code> contains a <code>Foo</code>, the equals method of argument (e.g., the equals method of the <code>Foo</code> class) used to perform the equality checks. </p> <h3><a name="HE_SIGNATURE_DECLARES_HASHING_OF_UNHASHABLE_CLASS">HE: Signature declares use of unhashable class in hashed construct (HE_SIGNATURE_DECLARES_HASHING_OF_UNHASHABLE_CLASS)</a></h3> <p> A method, field or class declares a generic signature where a non-hashable class is used in context where a hashable class is required. A class that declares an equals method but inherits a hashCode() method from Object is unhashable, since it doesn't fulfill the requirement that equal objects have equal hashCodes. </p> <h3><a name="HE_USE_OF_UNHASHABLE_CLASS">HE: Use of class without a hashCode() method in a hashed data structure (HE_USE_OF_UNHASHABLE_CLASS)</a></h3> <p> A class defines an equals(Object) method but not a hashCode() method, and thus doesn't fulfill the requirement that equal objects have equal hashCodes. An instance of this class is used in a hash data structure, making the need to fix this problem of highest importance. <h3><a name="ICAST_INT_2_LONG_AS_INSTANT">ICAST: int value converted to long and used as absolute time (ICAST_INT_2_LONG_AS_INSTANT)</a></h3> <p> This code converts a 32-bit int value to a 64-bit long value, and then passes that value for a method parameter that requires an absolute time value. An absolute time value is the number of milliseconds since the standard base time known as "the epoch", namely January 1, 1970, 00:00:00 GMT. For example, the following method, intended to convert seconds since the epoc into a Date, is badly broken:</p> <pre> Date getDate(int seconds) { return new Date(seconds * 1000); } </pre> <p>The multiplication is done using 32-bit arithmetic, and then converted to a 64-bit value. When a 32-bit value is converted to 64-bits and used to express an absolute time value, only dates in December 1969 and January 1970 can be represented.</p> <p>Correct implementations for the above method are:</p> <pre> // Fails for dates after 2037 Date getDate(int seconds) { return new Date(seconds * 1000L); } // better, works for all dates Date getDate(long seconds) { return new Date(seconds * 1000); } </pre> <h3><a name="ICAST_INT_CAST_TO_DOUBLE_PASSED_TO_CEIL">ICAST: Integral value cast to double and then passed to Math.ceil (ICAST_INT_CAST_TO_DOUBLE_PASSED_TO_CEIL)</a></h3> <p> This code converts an integral value (e.g., int or long) to a double precision floating point number and then passing the result to the Math.ceil() function, which rounds a double to the next higher integer value. This operation should always be a no-op, since the converting an integer to a double should give a number with no fractional part. It is likely that the operation that generated the value to be passed to Math.ceil was intended to be performed using double precision floating point arithmetic. </p> <h3><a name="ICAST_INT_CAST_TO_FLOAT_PASSED_TO_ROUND">ICAST: int value cast to float and then passed to Math.round (ICAST_INT_CAST_TO_FLOAT_PASSED_TO_ROUND)</a></h3> <p> This code converts an int value to a float precision floating point number and then passing the result to the Math.round() function, which returns the int/long closest to the argument. This operation should always be a no-op, since the converting an integer to a float should give a number with no fractional part. It is likely that the operation that generated the value to be passed to Math.round was intended to be performed using floating point arithmetic. </p> <h3><a name="IJU_ASSERT_METHOD_INVOKED_FROM_RUN_METHOD">IJU: JUnit assertion in run method will not be noticed by JUnit (IJU_ASSERT_METHOD_INVOKED_FROM_RUN_METHOD)</a></h3> <p> A JUnit assertion is performed in a run method. Failed JUnit assertions just result in exceptions being thrown. Thus, if this exception occurs in a thread other than the thread that invokes the test method, the exception will terminate the thread but not result in the test failing. </p> <h3><a name="IJU_BAD_SUITE_METHOD">IJU: TestCase declares a bad suite method (IJU_BAD_SUITE_METHOD)</a></h3> <p> Class is a JUnit TestCase and defines a suite() method. However, the suite method needs to be declared as either</p> <pre>public static junit.framework.Test suite()</pre> or <pre>public static junit.framework.TestSuite suite()</pre> <h3><a name="IJU_NO_TESTS">IJU: TestCase has no tests (IJU_NO_TESTS)</a></h3> <p> Class is a JUnit TestCase but has not implemented any test methods</p> <h3><a name="IJU_SETUP_NO_SUPER">IJU: TestCase defines setUp that doesn't call super.setUp() (IJU_SETUP_NO_SUPER)</a></h3> <p> Class is a JUnit TestCase and implements the setUp method. The setUp method should call super.setUp(), but doesn't.</p> <h3><a name="IJU_SUITE_NOT_STATIC">IJU: TestCase implements a non-static suite method (IJU_SUITE_NOT_STATIC)</a></h3> <p> Class is a JUnit TestCase and implements the suite() method. The suite method should be declared as being static, but isn't.</p> <h3><a name="IJU_TEARDOWN_NO_SUPER">IJU: TestCase defines tearDown that doesn't call super.tearDown() (IJU_TEARDOWN_NO_SUPER)</a></h3> <p> Class is a JUnit TestCase and implements the tearDown method. The tearDown method should call super.tearDown(), but doesn't.</p> <h3><a name="IL_CONTAINER_ADDED_TO_ITSELF">IL: A collection is added to itself (IL_CONTAINER_ADDED_TO_ITSELF)</a></h3> <p>A collection is added to itself. As a result, computing the hashCode of this set will throw a StackOverflowException. </p> <h3><a name="IL_INFINITE_LOOP">IL: An apparent infinite loop (IL_INFINITE_LOOP)</a></h3> <p>This loop doesn't seem to have a way to terminate (other than by perhaps throwing an exception).</p> <h3><a name="IL_INFINITE_RECURSIVE_LOOP">IL: An apparent infinite recursive loop (IL_INFINITE_RECURSIVE_LOOP)</a></h3> <p>This method unconditionally invokes itself. This would seem to indicate an infinite recursive loop that will result in a stack overflow.</p> <h3><a name="IM_MULTIPLYING_RESULT_OF_IREM">IM: Integer multiply of result of integer remainder (IM_MULTIPLYING_RESULT_OF_IREM)</a></h3> <p> The code multiplies the result of an integer remaining by an integer constant. Be sure you don't have your operator precedence confused. For example i % 60 * 1000 is (i % 60) * 1000, not i % (60 * 1000). </p> <h3><a name="INT_BAD_COMPARISON_WITH_INT_VALUE">INT: Bad comparison of int value with long constant (INT_BAD_COMPARISON_WITH_INT_VALUE)</a></h3> <p> This code compares an int value with a long constant that is outside the range of values that can be represented as an int value. This comparison is vacuous and possibily to be incorrect. </p> <h3><a name="INT_BAD_COMPARISON_WITH_NONNEGATIVE_VALUE">INT: Bad comparison of nonnegative value with negative constant (INT_BAD_COMPARISON_WITH_NONNEGATIVE_VALUE)</a></h3> <p> This code compares a value that is guaranteed to be non-negative with a negative constant. </p> <h3><a name="INT_BAD_COMPARISON_WITH_SIGNED_BYTE">INT: Bad comparison of signed byte (INT_BAD_COMPARISON_WITH_SIGNED_BYTE)</a></h3> <p> Signed bytes can only have a value in the range -128 to 127. Comparing a signed byte with a value outside that range is vacuous and likely to be incorrect. To convert a signed byte <code>b</code> to an unsigned value in the range 0..255, use <code>0xff &amp; b</code> </p> <h3><a name="IO_APPENDING_TO_OBJECT_OUTPUT_STREAM">IO: Doomed attempt to append to an object output stream (IO_APPENDING_TO_OBJECT_OUTPUT_STREAM)</a></h3> <p> This code opens a file in append mode and then wraps the result in an object output stream. This won't allow you to append to an existing object output stream stored in a file. If you want to be able to append to an object output stream, you need to keep the object output stream open. </p> <p>The only situation in which opening a file in append mode and the writing an object output stream could work is if on reading the file you plan to open it in random access mode and seek to the byte offset where the append started. </p> <p> TODO: example. </p> <h3><a name="IP_PARAMETER_IS_DEAD_BUT_OVERWRITTEN">IP: A parameter is dead upon entry to a method but overwritten (IP_PARAMETER_IS_DEAD_BUT_OVERWRITTEN)</a></h3> <p> The initial value of this parameter is ignored, and the parameter is overwritten here. This often indicates a mistaken belief that the write to the parameter will be conveyed back to the caller. </p> <h3><a name="MF_CLASS_MASKS_FIELD">MF: Class defines field that masks a superclass field (MF_CLASS_MASKS_FIELD)</a></h3> <p> This class defines a field with the same name as a visible instance field in a superclass. This is confusing, and may indicate an error if methods update or access one of the fields when they wanted the other.</p> <h3><a name="MF_METHOD_MASKS_FIELD">MF: Method defines a variable that obscures a field (MF_METHOD_MASKS_FIELD)</a></h3> <p> This method defines a local variable with the same name as a field in this class or a superclass. This may cause the method to read an uninitialized value from the field, leave the field uninitialized, or both.</p> <h3><a name="NP_ALWAYS_NULL">NP: Null pointer dereference (NP_ALWAYS_NULL)</a></h3> <p> A null pointer is dereferenced here.&nbsp; This will lead to a <code>NullPointerException</code> when the code is executed.</p> <h3><a name="NP_ALWAYS_NULL_EXCEPTION">NP: Null pointer dereference in method on exception path (NP_ALWAYS_NULL_EXCEPTION)</a></h3> <p> A pointer which is null on an exception path is dereferenced here.&nbsp; This will lead to a <code>NullPointerException</code> when the code is executed.&nbsp; Note that because FindBugs currently does not prune infeasible exception paths, this may be a false warning.</p> <p> Also note that FindBugs considers the default case of a switch statement to be an exception path, since the default case is often infeasible.</p> <h3><a name="NP_ARGUMENT_MIGHT_BE_NULL">NP: Method does not check for null argument (NP_ARGUMENT_MIGHT_BE_NULL)</a></h3> <p> A parameter to this method has been identified as a value that should always be checked to see whether or not it is null, but it is being dereferenced without a preceding null check. </p> <h3><a name="NP_CLOSING_NULL">NP: close() invoked on a value that is always null (NP_CLOSING_NULL)</a></h3> <p> close() is being invoked on a value that is always null. If this statement is executed, a null pointer exception will occur. But the big risk here you never close something that should be closed. <h3><a name="NP_GUARANTEED_DEREF">NP: Null value is guaranteed to be dereferenced (NP_GUARANTEED_DEREF)</a></h3> <p> There is a statement or branch that if executed guarantees that a value is null at this point, and that value that is guaranteed to be dereferenced (except on forward paths involving runtime exceptions). </p> <p>Note that a check such as <code>if (x == null) throw new NullPointerException();</code> is treated as a dereference of <code>x</code>. <h3><a name="NP_GUARANTEED_DEREF_ON_EXCEPTION_PATH">NP: Value is null and guaranteed to be dereferenced on exception path (NP_GUARANTEED_DEREF_ON_EXCEPTION_PATH)</a></h3> <p> There is a statement or branch on an exception path that if executed guarantees that a value is null at this point, and that value that is guaranteed to be dereferenced (except on forward paths involving runtime exceptions). </p> <h3><a name="NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR">NP: Nonnull field is not initialized (NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR)</a></h3> <p> The field is marked as nonnull, but isn't written to by the constructor. The field might be initialized elsewhere during constructor, or might always be initialized before use. </p> <h3><a name="NP_NONNULL_PARAM_VIOLATION">NP: Method call passes null to a nonnull parameter (NP_NONNULL_PARAM_VIOLATION)</a></h3> <p> This method passes a null value as the parameter of a method which must be nonnull. Either this parameter has been explicitly marked as @Nonnull, or analysis has determined that this parameter is always dereferenced. </p> <h3><a name="NP_NONNULL_RETURN_VIOLATION">NP: Method may return null, but is declared @NonNull (NP_NONNULL_RETURN_VIOLATION)</a></h3> <p> This method may return a null value, but the method (or a superclass method which it overrides) is declared to return @NonNull. </p> <h3><a name="NP_NULL_INSTANCEOF">NP: A known null value is checked to see if it is an instance of a type (NP_NULL_INSTANCEOF)</a></h3> <p> This instanceof test will always return false, since the value being checked is guaranteed to be null. Although this is safe, make sure it isn't an indication of some misunderstanding or some other logic error. </p> <h3><a name="NP_NULL_ON_SOME_PATH">NP: Possible null pointer dereference (NP_NULL_ON_SOME_PATH)</a></h3> <p> There is a branch of statement that, <em>if executed,</em> guarantees that a null value will be dereferenced, which would generate a <code>NullPointerException</code> when the code is executed. Of course, the problem might be that the branch or statement is infeasible and that the null pointer exception can't ever be executed; deciding that is beyond the ability of FindBugs. </p> <h3><a name="NP_NULL_ON_SOME_PATH_EXCEPTION">NP: Possible null pointer dereference in method on exception path (NP_NULL_ON_SOME_PATH_EXCEPTION)</a></h3> <p> A reference value which is null on some exception control path is dereferenced here.&nbsp; This may lead to a <code>NullPointerException</code> when the code is executed.&nbsp; Note that because FindBugs currently does not prune infeasible exception paths, this may be a false warning.</p> <p> Also note that FindBugs considers the default case of a switch statement to be an exception path, since the default case is often infeasible.</p> <h3><a name="NP_NULL_PARAM_DEREF">NP: Method call passes null for nonnull parameter (NP_NULL_PARAM_DEREF)</a></h3> <p> This method call passes a null value for a nonnull method parameter. Either the parameter is annotated as a parameter that should always be nonnull, or analysis has shown that it will always be dereferenced. </p> <h3><a name="NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS">NP: Method call passes null for nonnull parameter (NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS)</a></h3> <p> A possibly-null value is passed at a call site where all known target methods require the parameter to be nonnull. Either the parameter is annotated as a parameter that should always be nonnull, or analysis has shown that it will always be dereferenced. </p> <h3><a name="NP_NULL_PARAM_DEREF_NONVIRTUAL">NP: Non-virtual method call passes null for nonnull parameter (NP_NULL_PARAM_DEREF_NONVIRTUAL)</a></h3> <p> A possibly-null value is passed to a nonnull method parameter. Either the parameter is annotated as a parameter that should always be nonnull, or analysis has shown that it will always be dereferenced. </p> <h3><a name="NP_STORE_INTO_NONNULL_FIELD">NP: Store of null value into field annotated NonNull (NP_STORE_INTO_NONNULL_FIELD)</a></h3> <p> A value that could be null is stored into a field that has been annotated as NonNull. </p> <h3><a name="NP_UNWRITTEN_FIELD">NP: Read of unwritten field (NP_UNWRITTEN_FIELD)</a></h3> <p> The program is dereferencing a field that does not seem to ever have a non-null value written to it. Unless the field is initialized via some mechanism not seen by the analysis, dereferencing this value will generate a null pointer exception. </p> <h3><a name="NM_BAD_EQUAL">Nm: Class defines equal(Object); should it be equals(Object)? (NM_BAD_EQUAL)</a></h3> <p> This class defines a method <code>equal(Object)</code>.&nbsp; This method does not override the <code>equals(Object)</code> method in <code>java.lang.Object</code>, which is probably what was intended.</p> <h3><a name="NM_LCASE_HASHCODE">Nm: Class defines hashcode(); should it be hashCode()? (NM_LCASE_HASHCODE)</a></h3> <p> This class defines a method called <code>hashcode()</code>.&nbsp; This method does not override the <code>hashCode()</code> method in <code>java.lang.Object</code>, which is probably what was intended.</p> <h3><a name="NM_LCASE_TOSTRING">Nm: Class defines tostring(); should it be toString()? (NM_LCASE_TOSTRING)</a></h3> <p> This class defines a method called <code>tostring()</code>.&nbsp; This method does not override the <code>toString()</code> method in <code>java.lang.Object</code>, which is probably what was intended.</p> <h3><a name="NM_METHOD_CONSTRUCTOR_CONFUSION">Nm: Apparent method/constructor confusion (NM_METHOD_CONSTRUCTOR_CONFUSION)</a></h3> <p> This regular method has the same name as the class it is defined in. It is likely that this was intended to be a constructor. If it was intended to be a constructor, remove the declaration of a void return value. If you had accidently defined this method, realized the mistake, defined a proper constructor but can't get rid of this method due to backwards compatibility, deprecate the method. </p> <h3><a name="NM_VERY_CONFUSING">Nm: Very confusing method names (NM_VERY_CONFUSING)</a></h3> <p> The referenced methods have names that differ only by capitalization. This is very confusing because if the capitalization were identical then one of the methods would override the other. </p> <h3><a name="NM_WRONG_PACKAGE">Nm: Method doesn't override method in superclass due to wrong package for parameter (NM_WRONG_PACKAGE)</a></h3> <p> The method in the subclass doesn't override a similar method in a superclass because the type of a parameter doesn't exactly match the type of the corresponding parameter in the superclass. For example, if you have:</p> <blockquote> <pre> import alpha.Foo; public class A { public int f(Foo x) { return 17; } } ---- import beta.Foo; public class B extends A { public int f(Foo x) { return 42; } } </pre> </blockquote> <p>The <code>f(Foo)</code> method defined in class <code>B</code> doesn't override the <code>f(Foo)</code> method defined in class <code>A</code>, because the argument types are <code>Foo</code>'s from different packages. </p> <h3><a name="QBA_QUESTIONABLE_BOOLEAN_ASSIGNMENT">QBA: Method assigns boolean literal in boolean expression (QBA_QUESTIONABLE_BOOLEAN_ASSIGNMENT)</a></h3> <p> This method assigns a literal boolean value (true or false) to a boolean variable inside an if or while expression. Most probably this was supposed to be a boolean comparison using ==, not an assignment using =. </p> <h3><a name="RC_REF_COMPARISON">RC: Suspicious reference comparison (RC_REF_COMPARISON)</a></h3> <p> This method compares two reference values using the == or != operator, where the correct way to compare instances of this type is generally with the equals() method. It is possible to create distinct instances that are equal but do not compare as == since they are different objects. Examples of classes which should generally not be compared by reference are java.lang.Integer, java.lang.Float, etc.</p> <h3><a name="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE">RCN: Nullcheck of value previously dereferenced (RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE)</a></h3> <p> A value is checked here to see whether it is null, but this value can't be null because it was previously dereferenced and if it were null a null pointer exception would have occurred at the earlier dereference. Essentially, this code and the previous dereference disagree as to whether this value is allowed to be null. Either the check is redundant or the previous dereference is erroneous.</p> <h3><a name="RE_BAD_SYNTAX_FOR_REGULAR_EXPRESSION">RE: Invalid syntax for regular expression (RE_BAD_SYNTAX_FOR_REGULAR_EXPRESSION)</a></h3> <p> The code here uses a regular expression that is invalid according to the syntax for regular expressions. This statement will throw a PatternSyntaxException when executed. </p> <h3><a name="RE_CANT_USE_FILE_SEPARATOR_AS_REGULAR_EXPRESSION">RE: File.separator used for regular expression (RE_CANT_USE_FILE_SEPARATOR_AS_REGULAR_EXPRESSION)</a></h3> <p> The code here uses <code>File.separator</code> where a regular expression is required. This will fail on Windows platforms, where the <code>File.separator</code> is a backslash, which is interpreted in a regular expression as an escape character. Amoung other options, you can just use <code>File.separatorChar=='\\' ? "\\\\" : File.separator</code> instead of <code>File.separator</code> </p> <h3><a name="RE_POSSIBLE_UNINTENDED_PATTERN">RE: "." or "|" used for regular expression (RE_POSSIBLE_UNINTENDED_PATTERN)</a></h3> <p> A String function is being invoked and "." or "|" is being passed to a parameter that takes a regular expression as an argument. Is this what you intended? For example <li>s.replaceAll(".", "/") will return a String in which <em>every</em> character has been replaced by a '/' character <li>s.split(".") <em>always</em> returns a zero length array of String <li>"ab|cd".replaceAll("|", "/") will return "/a/b/|/c/d/" <li>"ab|cd".split("|") will return array with six (!) elements: [, a, b, |, c, d] </p> <h3><a name="RV_01_TO_INT">RV: Random value from 0 to 1 is coerced to the integer 0 (RV_01_TO_INT)</a></h3> <p>A random value from 0 to 1 is being coerced to the integer value 0. You probably want to multiple the random value by something else before coercing it to an integer, or use the <code>Random.nextInt(n)</code> method. </p> <h3><a name="RV_ABSOLUTE_VALUE_OF_HASHCODE">RV: Bad attempt to compute absolute value of signed 32-bit hashcode (RV_ABSOLUTE_VALUE_OF_HASHCODE)</a></h3> <p> This code generates a hashcode and then computes the absolute value of that hashcode. If the hashcode is <code>Integer.MIN_VALUE</code>, then the result will be negative as well (since <code>Math.abs(Integer.MIN_VALUE) == Integer.MIN_VALUE</code>). </p> <p>One out of 2^32 strings have a hashCode of Integer.MIN_VALUE, including "polygenelubricants" "GydZG_" and ""DESIGNING WORKHOUSES". </p> <h3><a name="RV_ABSOLUTE_VALUE_OF_RANDOM_INT">RV: Bad attempt to compute absolute value of signed random integer (RV_ABSOLUTE_VALUE_OF_RANDOM_INT)</a></h3> <p> This code generates a random signed integer and then computes the absolute value of that random integer. If the number returned by the random number generator is <code>Integer.MIN_VALUE</code>, then the result will be negative as well (since <code>Math.abs(Integer.MIN_VALUE) == Integer.MIN_VALUE</code>). (Same problem arised for long values as well). </p> <h3><a name="RV_CHECK_COMPARETO_FOR_SPECIFIC_RETURN_VALUE">RV: Code checks for specific values returned by compareTo (RV_CHECK_COMPARETO_FOR_SPECIFIC_RETURN_VALUE)</a></h3> <p> This code invoked a compareTo or compare method, and checks to see if the return value is a specific value, such as 1 or -1. When invoking these methods, you should only check the sign of the result, not for any specific non-zero value. While many or most compareTo and compare methods only return -1, 0 or 1, some of them will return other values. <h3><a name="RV_EXCEPTION_NOT_THROWN">RV: Exception created and dropped rather than thrown (RV_EXCEPTION_NOT_THROWN)</a></h3> <p> This code creates an exception (or error) object, but doesn't do anything with it. For example, something like </p> <blockquote> <pre> if (x &lt; 0) new IllegalArgumentException("x must be nonnegative"); </pre> </blockquote> <p>It was probably the intent of the programmer to throw the created exception:</p> <blockquote> <pre> if (x &lt; 0) throw new IllegalArgumentException("x must be nonnegative"); </pre> </blockquote> <h3><a name="RV_RETURN_VALUE_IGNORED">RV: Method ignores return value (RV_RETURN_VALUE_IGNORED)</a></h3> <p> The return value of this method should be checked. One common cause of this warning is to invoke a method on an immutable object, thinking that it updates the object. For example, in the following code fragment,</p> <blockquote> <pre> String dateString = getHeaderField(name); dateString.trim(); </pre> </blockquote> <p>the programmer seems to be thinking that the trim() method will update the String referenced by dateString. But since Strings are immutable, the trim() function returns a new String value, which is being ignored here. The code should be corrected to: </p> <blockquote> <pre> String dateString = getHeaderField(name); dateString = dateString.trim(); </pre> </blockquote> <h3><a name="RpC_REPEATED_CONDITIONAL_TEST">RpC: Repeated conditional tests (RpC_REPEATED_CONDITIONAL_TEST)</a></h3> <p>The code contains a conditional test is performed twice, one right after the other (e.g., <code>x == 0 || x == 0</code>). Perhaps the second occurrence is intended to be something else (e.g., <code>x == 0 || y == 0</code>). </p> <h3><a name="SA_FIELD_SELF_ASSIGNMENT">SA: Self assignment of field (SA_FIELD_SELF_ASSIGNMENT)</a></h3> <p> This method contains a self assignment of a field; e.g. </p> <pre> int x; public void foo() { x = x; } </pre> <p>Such assignments are useless, and may indicate a logic error or typo.</p> <h3><a name="SA_FIELD_SELF_COMPARISON">SA: Self comparison of field with itself (SA_FIELD_SELF_COMPARISON)</a></h3> <p> This method compares a field with itself, and may indicate a typo or a logic error. Make sure that you are comparing the right things. </p> <h3><a name="SA_FIELD_SELF_COMPUTATION">SA: Nonsensical self computation involving a field (e.g., x & x) (SA_FIELD_SELF_COMPUTATION)</a></h3> <p> This method performs a nonsensical computation of a field with another reference to the same field (e.g., x&x or x-x). Because of the nature of the computation, this operation doesn't seem to make sense, and may indicate a typo or a logic error. Double check the computation. </p> <h3><a name="SA_LOCAL_SELF_ASSIGNMENT_INSTEAD_OF_FIELD">SA: Self assignment of local rather than assignment to field (SA_LOCAL_SELF_ASSIGNMENT_INSTEAD_OF_FIELD)</a></h3> <p> This method contains a self assignment of a local variable, and there is a field with an identical name. assignment appears to have been ; e.g.</p> <pre> int foo; public void setFoo(int foo) { foo = foo; } </pre> <p>The assignment is useless. Did you mean to assign to the field instead?</p> <h3><a name="SA_LOCAL_SELF_COMPARISON">SA: Self comparison of value with itself (SA_LOCAL_SELF_COMPARISON)</a></h3> <p> This method compares a local variable with itself, and may indicate a typo or a logic error. Make sure that you are comparing the right things. </p> <h3><a name="SA_LOCAL_SELF_COMPUTATION">SA: Nonsensical self computation involving a variable (e.g., x & x) (SA_LOCAL_SELF_COMPUTATION)</a></h3> <p> This method performs a nonsensical computation of a local variable with another reference to the same variable (e.g., x&x or x-x). Because of the nature of the computation, this operation doesn't seem to make sense, and may indicate a typo or a logic error. Double check the computation. </p> <h3><a name="SF_DEAD_STORE_DUE_TO_SWITCH_FALLTHROUGH">SF: Dead store due to switch statement fall through (SF_DEAD_STORE_DUE_TO_SWITCH_FALLTHROUGH)</a></h3> <p> A value stored in the previous switch case is overwritten here due to a switch fall through. It is likely that you forgot to put a break or return at the end of the previous case. </p> <h3><a name="SF_DEAD_STORE_DUE_TO_SWITCH_FALLTHROUGH_TO_THROW">SF: Dead store due to switch statement fall through to throw (SF_DEAD_STORE_DUE_TO_SWITCH_FALLTHROUGH_TO_THROW)</a></h3> <p> A value stored in the previous switch case is ignored here due to a switch fall through to a place where an exception is thrown. It is likely that you forgot to put a break or return at the end of the previous case. </p> <h3><a name="SIC_THREADLOCAL_DEADLY_EMBRACE">SIC: Deadly embrace of non-static inner class and thread local (SIC_THREADLOCAL_DEADLY_EMBRACE)</a></h3> <p> This class is an inner class, but should probably be a static inner class. As it is, there is a serious danger of a deadly embrace between the inner class and the thread local in the outer class. Because the inner class isn't static, it retains a reference to the outer class. If the thread local contains a reference to an instance of the inner class, the inner and outer instance will both be reachable and not eligible for garbage collection. </p> <h3><a name="SIO_SUPERFLUOUS_INSTANCEOF">SIO: Unnecessary type check done using instanceof operator (SIO_SUPERFLUOUS_INSTANCEOF)</a></h3> <p> Type check performed using the instanceof operator where it can be statically determined whether the object is of the type requested. </p> <h3><a name="SQL_BAD_PREPARED_STATEMENT_ACCESS">SQL: Method attempts to access a prepared statement parameter with index 0 (SQL_BAD_PREPARED_STATEMENT_ACCESS)</a></h3> <p> A call to a setXXX method of a prepared statement was made where the parameter index is 0. As parameter indexes start at index 1, this is always a mistake.</p> <h3><a name="SQL_BAD_RESULTSET_ACCESS">SQL: Method attempts to access a result set field with index 0 (SQL_BAD_RESULTSET_ACCESS)</a></h3> <p> A call to getXXX or updateXXX methods of a result set was made where the field index is 0. As ResultSet fields start at index 1, this is always a mistake.</p> <h3><a name="STI_INTERRUPTED_ON_CURRENTTHREAD">STI: Unneeded use of currentThread() call, to call interrupted() (STI_INTERRUPTED_ON_CURRENTTHREAD)</a></h3> <p> This method invokes the Thread.currentThread() call, just to call the interrupted() method. As interrupted() is a static method, is more simple and clear to use Thread.interrupted(). </p> <h3><a name="STI_INTERRUPTED_ON_UNKNOWNTHREAD">STI: Static Thread.interrupted() method invoked on thread instance (STI_INTERRUPTED_ON_UNKNOWNTHREAD)</a></h3> <p> This method invokes the Thread.interrupted() method on a Thread object that appears to be a Thread object that is not the current thread. As the interrupted() method is static, the interrupted method will be called on a different object than the one the author intended. </p> <h3><a name="SE_METHOD_MUST_BE_PRIVATE">Se: Method must be private in order for serialization to work (SE_METHOD_MUST_BE_PRIVATE)</a></h3> <p> This class implements the <code>Serializable</code> interface, and defines a method for custom serialization/deserialization. But since that method isn't declared private, it will be silently ignored by the serialization/deserialization API.</p> <h3><a name="SE_READ_RESOLVE_IS_STATIC">Se: The readResolve method must not be declared as a static method. (SE_READ_RESOLVE_IS_STATIC)</a></h3> <p> In order for the readResolve method to be recognized by the serialization mechanism, it must not be declared as a static method. </p> <h3><a name="TQ_ALWAYS_VALUE_USED_WHERE_NEVER_REQUIRED">TQ: Value annotated as carrying a type qualifier used where a value that must not carry that qualifier is required (TQ_ALWAYS_VALUE_USED_WHERE_NEVER_REQUIRED)</a></h3> <p> A value specified as carrying a type qualifier annotation is consumed in a location or locations requiring that the value not carry that annotation. </p> <p> More precisely, a value annotated with a type qualifier specifying when=ALWAYS is guaranteed to reach a use or uses where the same type qualifier specifies when=NEVER. </p> <p> For example, say that @NonNegative is a nickname for the type qualifier annotation @Negative(when=When.NEVER). The following code will generate this warning because the return statement requires a @NonNegative value, but receives one that is marked as @Negative. </p> <blockquote> <pre> public @NonNegative Integer example(@Negative Integer value) { return value; } </pre> </blockquote> <h3><a name="TQ_COMPARING_VALUES_WITH_INCOMPATIBLE_TYPE_QUALIFIERS">TQ: Comparing values with incompatible type qualifiers (TQ_COMPARING_VALUES_WITH_INCOMPATIBLE_TYPE_QUALIFIERS)</a></h3> <p> A value specified as carrying a type qualifier annotation is compared with a value that doesn't ever carry that qualifier. </p> <p> More precisely, a value annotated with a type qualifier specifying when=ALWAYS is compared with a value that where the same type qualifier specifies when=NEVER. </p> <p> For example, say that @NonNegative is a nickname for the type qualifier annotation @Negative(when=When.NEVER). The following code will generate this warning because the return statement requires a @NonNegative value, but receives one that is marked as @Negative. </p> <blockquote> <pre> public boolean example(@Negative Integer value1, @NonNegative Integer value2) { return value1.equals(value2); } </pre> </blockquote> <h3><a name="TQ_MAYBE_SOURCE_VALUE_REACHES_ALWAYS_SINK">TQ: Value that might not carry a type qualifier is always used in a way requires that type qualifier (TQ_MAYBE_SOURCE_VALUE_REACHES_ALWAYS_SINK)</a></h3> <p> A value that is annotated as possibility not being an instance of the values denoted by the type qualifier, and the value is guaranteed to be used in a way that requires values denoted by that type qualifier. </p> <h3><a name="TQ_MAYBE_SOURCE_VALUE_REACHES_NEVER_SINK">TQ: Value that might carry a type qualifier is always used in a way prohibits it from having that type qualifier (TQ_MAYBE_SOURCE_VALUE_REACHES_NEVER_SINK)</a></h3> <p> A value that is annotated as possibility being an instance of the values denoted by the type qualifier, and the value is guaranteed to be used in a way that prohibits values denoted by that type qualifier. </p> <h3><a name="TQ_NEVER_VALUE_USED_WHERE_ALWAYS_REQUIRED">TQ: Value annotated as never carrying a type qualifier used where value carrying that qualifier is required (TQ_NEVER_VALUE_USED_WHERE_ALWAYS_REQUIRED)</a></h3> <p> A value specified as not carrying a type qualifier annotation is guaranteed to be consumed in a location or locations requiring that the value does carry that annotation. </p> <p> More precisely, a value annotated with a type qualifier specifying when=NEVER is guaranteed to reach a use or uses where the same type qualifier specifies when=ALWAYS. </p> <p> TODO: example </p> <h3><a name="TQ_UNKNOWN_VALUE_USED_WHERE_ALWAYS_STRICTLY_REQUIRED">TQ: Value without a type qualifier used where a value is required to have that qualifier (TQ_UNKNOWN_VALUE_USED_WHERE_ALWAYS_STRICTLY_REQUIRED)</a></h3> <p> A value is being used in a way that requires the value be annotation with a type qualifier. The type qualifier is strict, so the tool rejects any values that do not have the appropriate annotation. </p> <p> To coerce a value to have a strict annotation, define an identity function where the return value is annotated with the strict annotation. This is the only way to turn a non-annotated value into a value with a strict type qualifier annotation. </p> <h3><a name="UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS">UMAC: Uncallable method defined in anonymous class (UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS)</a></h3> <p> This anonymous class defined a method that is not directly invoked and does not override a method in a superclass. Since methods in other classes cannot directly invoke methods declared in an anonymous class, it seems that this method is uncallable. The method might simply be dead code, but it is also possible that the method is intended to override a method declared in a superclass, and due to an typo or other error the method does not, in fact, override the method it is intended to. </p> <h3><a name="UR_UNINIT_READ">UR: Uninitialized read of field in constructor (UR_UNINIT_READ)</a></h3> <p> This constructor reads a field which has not yet been assigned a value.&nbsp; This is often caused when the programmer mistakenly uses the field instead of one of the constructor's parameters.</p> <h3><a name="UR_UNINIT_READ_CALLED_FROM_SUPER_CONSTRUCTOR">UR: Uninitialized read of field method called from constructor of superclass (UR_UNINIT_READ_CALLED_FROM_SUPER_CONSTRUCTOR)</a></h3> <p> This method is invoked in the constructor of of the superclass. At this point, the fields of the class have not yet initialized.</p> <p>To make this more concrete, consider the following classes:</p> <pre>abstract class A { int hashCode; abstract Object getValue(); A() { hashCode = getValue().hashCode(); } } class B extends A { Object value; B(Object v) { this.value = v; } Object getValue() { return value; } }</pre> <p>When a <code>B</code> is constructed, the constructor for the <code>A</code> class is invoked <em>before</em> the constructor for <code>B</code> sets <code>value</code>. Thus, when the constructor for <code>A</code> invokes <code>getValue</code>, an uninitialized value is read for <code>value</code> </p> <h3><a name="DMI_INVOKING_TOSTRING_ON_ANONYMOUS_ARRAY">USELESS_STRING: Invocation of toString on an unnamed array (DMI_INVOKING_TOSTRING_ON_ANONYMOUS_ARRAY)</a></h3> <p> The code invokes toString on an (anonymous) array. Calling toString on an array generates a fairly useless result such as [C@16f0472. Consider using Arrays.toString to convert the array into a readable String that gives the contents of the array. See Programming Puzzlers, chapter 3, puzzle 12. </p> <h3><a name="DMI_INVOKING_TOSTRING_ON_ARRAY">USELESS_STRING: Invocation of toString on an array (DMI_INVOKING_TOSTRING_ON_ARRAY)</a></h3> <p> The code invokes toString on an array, which will generate a fairly useless result such as [C@16f0472. Consider using Arrays.toString to convert the array into a readable String that gives the contents of the array. See Programming Puzzlers, chapter 3, puzzle 12. </p> <h3><a name="VA_FORMAT_STRING_BAD_CONVERSION_FROM_ARRAY">USELESS_STRING: Array formatted in useless way using format string (VA_FORMAT_STRING_BAD_CONVERSION_FROM_ARRAY)</a></h3> <p> One of the arguments being formatted with a format string is an array. This will be formatted using a fairly useless format, such as [I@304282, which doesn't actually show the contents of the array. Consider wrapping the array using <code>Arrays.asList(...)</code> before handling it off to a formatted. </p> <h3><a name="UWF_NULL_FIELD">UwF: Field only ever set to null (UWF_NULL_FIELD)</a></h3> <p> All writes to this field are of the constant value null, and thus all reads of the field will return null. Check for errors, or remove it if it is useless.</p> <h3><a name="UWF_UNWRITTEN_FIELD">UwF: Unwritten field (UWF_UNWRITTEN_FIELD)</a></h3> <p> This field is never written.&nbsp; All reads of it will return the default value. Check for errors (should it have been initialized?), or remove it if it is useless.</p> <h3><a name="VA_PRIMITIVE_ARRAY_PASSED_TO_OBJECT_VARARG">VA: Primitive array passed to function expecting a variable number of object arguments (VA_PRIMITIVE_ARRAY_PASSED_TO_OBJECT_VARARG)</a></h3> <p> This code passes a primitive array to a function that takes a variable number of object arguments. This creates an array of length one to hold the primitive array and passes it to the function. </p> <h3><a name="LG_LOST_LOGGER_DUE_TO_WEAK_REFERENCE">LG: Potential lost logger changes due to weak reference in OpenJDK (LG_LOST_LOGGER_DUE_TO_WEAK_REFERENCE)</a></h3> <p>OpenJDK introduces a potential incompatibility. In particular, the java.util.logging.Logger behavior has changed. Instead of using strong references, it now uses weak references internally. That's a reasonable change, but unfortunately some code relies on the old behavior - when changing logger configuration, it simply drops the logger reference. That means that the garbage collector is free to reclaim that memory, which means that the logger configuration is lost. For example, consider: </p> <pre>public static void initLogging() throws Exception { Logger logger = Logger.getLogger("edu.umd.cs"); logger.addHandler(new FileHandler()); // call to change logger configuration logger.setUseParentHandlers(false); // another call to change logger configuration }</pre> <p>The logger reference is lost at the end of the method (it doesn't escape the method), so if you have a garbage collection cycle just after the call to initLogging, the logger configuration is lost (because Logger only keeps weak references).</p> <pre>public static void main(String[] args) throws Exception { initLogging(); // adds a file handler to the logger System.gc(); // logger configuration lost Logger.getLogger("edu.umd.cs").info("Some message"); // this isn't logged to the file as expected }</pre> <p><em>Ulf Ochsenfahrt and Eric Fellheimer</em></p> <h3><a name="OBL_UNSATISFIED_OBLIGATION">OBL: Method may fail to clean up stream or resource (OBL_UNSATISFIED_OBLIGATION)</a></h3> <p> This method may fail to clean up (close, dispose of) a stream, database object, or other resource requiring an explicit cleanup operation. </p> <p> In general, if a method opens a stream or other resource, the method should use a try/finally block to ensure that the stream or resource is cleaned up before the method returns. </p> <p> This bug pattern is essentially the same as the OS_OPEN_STREAM and ODR_OPEN_DATABASE_RESOURCE bug patterns, but is based on a different (and hopefully better) static analysis technique. We are interested is getting feedback about the usefulness of this bug pattern. To send feedback, either: </p> <ul> <li>send email to findbugs@cs.umd.edu</li> <li>file a bug report: <a href="http://findbugs.sourceforge.net/reportingBugs.html">http://findbugs.sourceforge.net/reportingBugs.html</a></li> </ul> <p> In particular, the false-positive suppression heuristics for this bug pattern have not been extensively tuned, so reports about false positives are helpful to us. </p> <p> See Weimer and Necula, <i>Finding and Preventing Run-Time Error Handling Mistakes</i>, for a description of the analysis technique. </p> <h3><a name="OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE">OBL: Method may fail to clean up stream or resource on checked exception (OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE)</a></h3> <p> This method may fail to clean up (close, dispose of) a stream, database object, or other resource requiring an explicit cleanup operation. </p> <p> In general, if a method opens a stream or other resource, the method should use a try/finally block to ensure that the stream or resource is cleaned up before the method returns. </p> <p> This bug pattern is essentially the same as the OS_OPEN_STREAM and ODR_OPEN_DATABASE_RESOURCE bug patterns, but is based on a different (and hopefully better) static analysis technique. We are interested is getting feedback about the usefulness of this bug pattern. To send feedback, either: </p> <ul> <li>send email to findbugs@cs.umd.edu</li> <li>file a bug report: <a href="http://findbugs.sourceforge.net/reportingBugs.html">http://findbugs.sourceforge.net/reportingBugs.html</a></li> </ul> <p> In particular, the false-positive suppression heuristics for this bug pattern have not been extensively tuned, so reports about false positives are helpful to us. </p> <p> See Weimer and Necula, <i>Finding and Preventing Run-Time Error Handling Mistakes</i>, for a description of the analysis technique. </p> <h3><a name="DM_CONVERT_CASE">Dm: Consider using Locale parameterized version of invoked method (DM_CONVERT_CASE)</a></h3> <p> A String is being converted to upper or lowercase, using the platform's default encoding. This may result in improper conversions when used with international characters. Use the </p> <ul> <li>String.toUpperCase( Locale l )</li> <li>String.toLowerCase( Locale l )</li> </ul> <p>versions instead.</p> <h3><a name="DM_DEFAULT_ENCODING">Dm: Reliance on default encoding (DM_DEFAULT_ENCODING)</a></h3> <p> Found a call to a method which will perform a byte to String (or String to byte) conversion, and will assume that the default platform encoding is suitable. This will cause the application behaviour to vary between platforms. Use an alternative API and specify a charset name or Charset object explicitly. </p> <h3><a name="DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED">DP: Classloaders should only be created inside doPrivileged block (DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED)</a></h3> <p> This code creates a classloader, which needs permission if a security manage is installed. If this code might be invoked by code that does not have security permissions, then the classloader creation needs to occur inside a doPrivileged block.</p> <h3><a name="DP_DO_INSIDE_DO_PRIVILEGED">DP: Method invoked that should be only be invoked inside a doPrivileged block (DP_DO_INSIDE_DO_PRIVILEGED)</a></h3> <p> This code invokes a method that requires a security permission check. If this code will be granted security permissions, but might be invoked by code that does not have security permissions, then the invocation needs to occur inside a doPrivileged block.</p> <h3><a name="EI_EXPOSE_REP">EI: May expose internal representation by returning reference to mutable object (EI_EXPOSE_REP)</a></h3> <p> Returning a reference to a mutable object value stored in one of the object's fields exposes the internal representation of the object.&nbsp; If instances are accessed by untrusted code, and unchecked changes to the mutable object would compromise security or other important properties, you will need to do something different. Returning a new copy of the object is better approach in many situations.</p> <h3><a name="EI_EXPOSE_REP2">EI2: May expose internal representation by incorporating reference to mutable object (EI_EXPOSE_REP2)</a></h3> <p> This code stores a reference to an externally mutable object into the internal representation of the object.&nbsp; If instances are accessed by untrusted code, and unchecked changes to the mutable object would compromise security or other important properties, you will need to do something different. Storing a copy of the object is better approach in many situations.</p> <h3><a name="FI_PUBLIC_SHOULD_BE_PROTECTED">FI: Finalizer should be protected, not public (FI_PUBLIC_SHOULD_BE_PROTECTED)</a></h3> <p> A class's <code>finalize()</code> method should have protected access, not public.</p> <h3><a name="EI_EXPOSE_STATIC_REP2">MS: May expose internal static state by storing a mutable object into a static field (EI_EXPOSE_STATIC_REP2)</a></h3> <p> This code stores a reference to an externally mutable object into a static field. If unchecked changes to the mutable object would compromise security or other important properties, you will need to do something different. Storing a copy of the object is better approach in many situations.</p> <h3><a name="MS_CANNOT_BE_FINAL">MS: Field isn't final and can't be protected from malicious code (MS_CANNOT_BE_FINAL)</a></h3> <p> A mutable static field could be changed by malicious code or by accident from another package. Unfortunately, the way the field is used doesn't allow any easy fix to this problem.</p> <h3><a name="MS_EXPOSE_REP">MS: Public static method may expose internal representation by returning array (MS_EXPOSE_REP)</a></h3> <p> A public static method returns a reference to an array that is part of the static state of the class. Any code that calls this method can freely modify the underlying array. One fix is to return a copy of the array.</p> <h3><a name="MS_FINAL_PKGPROTECT">MS: Field should be both final and package protected (MS_FINAL_PKGPROTECT)</a></h3> <p> A mutable static field could be changed by malicious code or by accident from another package. The field could be made package protected and/or made final to avoid this vulnerability.</p> <h3><a name="MS_MUTABLE_ARRAY">MS: Field is a mutable array (MS_MUTABLE_ARRAY)</a></h3> <p> A final static field references an array and can be accessed by malicious code or by accident from another package. This code can freely modify the contents of the array.</p> <h3><a name="MS_MUTABLE_HASHTABLE">MS: Field is a mutable Hashtable (MS_MUTABLE_HASHTABLE)</a></h3> <p>A final static field references a Hashtable and can be accessed by malicious code or by accident from another package. This code can freely modify the contents of the Hashtable.</p> <h3><a name="MS_OOI_PKGPROTECT">MS: Field should be moved out of an interface and made package protected (MS_OOI_PKGPROTECT)</a></h3> <p> A final static field that is defined in an interface references a mutable object such as an array or hashtable. This mutable object could be changed by malicious code or by accident from another package. To solve this, the field needs to be moved to a class and made package protected to avoid this vulnerability.</p> <h3><a name="MS_PKGPROTECT">MS: Field should be package protected (MS_PKGPROTECT)</a></h3> <p> A mutable static field could be changed by malicious code or by accident. The field could be made package protected to avoid this vulnerability.</p> <h3><a name="MS_SHOULD_BE_FINAL">MS: Field isn't final but should be (MS_SHOULD_BE_FINAL)</a></h3> <p> This static field public but not final, and could be changed by malicious code or by accident from another package. The field could be made final to avoid this vulnerability.</p> <h3><a name="MS_SHOULD_BE_REFACTORED_TO_BE_FINAL">MS: Field isn't final but should be refactored to be so (MS_SHOULD_BE_REFACTORED_TO_BE_FINAL)</a></h3> <p> This static field public but not final, and could be changed by malicious code or by accident from another package. The field could be made final to avoid this vulnerability. However, the static initializer contains more than one write to the field, so doing so will require some refactoring. </p> <h3><a name="AT_OPERATION_SEQUENCE_ON_CONCURRENT_ABSTRACTION">AT: Sequence of calls to concurrent abstraction may not be atomic (AT_OPERATION_SEQUENCE_ON_CONCURRENT_ABSTRACTION)</a></h3> <p>This code contains a sequence of calls to a concurrent abstraction (such as a concurrent hash map). These calls will not be executed atomically. <h3><a name="DC_DOUBLECHECK">DC: Possible double check of field (DC_DOUBLECHECK)</a></h3> <p> This method may contain an instance of double-checked locking.&nbsp; This idiom is not correct according to the semantics of the Java memory model.&nbsp; For more information, see the web page <a href="http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html" >http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html</a>.</p> <h3><a name="DL_SYNCHRONIZATION_ON_BOOLEAN">DL: Synchronization on Boolean (DL_SYNCHRONIZATION_ON_BOOLEAN)</a></h3> <p> The code synchronizes on a boxed primitive constant, such as an Boolean.</p> <pre> private static Boolean inited = Boolean.FALSE; ... synchronized(inited) { if (!inited) { init(); inited = Boolean.TRUE; } } ... </pre> <p>Since there normally exist only two Boolean objects, this code could be synchronizing on the same object as other, unrelated code, leading to unresponsiveness and possible deadlock</p> <p>See CERT <a href="https://www.securecoding.cert.org/confluence/display/java/CON08-J.+Do+not+synchronize+on+objects+that+may+be+reused">CON08-J. Do not synchronize on objects that may be reused</a> for more information.</p> <h3><a name="DL_SYNCHRONIZATION_ON_BOXED_PRIMITIVE">DL: Synchronization on boxed primitive (DL_SYNCHRONIZATION_ON_BOXED_PRIMITIVE)</a></h3> <p> The code synchronizes on a boxed primitive constant, such as an Integer.</p> <pre> private static Integer count = 0; ... synchronized(count) { count++; } ... </pre> <p>Since Integer objects can be cached and shared, this code could be synchronizing on the same object as other, unrelated code, leading to unresponsiveness and possible deadlock</p> <p>See CERT <a href="https://www.securecoding.cert.org/confluence/display/java/CON08-J.+Do+not+synchronize+on+objects+that+may+be+reused">CON08-J. Do not synchronize on objects that may be reused</a> for more information.</p> <h3><a name="DL_SYNCHRONIZATION_ON_SHARED_CONSTANT">DL: Synchronization on interned String (DL_SYNCHRONIZATION_ON_SHARED_CONSTANT)</a></h3> <p> The code synchronizes on interned String.</p> <pre> private static String LOCK = "LOCK"; ... synchronized(LOCK) { ...} ... </pre> <p>Constant Strings are interned and shared across all other classes loaded by the JVM. Thus, this could is locking on something that other code might also be locking. This could result in very strange and hard to diagnose blocking and deadlock behavior. See <a href="http://www.javalobby.org/java/forums/t96352.html">http://www.javalobby.org/java/forums/t96352.html</a> and <a href="http://jira.codehaus.org/browse/JETTY-352">http://jira.codehaus.org/browse/JETTY-352</a>. </p> <p>See CERT <a href="https://www.securecoding.cert.org/confluence/display/java/CON08-J.+Do+not+synchronize+on+objects+that+may+be+reused">CON08-J. Do not synchronize on objects that may be reused</a> for more information.</p> <h3><a name="DL_SYNCHRONIZATION_ON_UNSHARED_BOXED_PRIMITIVE">DL: Synchronization on boxed primitive values (DL_SYNCHRONIZATION_ON_UNSHARED_BOXED_PRIMITIVE)</a></h3> <p> The code synchronizes on an apparently unshared boxed primitive, such as an Integer.</p> <pre> private static final Integer fileLock = new Integer(1); ... synchronized(fileLock) { .. do something .. } ... </pre> <p>It would be much better, in this code, to redeclare fileLock as</p> <pre> private static final Object fileLock = new Object(); </pre> <p> The existing code might be OK, but it is confusing and a future refactoring, such as the "Remove Boxing" refactoring in IntelliJ, might replace this with the use of an interned Integer object shared throughout the JVM, leading to very confusing behavior and potential deadlock. </p> <h3><a name="DM_MONITOR_WAIT_ON_CONDITION">Dm: Monitor wait() called on Condition (DM_MONITOR_WAIT_ON_CONDITION)</a></h3> <p> This method calls <code>wait()</code> on a <code>java.util.concurrent.locks.Condition</code> object.&nbsp; Waiting for a <code>Condition</code> should be done using one of the <code>await()</code> methods defined by the <code>Condition</code> interface. </p> <h3><a name="DM_USELESS_THREAD">Dm: A thread was created using the default empty run method (DM_USELESS_THREAD)</a></h3> <p>This method creates a thread without specifying a run method either by deriving from the Thread class, or by passing a Runnable object. This thread, then, does nothing but waste time. </p> <h3><a name="ESync_EMPTY_SYNC">ESync: Empty synchronized block (ESync_EMPTY_SYNC)</a></h3> <p> The code contains an empty synchronized block:</p> <pre> synchronized() {} </pre> <p>Empty synchronized blocks are far more subtle and hard to use correctly than most people recognize, and empty synchronized blocks are almost never a better solution than less contrived solutions. </p> <h3><a name="IS2_INCONSISTENT_SYNC">IS: Inconsistent synchronization (IS2_INCONSISTENT_SYNC)</a></h3> <p> The fields of this class appear to be accessed inconsistently with respect to synchronization.&nbsp; This bug report indicates that the bug pattern detector judged that </p> <ul> <li> The class contains a mix of locked and unlocked accesses,</li> <li> The class is <b>not</b> annotated as javax.annotation.concurrent.NotThreadSafe,</li> <li> At least one locked access was performed by one of the class's own methods, and</li> <li> The number of unsynchronized field accesses (reads and writes) was no more than one third of all accesses, with writes being weighed twice as high as reads</li> </ul> <p> A typical bug matching this bug pattern is forgetting to synchronize one of the methods in a class that is intended to be thread-safe.</p> <p> You can select the nodes labeled "Unsynchronized access" to show the code locations where the detector believed that a field was accessed without synchronization.</p> <p> Note that there are various sources of inaccuracy in this detector; for example, the detector cannot statically detect all situations in which a lock is held.&nbsp; Also, even when the detector is accurate in distinguishing locked vs. unlocked accesses, the code in question may still be correct.</p> <h3><a name="IS_FIELD_NOT_GUARDED">IS: Field not guarded against concurrent access (IS_FIELD_NOT_GUARDED)</a></h3> <p> This field is annotated with net.jcip.annotations.GuardedBy or javax.annotation.concurrent.GuardedBy, but can be accessed in a way that seems to violate those annotations.</p> <h3><a name="JLM_JSR166_LOCK_MONITORENTER">JLM: Synchronization performed on Lock (JLM_JSR166_LOCK_MONITORENTER)</a></h3> <p> This method performs synchronization an object that implements java.util.concurrent.locks.Lock. Such an object is locked/unlocked using <code>acquire()</code>/<code>release()</code> rather than using the <code>synchronized (...)</code> construct. </p> <h3><a name="JLM_JSR166_UTILCONCURRENT_MONITORENTER">JLM: Synchronization performed on util.concurrent instance (JLM_JSR166_UTILCONCURRENT_MONITORENTER)</a></h3> <p> This method performs synchronization an object that is an instance of a class from the java.util.concurrent package (or its subclasses). Instances of these classes have their own concurrency control mechanisms that are orthogonal to the synchronization provided by the Java keyword <code>synchronized</code>. For example, synchronizing on an <code>AtomicBoolean</code> will not prevent other threads from modifying the <code>AtomicBoolean</code>.</p> <p>Such code may be correct, but should be carefully reviewed and documented, and may confuse people who have to maintain the code at a later date. </p> <h3><a name="JML_JSR166_CALLING_WAIT_RATHER_THAN_AWAIT">JLM: Using monitor style wait methods on util.concurrent abstraction (JML_JSR166_CALLING_WAIT_RATHER_THAN_AWAIT)</a></h3> <p> This method calls <code>wait()</code>, <code>notify()</code> or <code>notifyAll()()</code> on an object that also provides an <code>await()</code>, <code>signal()</code>, <code>signalAll()</code> method (such as util.concurrent Condition objects). This probably isn't what you want, and even if you do want it, you should consider changing your design, as other developers will find it exceptionally confusing. </p> <h3><a name="LI_LAZY_INIT_STATIC">LI: Incorrect lazy initialization of static field (LI_LAZY_INIT_STATIC)</a></h3> <p> This method contains an unsynchronized lazy initialization of a non-volatile static field. Because the compiler or processor may reorder instructions, threads are not guaranteed to see a completely initialized object, <em>if the method can be called by multiple threads</em>. You can make the field volatile to correct the problem. For more information, see the <a href="http://www.cs.umd.edu/~pugh/java/memoryModel/">Java Memory Model web site</a>. </p> <h3><a name="LI_LAZY_INIT_UPDATE_STATIC">LI: Incorrect lazy initialization and update of static field (LI_LAZY_INIT_UPDATE_STATIC)</a></h3> <p> This method contains an unsynchronized lazy initialization of a static field. After the field is set, the object stored into that location is further updated or accessed. The setting of the field is visible to other threads as soon as it is set. If the futher accesses in the method that set the field serve to initialize the object, then you have a <em>very serious</em> multithreading bug, unless something else prevents any other thread from accessing the stored object until it is fully initialized. </p> <p>Even if you feel confident that the method is never called by multiple threads, it might be better to not set the static field until the value you are setting it to is fully populated/initialized. <h3><a name="ML_SYNC_ON_FIELD_TO_GUARD_CHANGING_THAT_FIELD">ML: Synchronization on field in futile attempt to guard that field (ML_SYNC_ON_FIELD_TO_GUARD_CHANGING_THAT_FIELD)</a></h3> <p> This method synchronizes on a field in what appears to be an attempt to guard against simultaneous updates to that field. But guarding a field gets a lock on the referenced object, not on the field. This may not provide the mutual exclusion you need, and other threads might be obtaining locks on the referenced objects (for other purposes). An example of this pattern would be:</p> <pre> private Long myNtfSeqNbrCounter = new Long(0); private Long getNotificationSequenceNumber() { Long result = null; synchronized(myNtfSeqNbrCounter) { result = new Long(myNtfSeqNbrCounter.longValue() + 1); myNtfSeqNbrCounter = new Long(result.longValue()); } return result; } </pre> <h3><a name="ML_SYNC_ON_UPDATED_FIELD">ML: Method synchronizes on an updated field (ML_SYNC_ON_UPDATED_FIELD)</a></h3> <p> This method synchronizes on an object referenced from a mutable field. This is unlikely to have useful semantics, since different threads may be synchronizing on different objects.</p> <h3><a name="MSF_MUTABLE_SERVLET_FIELD">MSF: Mutable servlet field (MSF_MUTABLE_SERVLET_FIELD)</a></h3> <p>A web server generally only creates one instance of servlet or jsp class (i.e., treats the class as a Singleton), and will have multiple threads invoke methods on that instance to service multiple simultaneous requests. Thus, having a mutable instance field generally creates race conditions. <h3><a name="MWN_MISMATCHED_NOTIFY">MWN: Mismatched notify() (MWN_MISMATCHED_NOTIFY)</a></h3> <p> This method calls Object.notify() or Object.notifyAll() without obviously holding a lock on the object.&nbsp; Calling notify() or notifyAll() without a lock held will result in an <code>IllegalMonitorStateException</code> being thrown.</p> <h3><a name="MWN_MISMATCHED_WAIT">MWN: Mismatched wait() (MWN_MISMATCHED_WAIT)</a></h3> <p> This method calls Object.wait() without obviously holding a lock on the object.&nbsp; Calling wait() without a lock held will result in an <code>IllegalMonitorStateException</code> being thrown.</p> <h3><a name="NN_NAKED_NOTIFY">NN: Naked notify (NN_NAKED_NOTIFY)</a></h3> <p> A call to <code>notify()</code> or <code>notifyAll()</code> was made without any (apparent) accompanying modification to mutable object state.&nbsp; In general, calling a notify method on a monitor is done because some condition another thread is waiting for has become true.&nbsp; However, for the condition to be meaningful, it must involve a heap object that is visible to both threads.</p> <p> This bug does not necessarily indicate an error, since the change to mutable object state may have taken place in a method which then called the method containing the notification.</p> <h3><a name="NP_SYNC_AND_NULL_CHECK_FIELD">NP: Synchronize and null check on the same field. (NP_SYNC_AND_NULL_CHECK_FIELD)</a></h3> <p>Since the field is synchronized on, it seems not likely to be null. If it is null and then synchronized on a NullPointerException will be thrown and the check would be pointless. Better to synchronize on another field.</p> <h3><a name="NO_NOTIFY_NOT_NOTIFYALL">No: Using notify() rather than notifyAll() (NO_NOTIFY_NOT_NOTIFYALL)</a></h3> <p> This method calls <code>notify()</code> rather than <code>notifyAll()</code>.&nbsp; Java monitors are often used for multiple conditions.&nbsp; Calling <code>notify()</code> only wakes up one thread, meaning that the thread woken up might not be the one waiting for the condition that the caller just satisfied.</p> <h3><a name="RS_READOBJECT_SYNC">RS: Class's readObject() method is synchronized (RS_READOBJECT_SYNC)</a></h3> <p> This serializable class defines a <code>readObject()</code> which is synchronized.&nbsp; By definition, an object created by deserialization is only reachable by one thread, and thus there is no need for <code>readObject()</code> to be synchronized.&nbsp; If the <code>readObject()</code> method itself is causing the object to become visible to another thread, that is an example of very dubious coding style.</p> <h3><a name="RV_RETURN_VALUE_OF_PUTIFABSENT_IGNORED">RV: Return value of putIfAbsent ignored, value passed to putIfAbsent reused (RV_RETURN_VALUE_OF_PUTIFABSENT_IGNORED)</a></h3> The <code>putIfAbsent</code> method is typically used to ensure that a single value is associated with a given key (the first value for which put if absent succeeds). If you ignore the return value and retain a reference to the value passed in, you run the risk of retaining a value that is not the one that is associated with the key in the map. If it matters which one you use and you use the one that isn't stored in the map, your program will behave incorrectly. <h3><a name="RU_INVOKE_RUN">Ru: Invokes run on a thread (did you mean to start it instead?) (RU_INVOKE_RUN)</a></h3> <p> This method explicitly invokes <code>run()</code> on an object.&nbsp; In general, classes implement the <code>Runnable</code> interface because they are going to have their <code>run()</code> method invoked in a new thread, in which case <code>Thread.start()</code> is the right method to call.</p> <h3><a name="SC_START_IN_CTOR">SC: Constructor invokes Thread.start() (SC_START_IN_CTOR)</a></h3> <p> The constructor starts a thread. This is likely to be wrong if the class is ever extended/subclassed, since the thread will be started before the subclass constructor is started.</p> <h3><a name="SP_SPIN_ON_FIELD">SP: Method spins on field (SP_SPIN_ON_FIELD)</a></h3> <p> This method spins in a loop which reads a field.&nbsp; The compiler may legally hoist the read out of the loop, turning the code into an infinite loop.&nbsp; The class should be changed so it uses proper synchronization (including wait and notify calls).</p> <h3><a name="STCAL_INVOKE_ON_STATIC_CALENDAR_INSTANCE">STCAL: Call to static Calendar (STCAL_INVOKE_ON_STATIC_CALENDAR_INSTANCE)</a></h3> <p>Even though the JavaDoc does not contain a hint about it, Calendars are inherently unsafe for multihtreaded use. The detector has found a call to an instance of Calendar that has been obtained via a static field. This looks suspicous.</p> <p>For more information on this see <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6231579">Sun Bug #6231579</a> and <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6178997">Sun Bug #6178997</a>.</p> <h3><a name="STCAL_INVOKE_ON_STATIC_DATE_FORMAT_INSTANCE">STCAL: Call to static DateFormat (STCAL_INVOKE_ON_STATIC_DATE_FORMAT_INSTANCE)</a></h3> <p>As the JavaDoc states, DateFormats are inherently unsafe for multithreaded use. The detector has found a call to an instance of DateFormat that has been obtained via a static field. This looks suspicous.</p> <p>For more information on this see <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6231579">Sun Bug #6231579</a> and <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6178997">Sun Bug #6178997</a>.</p> <h3><a name="STCAL_STATIC_CALENDAR_INSTANCE">STCAL: Static Calendar field (STCAL_STATIC_CALENDAR_INSTANCE)</a></h3> <p>Even though the JavaDoc does not contain a hint about it, Calendars are inherently unsafe for multihtreaded use. Sharing a single instance across thread boundaries without proper synchronization will result in erratic behavior of the application. Under 1.4 problems seem to surface less often than under Java 5 where you will probably see random ArrayIndexOutOfBoundsExceptions or IndexOutOfBoundsExceptions in sun.util.calendar.BaseCalendar.getCalendarDateFromFixedDate().</p> <p>You may also experience serialization problems.</p> <p>Using an instance field is recommended.</p> <p>For more information on this see <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6231579">Sun Bug #6231579</a> and <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6178997">Sun Bug #6178997</a>.</p> <h3><a name="STCAL_STATIC_SIMPLE_DATE_FORMAT_INSTANCE">STCAL: Static DateFormat (STCAL_STATIC_SIMPLE_DATE_FORMAT_INSTANCE)</a></h3> <p>As the JavaDoc states, DateFormats are inherently unsafe for multithreaded use. Sharing a single instance across thread boundaries without proper synchronization will result in erratic behavior of the application.</p> <p>You may also experience serialization problems.</p> <p>Using an instance field is recommended.</p> <p>For more information on this see <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6231579">Sun Bug #6231579</a> and <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6178997">Sun Bug #6178997</a>.</p> <h3><a name="SWL_SLEEP_WITH_LOCK_HELD">SWL: Method calls Thread.sleep() with a lock held (SWL_SLEEP_WITH_LOCK_HELD)</a></h3> <p> This method calls Thread.sleep() with a lock held. This may result in very poor performance and scalability, or a deadlock, since other threads may be waiting to acquire the lock. It is a much better idea to call wait() on the lock, which releases the lock and allows other threads to run. </p> <h3><a name="TLW_TWO_LOCK_WAIT">TLW: Wait with two locks held (TLW_TWO_LOCK_WAIT)</a></h3> <p> Waiting on a monitor while two locks are held may cause deadlock. &nbsp; Performing a wait only releases the lock on the object being waited on, not any other locks. &nbsp; This not necessarily a bug, but is worth examining closely.</p> <h3><a name="UG_SYNC_SET_UNSYNC_GET">UG: Unsynchronized get method, synchronized set method (UG_SYNC_SET_UNSYNC_GET)</a></h3> <p> This class contains similarly-named get and set methods where the set method is synchronized and the get method is not.&nbsp; This may result in incorrect behavior at runtime, as callers of the get method will not necessarily see a consistent state for the object.&nbsp; The get method should be made synchronized.</p> <h3><a name="UL_UNRELEASED_LOCK">UL: Method does not release lock on all paths (UL_UNRELEASED_LOCK)</a></h3> <p> This method acquires a JSR-166 (<code>java.util.concurrent</code>) lock, but does not release it on all paths out of the method. In general, the correct idiom for using a JSR-166 lock is: </p> <pre> Lock l = ...; l.lock(); try { // do something } finally { l.unlock(); } </pre> <h3><a name="UL_UNRELEASED_LOCK_EXCEPTION_PATH">UL: Method does not release lock on all exception paths (UL_UNRELEASED_LOCK_EXCEPTION_PATH)</a></h3> <p> This method acquires a JSR-166 (<code>java.util.concurrent</code>) lock, but does not release it on all exception paths out of the method. In general, the correct idiom for using a JSR-166 lock is: </p> <pre> Lock l = ...; l.lock(); try { // do something } finally { l.unlock(); } </pre> <h3><a name="UW_UNCOND_WAIT">UW: Unconditional wait (UW_UNCOND_WAIT)</a></h3> <p> This method contains a call to <code>java.lang.Object.wait()</code> which is not guarded by conditional control flow.&nbsp; The code should verify that condition it intends to wait for is not already satisfied before calling wait; any previous notifications will be ignored. </p> <h3><a name="VO_VOLATILE_INCREMENT">VO: An increment to a volatile field isn't atomic (VO_VOLATILE_INCREMENT)</a></h3> <p>This code increments a volatile field. Increments of volatile fields aren't atomic. If more than one thread is incrementing the field at the same time, increments could be lost. </p> <h3><a name="VO_VOLATILE_REFERENCE_TO_ARRAY">VO: A volatile reference to an array doesn't treat the array elements as volatile (VO_VOLATILE_REFERENCE_TO_ARRAY)</a></h3> <p>This declares a volatile reference to an array, which might not be what you want. With a volatile reference to an array, reads and writes of the reference to the array are treated as volatile, but the array elements are non-volatile. To get volatile array elements, you will need to use one of the atomic array classes in java.util.concurrent (provided in Java 5.0).</p> <h3><a name="WL_USING_GETCLASS_RATHER_THAN_CLASS_LITERAL">WL: Synchronization on getClass rather than class literal (WL_USING_GETCLASS_RATHER_THAN_CLASS_LITERAL)</a></h3> <p> This instance method synchronizes on <code>this.getClass()</code>. If this class is subclassed, subclasses will synchronize on the class object for the subclass, which isn't likely what was intended. For example, consider this code from java.awt.Label:</p> <pre> private static final String base = "label"; private static int nameCounter = 0; String constructComponentName() { synchronized (getClass()) { return base + nameCounter++; } } </pre> <p>Subclasses of <code>Label</code> won't synchronize on the same subclass, giving rise to a datarace. Instead, this code should be synchronizing on <code>Label.class</code></p> <pre> private static final String base = "label"; private static int nameCounter = 0; String constructComponentName() { synchronized (Label.class) { return base + nameCounter++; } } </pre> <p>Bug pattern contributed by Jason Mehrens</p> <h3><a name="WS_WRITEOBJECT_SYNC">WS: Class's writeObject() method is synchronized but nothing else is (WS_WRITEOBJECT_SYNC)</a></h3> <p> This class has a <code>writeObject()</code> method which is synchronized; however, no other method of the class is synchronized.</p> <h3><a name="WA_AWAIT_NOT_IN_LOOP">Wa: Condition.await() not in loop (WA_AWAIT_NOT_IN_LOOP)</a></h3> <p> This method contains a call to <code>java.util.concurrent.await()</code> (or variants) which is not in a loop.&nbsp; If the object is used for multiple conditions, the condition the caller intended to wait for might not be the one that actually occurred.</p> <h3><a name="WA_NOT_IN_LOOP">Wa: Wait not in loop (WA_NOT_IN_LOOP)</a></h3> <p> This method contains a call to <code>java.lang.Object.wait()</code> which is not in a loop.&nbsp; If the monitor is used for multiple conditions, the condition the caller intended to wait for might not be the one that actually occurred.</p> <h3><a name="BX_BOXING_IMMEDIATELY_UNBOXED">Bx: Primitive value is boxed and then immediately unboxed (BX_BOXING_IMMEDIATELY_UNBOXED)</a></h3> <p>A primitive is boxed, and then immediately unboxed. This probably is due to a manual boxing in a place where an unboxed value is required, thus forcing the compiler to immediately undo the work of the boxing. </p> <h3><a name="BX_BOXING_IMMEDIATELY_UNBOXED_TO_PERFORM_COERCION">Bx: Primitive value is boxed then unboxed to perform primitive coercion (BX_BOXING_IMMEDIATELY_UNBOXED_TO_PERFORM_COERCION)</a></h3> <p>A primitive boxed value constructed and then immediately converted into a different primitive type (e.g., <code>new Double(d).intValue()</code>). Just perform direct primitive coercion (e.g., <code>(int) d</code>).</p> <h3><a name="BX_UNBOXING_IMMEDIATELY_REBOXED">Bx: Boxed value is unboxed and then immediately reboxed (BX_UNBOXING_IMMEDIATELY_REBOXED)</a></h3> <p>A boxed value is unboxed and then immediately reboxed. </p> <h3><a name="DM_BOXED_PRIMITIVE_FOR_PARSING">Bx: Boxing/unboxing to parse a primitive (DM_BOXED_PRIMITIVE_FOR_PARSING)</a></h3> <p>A boxed primitive is created from a String, just to extract the unboxed primitive value. It is more efficient to just call the static parseXXX method.</p> <h3><a name="DM_BOXED_PRIMITIVE_TOSTRING">Bx: Method allocates a boxed primitive just to call toString (DM_BOXED_PRIMITIVE_TOSTRING)</a></h3> <p>A boxed primitive is allocated just to call toString(). It is more effective to just use the static form of toString which takes the primitive value. So,</p> <table> <tr><th>Replace...</th><th>With this...</th></tr> <tr><td>new Integer(1).toString()</td><td>Integer.toString(1)</td></tr> <tr><td>new Long(1).toString()</td><td>Long.toString(1)</td></tr> <tr><td>new Float(1.0).toString()</td><td>Float.toString(1.0)</td></tr> <tr><td>new Double(1.0).toString()</td><td>Double.toString(1.0)</td></tr> <tr><td>new Byte(1).toString()</td><td>Byte.toString(1)</td></tr> <tr><td>new Short(1).toString()</td><td>Short.toString(1)</td></tr> <tr><td>new Boolean(true).toString()</td><td>Boolean.toString(true)</td></tr> </table> <h3><a name="DM_FP_NUMBER_CTOR">Bx: Method invokes inefficient floating-point Number constructor; use static valueOf instead (DM_FP_NUMBER_CTOR)</a></h3> <p> Using <code>new Double(double)</code> is guaranteed to always result in a new object whereas <code>Double.valueOf(double)</code> allows caching of values to be done by the compiler, class library, or JVM. Using of cached values avoids object allocation and the code will be faster. </p> <p> Unless the class must be compatible with JVMs predating Java 1.5, use either autoboxing or the <code>valueOf()</code> method when creating instances of <code>Double</code> and <code>Float</code>. </p> <h3><a name="DM_NUMBER_CTOR">Bx: Method invokes inefficient Number constructor; use static valueOf instead (DM_NUMBER_CTOR)</a></h3> <p> Using <code>new Integer(int)</code> is guaranteed to always result in a new object whereas <code>Integer.valueOf(int)</code> allows caching of values to be done by the compiler, class library, or JVM. Using of cached values avoids object allocation and the code will be faster. </p> <p> Values between -128 and 127 are guaranteed to have corresponding cached instances and using <code>valueOf</code> is approximately 3.5 times faster than using constructor. For values outside the constant range the performance of both styles is the same. </p> <p> Unless the class must be compatible with JVMs predating Java 1.5, use either autoboxing or the <code>valueOf()</code> method when creating instances of <code>Long</code>, <code>Integer</code>, <code>Short</code>, <code>Character</code>, and <code>Byte</code>. </p> <h3><a name="DMI_BLOCKING_METHODS_ON_URL">Dm: The equals and hashCode methods of URL are blocking (DMI_BLOCKING_METHODS_ON_URL)</a></h3> <p> The equals and hashCode method of URL perform domain name resolution, this can result in a big performance hit. See <a href="http://michaelscharf.blogspot.com/2006/11/javaneturlequals-and-hashcode-make.html">http://michaelscharf.blogspot.com/2006/11/javaneturlequals-and-hashcode-make.html</a> for more information. Consider using <code>java.net.URI</code> instead. </p> <h3><a name="DMI_COLLECTION_OF_URLS">Dm: Maps and sets of URLs can be performance hogs (DMI_COLLECTION_OF_URLS)</a></h3> <p> This method or field is or uses a Map or Set of URLs. Since both the equals and hashCode method of URL perform domain name resolution, this can result in a big performance hit. See <a href="http://michaelscharf.blogspot.com/2006/11/javaneturlequals-and-hashcode-make.html">http://michaelscharf.blogspot.com/2006/11/javaneturlequals-and-hashcode-make.html</a> for more information. Consider using <code>java.net.URI</code> instead. </p> <h3><a name="DM_BOOLEAN_CTOR">Dm: Method invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead (DM_BOOLEAN_CTOR)</a></h3> <p> Creating new instances of <code>java.lang.Boolean</code> wastes memory, since <code>Boolean</code> objects are immutable and there are only two useful values of this type.&nbsp; Use the <code>Boolean.valueOf()</code> method (or Java 1.5 autoboxing) to create <code>Boolean</code> objects instead.</p> <h3><a name="DM_GC">Dm: Explicit garbage collection; extremely dubious except in benchmarking code (DM_GC)</a></h3> <p> Code explicitly invokes garbage collection. Except for specific use in benchmarking, this is very dubious.</p> <p>In the past, situations where people have explicitly invoked the garbage collector in routines such as close or finalize methods has led to huge performance black holes. Garbage collection can be expensive. Any situation that forces hundreds or thousands of garbage collections will bring the machine to a crawl.</p> <h3><a name="DM_NEW_FOR_GETCLASS">Dm: Method allocates an object, only to get the class object (DM_NEW_FOR_GETCLASS)</a></h3> <p>This method allocates an object just to call getClass() on it, in order to retrieve the Class object for it. It is simpler to just access the .class property of the class.</p> <h3><a name="DM_NEXTINT_VIA_NEXTDOUBLE">Dm: Use the nextInt method of Random rather than nextDouble to generate a random integer (DM_NEXTINT_VIA_NEXTDOUBLE)</a></h3> <p>If <code>r</code> is a <code>java.util.Random</code>, you can generate a random number from <code>0</code> to <code>n-1</code> using <code>r.nextInt(n)</code>, rather than using <code>(int)(r.nextDouble() * n)</code>. </p> <p>The argument to nextInt must be positive. If, for example, you want to generate a random value from -99 to 0, use <code>-r.nextInt(100)</code>. </p> <h3><a name="DM_STRING_CTOR">Dm: Method invokes inefficient new String(String) constructor (DM_STRING_CTOR)</a></h3> <p> Using the <code>java.lang.String(String)</code> constructor wastes memory because the object so constructed will be functionally indistinguishable from the <code>String</code> passed as a parameter.&nbsp; Just use the argument <code>String</code> directly.</p> <h3><a name="DM_STRING_TOSTRING">Dm: Method invokes toString() method on a String (DM_STRING_TOSTRING)</a></h3> <p> Calling <code>String.toString()</code> is just a redundant operation. Just use the String.</p> <h3><a name="DM_STRING_VOID_CTOR">Dm: Method invokes inefficient new String() constructor (DM_STRING_VOID_CTOR)</a></h3> <p> Creating a new <code>java.lang.String</code> object using the no-argument constructor wastes memory because the object so created will be functionally indistinguishable from the empty string constant <code>""</code>.&nbsp; Java guarantees that identical string constants will be represented by the same <code>String</code> object.&nbsp; Therefore, you should just use the empty string constant directly.</p> <h3><a name="HSC_HUGE_SHARED_STRING_CONSTANT">HSC: Huge string constants is duplicated across multiple class files (HSC_HUGE_SHARED_STRING_CONSTANT)</a></h3> <p> A large String constant is duplicated across multiple class files. This is likely because a final field is initialized to a String constant, and the Java language mandates that all references to a final field from other classes be inlined into that classfile. See <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6447475">JDK bug 6447475</a> for a description of an occurrence of this bug in the JDK and how resolving it reduced the size of the JDK by 1 megabyte. </p> <h3><a name="ITA_INEFFICIENT_TO_ARRAY">ITA: Method uses toArray() with zero-length array argument (ITA_INEFFICIENT_TO_ARRAY)</a></h3> <p> This method uses the toArray() method of a collection derived class, and passes in a zero-length prototype array argument. It is more efficient to use <code>myCollection.toArray(new Foo[myCollection.size()])</code> If the array passed in is big enough to store all of the elements of the collection, then it is populated and returned directly. This avoids the need to create a second array (by reflection) to return as the result.</p> <h3><a name="SBSC_USE_STRINGBUFFER_CONCATENATION">SBSC: Method concatenates strings using + in a loop (SBSC_USE_STRINGBUFFER_CONCATENATION)</a></h3> <p> The method seems to be building a String using concatenation in a loop. In each iteration, the String is converted to a StringBuffer/StringBuilder, appended to, and converted back to a String. This can lead to a cost quadratic in the number of iterations, as the growing string is recopied in each iteration. </p> <p>Better performance can be obtained by using a StringBuffer (or StringBuilder in Java 1.5) explicitly.</p> <p> For example:</p> <pre> // This is bad String s = ""; for (int i = 0; i &lt; field.length; ++i) { s = s + field[i]; } // This is better StringBuffer buf = new StringBuffer(); for (int i = 0; i &lt; field.length; ++i) { buf.append(field[i]); } String s = buf.toString(); </pre> <h3><a name="SIC_INNER_SHOULD_BE_STATIC">SIC: Should be a static inner class (SIC_INNER_SHOULD_BE_STATIC)</a></h3> <p> This class is an inner class, but does not use its embedded reference to the object which created it.&nbsp; This reference makes the instances of the class larger, and may keep the reference to the creator object alive longer than necessary.&nbsp; If possible, the class should be made static. </p> <h3><a name="SIC_INNER_SHOULD_BE_STATIC_ANON">SIC: Could be refactored into a named static inner class (SIC_INNER_SHOULD_BE_STATIC_ANON)</a></h3> <p> This class is an inner class, but does not use its embedded reference to the object which created it.&nbsp; This reference makes the instances of the class larger, and may keep the reference to the creator object alive longer than necessary.&nbsp; If possible, the class should be made into a <em>static</em> inner class. Since anonymous inner classes cannot be marked as static, doing this will require refactoring the inner class so that it is a named inner class.</p> <h3><a name="SIC_INNER_SHOULD_BE_STATIC_NEEDS_THIS">SIC: Could be refactored into a static inner class (SIC_INNER_SHOULD_BE_STATIC_NEEDS_THIS)</a></h3> <p> This class is an inner class, but does not use its embedded reference to the object which created it except during construction of the inner object.&nbsp; This reference makes the instances of the class larger, and may keep the reference to the creator object alive longer than necessary.&nbsp; If possible, the class should be made into a <em>static</em> inner class. Since the reference to the outer object is required during construction of the inner instance, the inner class will need to be refactored so as to pass a reference to the outer instance to the constructor for the inner class.</p> <h3><a name="SS_SHOULD_BE_STATIC">SS: Unread field: should this field be static? (SS_SHOULD_BE_STATIC)</a></h3> <p> This class contains an instance final field that is initialized to a compile-time static value. Consider making the field static.</p> <h3><a name="UM_UNNECESSARY_MATH">UM: Method calls static Math class method on a constant value (UM_UNNECESSARY_MATH)</a></h3> <p> This method uses a static method from java.lang.Math on a constant value. This method's result in this case, can be determined statically, and is faster and sometimes more accurate to just use the constant. Methods detected are: </p> <table> <tr> <th>Method</th> <th>Parameter</th> </tr> <tr> <td>abs</td> <td>-any-</td> </tr> <tr> <td>acos</td> <td>0.0 or 1.0</td> </tr> <tr> <td>asin</td> <td>0.0 or 1.0</td> </tr> <tr> <td>atan</td> <td>0.0 or 1.0</td> </tr> <tr> <td>atan2</td> <td>0.0</td> </tr> <tr> <td>cbrt</td> <td>0.0 or 1.0</td> </tr> <tr> <td>ceil</td> <td>-any-</td> </tr> <tr> <td>cos</td> <td>0.0</td> </tr> <tr> <td>cosh</td> <td>0.0</td> </tr> <tr> <td>exp</td> <td>0.0 or 1.0</td> </tr> <tr> <td>expm1</td> <td>0.0</td> </tr> <tr> <td>floor</td> <td>-any-</td> </tr> <tr> <td>log</td> <td>0.0 or 1.0</td> </tr> <tr> <td>log10</td> <td>0.0 or 1.0</td> </tr> <tr> <td>rint</td> <td>-any-</td> </tr> <tr> <td>round</td> <td>-any-</td> </tr> <tr> <td>sin</td> <td>0.0</td> </tr> <tr> <td>sinh</td> <td>0.0</td> </tr> <tr> <td>sqrt</td> <td>0.0 or 1.0</td> </tr> <tr> <td>tan</td> <td>0.0</td> </tr> <tr> <td>tanh</td> <td>0.0</td> </tr> <tr> <td>toDegrees</td> <td>0.0 or 1.0</td> </tr> <tr> <td>toRadians</td> <td>0.0</td> </tr> </table> <h3><a name="UPM_UNCALLED_PRIVATE_METHOD">UPM: Private method is never called (UPM_UNCALLED_PRIVATE_METHOD)</a></h3> <p> This private method is never called. Although it is possible that the method will be invoked through reflection, it is more likely that the method is never used, and should be removed. </p> <h3><a name="URF_UNREAD_FIELD">UrF: Unread field (URF_UNREAD_FIELD)</a></h3> <p> This field is never read.&nbsp; Consider removing it from the class.</p> <h3><a name="UUF_UNUSED_FIELD">UuF: Unused field (UUF_UNUSED_FIELD)</a></h3> <p> This field is never used.&nbsp; Consider removing it from the class.</p> <h3><a name="WMI_WRONG_MAP_ITERATOR">WMI: Inefficient use of keySet iterator instead of entrySet iterator (WMI_WRONG_MAP_ITERATOR)</a></h3> <p> This method accesses the value of a Map entry, using a key that was retrieved from a keySet iterator. It is more efficient to use an iterator on the entrySet of the map, to avoid the Map.get(key) lookup.</p> <h3><a name="DMI_CONSTANT_DB_PASSWORD">Dm: Hardcoded constant database password (DMI_CONSTANT_DB_PASSWORD)</a></h3> <p>This code creates a database connect using a hardcoded, constant password. Anyone with access to either the source code or the compiled code can easily learn the password. </p> <h3><a name="DMI_EMPTY_DB_PASSWORD">Dm: Empty database password (DMI_EMPTY_DB_PASSWORD)</a></h3> <p>This code creates a database connect using a blank or empty password. This indicates that the database is not protected by a password. </p> <h3><a name="HRS_REQUEST_PARAMETER_TO_COOKIE">HRS: HTTP cookie formed from untrusted input (HRS_REQUEST_PARAMETER_TO_COOKIE)</a></h3> <p>This code constructs an HTTP Cookie using an untrusted HTTP parameter. If this cookie is added to an HTTP response, it will allow a HTTP response splitting vulnerability. See <a href="http://en.wikipedia.org/wiki/HTTP_response_splitting">http://en.wikipedia.org/wiki/HTTP_response_splitting</a> for more information.</p> <p>FindBugs looks only for the most blatant, obvious cases of HTTP response splitting. If FindBugs found <em>any</em>, you <em>almost certainly</em> have more vulnerabilities that FindBugs doesn't report. If you are concerned about HTTP response splitting, you should seriously consider using a commercial static analysis or pen-testing tool. </p> <h3><a name="HRS_REQUEST_PARAMETER_TO_HTTP_HEADER">HRS: HTTP Response splitting vulnerability (HRS_REQUEST_PARAMETER_TO_HTTP_HEADER)</a></h3> <p>This code directly writes an HTTP parameter to an HTTP header, which allows for a HTTP response splitting vulnerability. See <a href="http://en.wikipedia.org/wiki/HTTP_response_splitting">http://en.wikipedia.org/wiki/HTTP_response_splitting</a> for more information.</p> <p>FindBugs looks only for the most blatant, obvious cases of HTTP response splitting. If FindBugs found <em>any</em>, you <em>almost certainly</em> have more vulnerabilities that FindBugs doesn't report. If you are concerned about HTTP response splitting, you should seriously consider using a commercial static analysis or pen-testing tool. </p> <h3><a name="PT_ABSOLUTE_PATH_TRAVERSAL">PT: Absolute path traversal in servlet (PT_ABSOLUTE_PATH_TRAVERSAL)</a></h3> <p>The software uses an HTTP request parameter to construct a pathname that should be within a restricted directory, but it does not properly neutralize absolute path sequences such as "/abs/path" that can resolve to a location that is outside of that directory. See <a href="http://cwe.mitre.org/data/definitions/36.html">http://cwe.mitre.org/data/definitions/36.html</a> for more information.</p> <p>FindBugs looks only for the most blatant, obvious cases of absolute path traversal. If FindBugs found <em>any</em>, you <em>almost certainly</em> have more vulnerabilities that FindBugs doesn't report. If you are concerned about absolute path traversal, you should seriously consider using a commercial static analysis or pen-testing tool. </p> <h3><a name="PT_RELATIVE_PATH_TRAVERSAL">PT: Relative path traversal in servlet (PT_RELATIVE_PATH_TRAVERSAL)</a></h3> <p>The software uses an HTTP request parameter to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as ".." that can resolve to a location that is outside of that directory. See <a href="http://cwe.mitre.org/data/definitions/23.html">http://cwe.mitre.org/data/definitions/23.html</a> for more information.</p> <p>FindBugs looks only for the most blatant, obvious cases of relative path traversal. If FindBugs found <em>any</em>, you <em>almost certainly</em> have more vulnerabilities that FindBugs doesn't report. If you are concerned about relative path traversal, you should seriously consider using a commercial static analysis or pen-testing tool. </p> <h3><a name="SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE">SQL: Nonconstant string passed to execute method on an SQL statement (SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE)</a></h3> <p>The method invokes the execute method on an SQL statement with a String that seems to be dynamically generated. Consider using a prepared statement instead. It is more efficient and less vulnerable to SQL injection attacks. </p> <h3><a name="SQL_PREPARED_STATEMENT_GENERATED_FROM_NONCONSTANT_STRING">SQL: A prepared statement is generated from a nonconstant String (SQL_PREPARED_STATEMENT_GENERATED_FROM_NONCONSTANT_STRING)</a></h3> <p>The code creates an SQL prepared statement from a nonconstant String. If unchecked, tainted data from a user is used in building this String, SQL injection could be used to make the prepared statement do something unexpected and undesirable. </p> <h3><a name="XSS_REQUEST_PARAMETER_TO_JSP_WRITER">XSS: JSP reflected cross site scripting vulnerability (XSS_REQUEST_PARAMETER_TO_JSP_WRITER)</a></h3> <p>This code directly writes an HTTP parameter to JSP output, which allows for a cross site scripting vulnerability. See <a href="http://en.wikipedia.org/wiki/Cross-site_scripting">http://en.wikipedia.org/wiki/Cross-site_scripting</a> for more information.</p> <p>FindBugs looks only for the most blatant, obvious cases of cross site scripting. If FindBugs found <em>any</em>, you <em>almost certainly</em> have more cross site scripting vulnerabilities that FindBugs doesn't report. If you are concerned about cross site scripting, you should seriously consider using a commercial static analysis or pen-testing tool. </p> <h3><a name="XSS_REQUEST_PARAMETER_TO_SEND_ERROR">XSS: Servlet reflected cross site scripting vulnerability in error page (XSS_REQUEST_PARAMETER_TO_SEND_ERROR)</a></h3> <p>This code directly writes an HTTP parameter to a Server error page (using HttpServletResponse.sendError). Echoing this untrusted input allows for a reflected cross site scripting vulnerability. See <a href="http://en.wikipedia.org/wiki/Cross-site_scripting">http://en.wikipedia.org/wiki/Cross-site_scripting</a> for more information.</p> <p>FindBugs looks only for the most blatant, obvious cases of cross site scripting. If FindBugs found <em>any</em>, you <em>almost certainly</em> have more cross site scripting vulnerabilities that FindBugs doesn't report. If you are concerned about cross site scripting, you should seriously consider using a commercial static analysis or pen-testing tool. </p> <h3><a name="XSS_REQUEST_PARAMETER_TO_SERVLET_WRITER">XSS: Servlet reflected cross site scripting vulnerability (XSS_REQUEST_PARAMETER_TO_SERVLET_WRITER)</a></h3> <p>This code directly writes an HTTP parameter to Servlet output, which allows for a reflected cross site scripting vulnerability. See <a href="http://en.wikipedia.org/wiki/Cross-site_scripting">http://en.wikipedia.org/wiki/Cross-site_scripting</a> for more information.</p> <p>FindBugs looks only for the most blatant, obvious cases of cross site scripting. If FindBugs found <em>any</em>, you <em>almost certainly</em> have more cross site scripting vulnerabilities that FindBugs doesn't report. If you are concerned about cross site scripting, you should seriously consider using a commercial static analysis or pen-testing tool. </p> <h3><a name="BC_BAD_CAST_TO_ABSTRACT_COLLECTION">BC: Questionable cast to abstract collection (BC_BAD_CAST_TO_ABSTRACT_COLLECTION)</a></h3> <p> This code casts a Collection to an abstract collection (such as <code>List</code>, <code>Set</code>, or <code>Map</code>). Ensure that you are guaranteed that the object is of the type you are casting to. If all you need is to be able to iterate through a collection, you don't need to cast it to a Set or List. </p> <h3><a name="BC_BAD_CAST_TO_CONCRETE_COLLECTION">BC: Questionable cast to concrete collection (BC_BAD_CAST_TO_CONCRETE_COLLECTION)</a></h3> <p> This code casts an abstract collection (such as a Collection, List, or Set) to a specific concrete implementation (such as an ArrayList or HashSet). This might not be correct, and it may make your code fragile, since it makes it harder to switch to other concrete implementations at a future point. Unless you have a particular reason to do so, just use the abstract collection class. </p> <h3><a name="BC_UNCONFIRMED_CAST">BC: Unchecked/unconfirmed cast (BC_UNCONFIRMED_CAST)</a></h3> <p> This cast is unchecked, and not all instances of the type casted from can be cast to the type it is being cast to. Check that your program logic ensures that this cast will not fail. </p> <h3><a name="BC_UNCONFIRMED_CAST_OF_RETURN_VALUE">BC: Unchecked/unconfirmed cast of return value from method (BC_UNCONFIRMED_CAST_OF_RETURN_VALUE)</a></h3> <p> This code performs an unchecked cast of the return value of a method. The code might be calling the method in such a way that the cast is guaranteed to be safe, but FindBugs is unable to verify that the cast is safe. Check that your program logic ensures that this cast will not fail. </p> <h3><a name="BC_VACUOUS_INSTANCEOF">BC: instanceof will always return true (BC_VACUOUS_INSTANCEOF)</a></h3> <p> This instanceof test will always return true (unless the value being tested is null). Although this is safe, make sure it isn't an indication of some misunderstanding or some other logic error. If you really want to test the value for being null, perhaps it would be clearer to do better to do a null test rather than an instanceof test. </p> <h3><a name="ICAST_QUESTIONABLE_UNSIGNED_RIGHT_SHIFT">BSHIFT: Unsigned right shift cast to short/byte (ICAST_QUESTIONABLE_UNSIGNED_RIGHT_SHIFT)</a></h3> <p> The code performs an unsigned right shift, whose result is then cast to a short or byte, which discards the upper bits of the result. Since the upper bits are discarded, there may be no difference between a signed and unsigned right shift (depending upon the size of the shift). </p> <h3><a name="CI_CONFUSED_INHERITANCE">CI: Class is final but declares protected field (CI_CONFUSED_INHERITANCE)</a></h3> <p> This class is declared to be final, but declares fields to be protected. Since the class is final, it can not be derived from, and the use of protected is confusing. The access modifier for the field should be changed to private or public to represent the true use for the field. </p> <h3><a name="DB_DUPLICATE_BRANCHES">DB: Method uses the same code for two branches (DB_DUPLICATE_BRANCHES)</a></h3> <p> This method uses the same code to implement two branches of a conditional branch. Check to ensure that this isn't a coding mistake. </p> <h3><a name="DB_DUPLICATE_SWITCH_CLAUSES">DB: Method uses the same code for two switch clauses (DB_DUPLICATE_SWITCH_CLAUSES)</a></h3> <p> This method uses the same code to implement two clauses of a switch statement. This could be a case of duplicate code, but it might also indicate a coding mistake. </p> <h3><a name="DLS_DEAD_LOCAL_STORE">DLS: Dead store to local variable (DLS_DEAD_LOCAL_STORE)</a></h3> <p> This instruction assigns a value to a local variable, but the value is not read or used in any subsequent instruction. Often, this indicates an error, because the value computed is never used. </p> <p> Note that Sun's javac compiler often generates dead stores for final local variables. Because FindBugs is a bytecode-based tool, there is no easy way to eliminate these false positives. </p> <h3><a name="DLS_DEAD_LOCAL_STORE_IN_RETURN">DLS: Useless assignment in return statement (DLS_DEAD_LOCAL_STORE_IN_RETURN)</a></h3> <p> This statement assigns to a local variable in a return statement. This assignment has effect. Please verify that this statement does the right thing. </p> <h3><a name="DLS_DEAD_LOCAL_STORE_OF_NULL">DLS: Dead store of null to local variable (DLS_DEAD_LOCAL_STORE_OF_NULL)</a></h3> <p>The code stores null into a local variable, and the stored value is not read. This store may have been introduced to assist the garbage collector, but as of Java SE 6.0, this is no longer needed or useful. </p> <h3><a name="DLS_DEAD_LOCAL_STORE_SHADOWS_FIELD">DLS: Dead store to local variable that shadows field (DLS_DEAD_LOCAL_STORE_SHADOWS_FIELD)</a></h3> <p> This instruction assigns a value to a local variable, but the value is not read or used in any subsequent instruction. Often, this indicates an error, because the value computed is never used. There is a field with the same name as the local variable. Did you mean to assign to that variable instead? </p> <h3><a name="DMI_HARDCODED_ABSOLUTE_FILENAME">DMI: Code contains a hard coded reference to an absolute pathname (DMI_HARDCODED_ABSOLUTE_FILENAME)</a></h3> <p>This code constructs a File object using a hard coded to an absolute pathname (e.g., <code>new File("/home/dannyc/workspace/j2ee/src/share/com/sun/enterprise/deployment");</code> </p> <h3><a name="DMI_NONSERIALIZABLE_OBJECT_WRITTEN">DMI: Non serializable object written to ObjectOutput (DMI_NONSERIALIZABLE_OBJECT_WRITTEN)</a></h3> <p> This code seems to be passing a non-serializable object to the ObjectOutput.writeObject method. If the object is, indeed, non-serializable, an error will result. </p> <h3><a name="DMI_USELESS_SUBSTRING">DMI: Invocation of substring(0), which returns the original value (DMI_USELESS_SUBSTRING)</a></h3> <p> This code invokes substring(0) on a String, which returns the original value. </p> <h3><a name="DMI_THREAD_PASSED_WHERE_RUNNABLE_EXPECTED">Dm: Thread passed where Runnable expected (DMI_THREAD_PASSED_WHERE_RUNNABLE_EXPECTED)</a></h3> <p> A Thread object is passed as a parameter to a method where a Runnable is expected. This is rather unusual, and may indicate a logic error or cause unexpected behavior. </p> <h3><a name="EQ_DOESNT_OVERRIDE_EQUALS">Eq: Class doesn't override equals in superclass (EQ_DOESNT_OVERRIDE_EQUALS)</a></h3> <p> This class extends a class that defines an equals method and adds fields, but doesn't define an equals method itself. Thus, equality on instances of this class will ignore the identity of the subclass and the added fields. Be sure this is what is intended, and that you don't need to override the equals method. Even if you don't need to override the equals method, consider overriding it anyway to document the fact that the equals method for the subclass just return the result of invoking super.equals(o). </p> <h3><a name="EQ_UNUSUAL">Eq: Unusual equals method (EQ_UNUSUAL)</a></h3> <p> This class doesn't do any of the patterns we recognize for checking that the type of the argument is compatible with the type of the <code>this</code> object. There might not be anything wrong with this code, but it is worth reviewing. </p> <h3><a name="FE_FLOATING_POINT_EQUALITY">FE: Test for floating point equality (FE_FLOATING_POINT_EQUALITY)</a></h3> <p> This operation compares two floating point values for equality. Because floating point calculations may involve rounding, calculated float and double values may not be accurate. For values that must be precise, such as monetary values, consider using a fixed-precision type such as BigDecimal. For values that need not be precise, consider comparing for equality within some range, for example: <code>if ( Math.abs(x - y) &lt; .0000001 )</code>. See the Java Language Specification, section 4.2.4. </p> <h3><a name="VA_FORMAT_STRING_BAD_CONVERSION_TO_BOOLEAN">FS: Non-Boolean argument formatted using %b format specifier (VA_FORMAT_STRING_BAD_CONVERSION_TO_BOOLEAN)</a></h3> <p> An argument not of type Boolean is being formatted with a %b format specifier. This won't throw an exception; instead, it will print true for any nonnull value, and false for null. This feature of format strings is strange, and may not be what you intended. </p> <h3><a name="IA_AMBIGUOUS_INVOCATION_OF_INHERITED_OR_OUTER_METHOD">IA: Potentially ambiguous invocation of either an inherited or outer method (IA_AMBIGUOUS_INVOCATION_OF_INHERITED_OR_OUTER_METHOD)</a></h3> <p> An inner class is invoking a method that could be resolved to either a inherited method or a method defined in an outer class. For example, you invoke <code>foo(17)</code>, which is defined in both a superclass and in an outer method. By the Java semantics, it will be resolved to invoke the inherited method, but this may not be want you intend. </p> <p>If you really intend to invoke the inherited method, invoke it by invoking the method on super (e.g., invoke super.foo(17)), and thus it will be clear to other readers of your code and to FindBugs that you want to invoke the inherited method, not the method in the outer class. </p> <p>If you call <code>this.foo(17)</code>, then the inherited method will be invoked. However, since FindBugs only looks at classfiles, it can't tell the difference between an invocation of <code>this.foo(17)</code> and <code>foo(17)</code>, it will still complain about a potential ambiguous invocation. </p> <h3><a name="IC_INIT_CIRCULARITY">IC: Initialization circularity (IC_INIT_CIRCULARITY)</a></h3> <p> A circularity was detected in the static initializers of the two classes referenced by the bug instance.&nbsp; Many kinds of unexpected behavior may arise from such circularity.</p> <h3><a name="ICAST_IDIV_CAST_TO_DOUBLE">ICAST: Integral division result cast to double or float (ICAST_IDIV_CAST_TO_DOUBLE)</a></h3> <p> This code casts the result of an integral division (e.g., int or long division) operation to double or float. Doing division on integers truncates the result to the integer value closest to zero. The fact that the result was cast to double suggests that this precision should have been retained. What was probably meant was to cast one or both of the operands to double <em>before</em> performing the division. Here is an example: </p> <blockquote> <pre> int x = 2; int y = 5; // Wrong: yields result 0.0 double value1 = x / y; // Right: yields result 0.4 double value2 = x / (double) y; </pre> </blockquote> <h3><a name="ICAST_INTEGER_MULTIPLY_CAST_TO_LONG">ICAST: Result of integer multiplication cast to long (ICAST_INTEGER_MULTIPLY_CAST_TO_LONG)</a></h3> <p> This code performs integer multiply and then converts the result to a long, as in:</p> <pre> long convertDaysToMilliseconds(int days) { return 1000*3600*24*days; } </pre> <p> If the multiplication is done using long arithmetic, you can avoid the possibility that the result will overflow. For example, you could fix the above code to:</p> <pre> long convertDaysToMilliseconds(int days) { return 1000L*3600*24*days; } </pre> or <pre> static final long MILLISECONDS_PER_DAY = 24L*3600*1000; long convertDaysToMilliseconds(int days) { return days * MILLISECONDS_PER_DAY; } </pre> <h3><a name="IM_AVERAGE_COMPUTATION_COULD_OVERFLOW">IM: Computation of average could overflow (IM_AVERAGE_COMPUTATION_COULD_OVERFLOW)</a></h3> <p>The code computes the average of two integers using either division or signed right shift, and then uses the result as the index of an array. If the values being averaged are very large, this can overflow (resulting in the computation of a negative average). Assuming that the result is intended to be nonnegative, you can use an unsigned right shift instead. In other words, rather that using <code>(low+high)/2</code>, use <code>(low+high) &gt;&gt;&gt; 1</code> </p> <p>This bug exists in many earlier implementations of binary search and merge sort. Martin Buchholz <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6412541">found and fixed it</a> in the JDK libraries, and Joshua Bloch <a href="http://googleresearch.blogspot.com/2006/06/extra-extra-read-all-about-it-nearly.html">widely publicized the bug pattern</a>. </p> <h3><a name="IM_BAD_CHECK_FOR_ODD">IM: Check for oddness that won't work for negative numbers (IM_BAD_CHECK_FOR_ODD)</a></h3> <p> The code uses x % 2 == 1 to check to see if a value is odd, but this won't work for negative numbers (e.g., (-5) % 2 == -1). If this code is intending to check for oddness, consider using x &amp; 1 == 1, or x % 2 != 0. </p> <h3><a name="INT_BAD_REM_BY_1">INT: Integer remainder modulo 1 (INT_BAD_REM_BY_1)</a></h3> <p> Any expression (exp % 1) is guaranteed to always return zero. Did you mean (exp &amp; 1) or (exp % 2) instead? </p> <h3><a name="INT_VACUOUS_BIT_OPERATION">INT: Vacuous bit mask operation on integer value (INT_VACUOUS_BIT_OPERATION)</a></h3> <p> This is an integer bit operation (and, or, or exclusive or) that doesn't do any useful work (e.g., <code>v & 0xffffffff</code>). </p> <h3><a name="INT_VACUOUS_COMPARISON">INT: Vacuous comparison of integer value (INT_VACUOUS_COMPARISON)</a></h3> <p> There is an integer comparison that always returns the same value (e.g., x &lt;= Integer.MAX_VALUE). </p> <h3><a name="MTIA_SUSPECT_SERVLET_INSTANCE_FIELD">MTIA: Class extends Servlet class and uses instance variables (MTIA_SUSPECT_SERVLET_INSTANCE_FIELD)</a></h3> <p> This class extends from a Servlet class, and uses an instance member variable. Since only one instance of a Servlet class is created by the J2EE framework, and used in a multithreaded way, this paradigm is highly discouraged and most likely problematic. Consider only using method local variables. </p> <h3><a name="MTIA_SUSPECT_STRUTS_INSTANCE_FIELD">MTIA: Class extends Struts Action class and uses instance variables (MTIA_SUSPECT_STRUTS_INSTANCE_FIELD)</a></h3> <p> This class extends from a Struts Action class, and uses an instance member variable. Since only one instance of a struts Action class is created by the Struts framework, and used in a multithreaded way, this paradigm is highly discouraged and most likely problematic. Consider only using method local variables. Only instance fields that are written outside of a monitor are reported. </p> <h3><a name="NP_DEREFERENCE_OF_READLINE_VALUE">NP: Dereference of the result of readLine() without nullcheck (NP_DEREFERENCE_OF_READLINE_VALUE)</a></h3> <p> The result of invoking readLine() is dereferenced without checking to see if the result is null. If there are no more lines of text to read, readLine() will return null and dereferencing that will generate a null pointer exception. </p> <h3><a name="NP_IMMEDIATE_DEREFERENCE_OF_READLINE">NP: Immediate dereference of the result of readLine() (NP_IMMEDIATE_DEREFERENCE_OF_READLINE)</a></h3> <p> The result of invoking readLine() is immediately dereferenced. If there are no more lines of text to read, readLine() will return null and dereferencing that will generate a null pointer exception. </p> <h3><a name="NP_LOAD_OF_KNOWN_NULL_VALUE">NP: Load of known null value (NP_LOAD_OF_KNOWN_NULL_VALUE)</a></h3> <p> The variable referenced at this point is known to be null due to an earlier check against null. Although this is valid, it might be a mistake (perhaps you intended to refer to a different variable, or perhaps the earlier check to see if the variable is null should have been a check to see if it was nonnull). </p> <h3><a name="NP_METHOD_PARAMETER_TIGHTENS_ANNOTATION">NP: Method tightens nullness annotation on parameter (NP_METHOD_PARAMETER_TIGHTENS_ANNOTATION)</a></h3> <p> A method should always implement the contract of a method it overrides. Thus, if a method takes a parameter that is marked as @Nullable, you shouldn't override that method in a subclass with a method where that parameter is @Nonnull. Doing so violates the contract that the method should handle a null parameter. </p> <h3><a name="NP_METHOD_RETURN_RELAXING_ANNOTATION">NP: Method relaxes nullness annotation on return value (NP_METHOD_RETURN_RELAXING_ANNOTATION)</a></h3> <p> A method should always implement the contract of a method it overrides. Thus, if a method takes is annotated as returning a @Nonnull value, you shouldn't override that method in a subclass with a method annotated as returning a @Nullable or @CheckForNull value. Doing so violates the contract that the method shouldn't return null. </p> <h3><a name="NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE">NP: Possible null pointer dereference due to return value of called method (NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE)</a></h3> <p> The return value from a method is dereferenced without a null check, and the return value of that method is one that should generally be checked for null. This may lead to a <code>NullPointerException</code> when the code is executed. </p> <h3><a name="NP_NULL_ON_SOME_PATH_MIGHT_BE_INFEASIBLE">NP: Possible null pointer dereference on branch that might be infeasible (NP_NULL_ON_SOME_PATH_MIGHT_BE_INFEASIBLE)</a></h3> <p> There is a branch of statement that, <em>if executed,</em> guarantees that a null value will be dereferenced, which would generate a <code>NullPointerException</code> when the code is executed. Of course, the problem might be that the branch or statement is infeasible and that the null pointer exception can't ever be executed; deciding that is beyond the ability of FindBugs. Due to the fact that this value had been previously tested for nullness, this is a definite possibility. </p> <h3><a name="NP_PARAMETER_MUST_BE_NONNULL_BUT_MARKED_AS_NULLABLE">NP: Parameter must be nonnull but is marked as nullable (NP_PARAMETER_MUST_BE_NONNULL_BUT_MARKED_AS_NULLABLE)</a></h3> <p> This parameter is always used in a way that requires it to be nonnull, but the parameter is explicitly annotated as being Nullable. Either the use of the parameter or the annotation is wrong. </p> <h3><a name="NP_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD">NP: Read of unwritten public or protected field (NP_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD)</a></h3> <p> The program is dereferencing a public or protected field that does not seem to ever have a non-null value written to it. Unless the field is initialized via some mechanism not seen by the analysis, dereferencing this value will generate a null pointer exception. </p> <h3><a name="NS_DANGEROUS_NON_SHORT_CIRCUIT">NS: Potentially dangerous use of non-short-circuit logic (NS_DANGEROUS_NON_SHORT_CIRCUIT)</a></h3> <p> This code seems to be using non-short-circuit logic (e.g., &amp; or |) rather than short-circuit logic (&amp;&amp; or ||). In addition, it seem possible that, depending on the value of the left hand side, you might not want to evaluate the right hand side (because it would have side effects, could cause an exception or could be expensive.</p> <p> Non-short-circuit logic causes both sides of the expression to be evaluated even when the result can be inferred from knowing the left-hand side. This can be less efficient and can result in errors if the left-hand side guards cases when evaluating the right-hand side can generate an error. </p> <p>See <a href="http://java.sun.com/docs/books/jls/third_edition/html/expressions.html#15.22.2">the Java Language Specification</a> for details </p> <h3><a name="NS_NON_SHORT_CIRCUIT">NS: Questionable use of non-short-circuit logic (NS_NON_SHORT_CIRCUIT)</a></h3> <p> This code seems to be using non-short-circuit logic (e.g., &amp; or |) rather than short-circuit logic (&amp;&amp; or ||). Non-short-circuit logic causes both sides of the expression to be evaluated even when the result can be inferred from knowing the left-hand side. This can be less efficient and can result in errors if the left-hand side guards cases when evaluating the right-hand side can generate an error. <p>See <a href="http://java.sun.com/docs/books/jls/third_edition/html/expressions.html#15.22.2">the Java Language Specification</a> for details </p> <h3><a name="PZLA_PREFER_ZERO_LENGTH_ARRAYS">PZLA: Consider returning a zero length array rather than null (PZLA_PREFER_ZERO_LENGTH_ARRAYS)</a></h3> <p> It is often a better design to return a length zero array rather than a null reference to indicate that there are no results (i.e., an empty list of results). This way, no explicit check for null is needed by clients of the method.</p> <p>On the other hand, using null to indicate "there is no answer to this question" is probably appropriate. For example, <code>File.listFiles()</code> returns an empty list if given a directory containing no files, and returns null if the file is not a directory.</p> <h3><a name="QF_QUESTIONABLE_FOR_LOOP">QF: Complicated, subtle or wrong increment in for-loop (QF_QUESTIONABLE_FOR_LOOP)</a></h3> <p>Are you sure this for loop is incrementing the correct variable? It appears that another variable is being initialized and checked by the for loop. </p> <h3><a name="RCN_REDUNDANT_COMPARISON_OF_NULL_AND_NONNULL_VALUE">RCN: Redundant comparison of non-null value to null (RCN_REDUNDANT_COMPARISON_OF_NULL_AND_NONNULL_VALUE)</a></h3> <p> This method contains a reference known to be non-null with another reference known to be null.</p> <h3><a name="RCN_REDUNDANT_COMPARISON_TWO_NULL_VALUES">RCN: Redundant comparison of two null values (RCN_REDUNDANT_COMPARISON_TWO_NULL_VALUES)</a></h3> <p> This method contains a redundant comparison of two references known to both be definitely null.</p> <h3><a name="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE">RCN: Redundant nullcheck of value known to be non-null (RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE)</a></h3> <p> This method contains a redundant check of a known non-null value against the constant null.</p> <h3><a name="RCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE">RCN: Redundant nullcheck of value known to be null (RCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE)</a></h3> <p> This method contains a redundant check of a known null value against the constant null.</p> <h3><a name="REC_CATCH_EXCEPTION">REC: Exception is caught when Exception is not thrown (REC_CATCH_EXCEPTION)</a></h3> <p> This method uses a try-catch block that catches Exception objects, but Exception is not thrown within the try block, and RuntimeException is not explicitly caught. It is a common bug pattern to say try { ... } catch (Exception e) { something } as a shorthand for catching a number of types of exception each of whose catch blocks is identical, but this construct also accidentally catches RuntimeException as well, masking potential bugs. </p> <p>A better approach is to either explicitly catch the specific exceptions that are thrown, or to explicitly catch RuntimeException exception, rethrow it, and then catch all non-Runtime Exceptions, as shown below:</p> <pre> try { ... } catch (RuntimeException e) { throw e; } catch (Exception e) { ... deal with all non-runtime exceptions ... }</pre> <h3><a name="RI_REDUNDANT_INTERFACES">RI: Class implements same interface as superclass (RI_REDUNDANT_INTERFACES)</a></h3> <p> This class declares that it implements an interface that is also implemented by a superclass. This is redundant because once a superclass implements an interface, all subclasses by default also implement this interface. It may point out that the inheritance hierarchy has changed since this class was created, and consideration should be given to the ownership of the interface's implementation. </p> <h3><a name="RV_CHECK_FOR_POSITIVE_INDEXOF">RV: Method checks to see if result of String.indexOf is positive (RV_CHECK_FOR_POSITIVE_INDEXOF)</a></h3> <p> The method invokes String.indexOf and checks to see if the result is positive or non-positive. It is much more typical to check to see if the result is negative or non-negative. It is positive only if the substring checked for occurs at some place other than at the beginning of the String.</p> <h3><a name="RV_DONT_JUST_NULL_CHECK_READLINE">RV: Method discards result of readLine after checking if it is nonnull (RV_DONT_JUST_NULL_CHECK_READLINE)</a></h3> <p> The value returned by readLine is discarded after checking to see if the return value is non-null. In almost all situations, if the result is non-null, you will want to use that non-null value. Calling readLine again will give you a different line.</p> <h3><a name="RV_REM_OF_HASHCODE">RV: Remainder of hashCode could be negative (RV_REM_OF_HASHCODE)</a></h3> <p> This code computes a hashCode, and then computes the remainder of that value modulo another value. Since the hashCode can be negative, the result of the remainder operation can also be negative. </p> <p> Assuming you want to ensure that the result of your computation is nonnegative, you may need to change your code. If you know the divisor is a power of 2, you can use a bitwise and operator instead (i.e., instead of using <code>x.hashCode()%n</code>, use <code>x.hashCode()&amp;(n-1)</code>. This is probably faster than computing the remainder as well. If you don't know that the divisor is a power of 2, take the absolute value of the result of the remainder operation (i.e., use <code>Math.abs(x.hashCode()%n)</code> </p> <h3><a name="RV_REM_OF_RANDOM_INT">RV: Remainder of 32-bit signed random integer (RV_REM_OF_RANDOM_INT)</a></h3> <p> This code generates a random signed integer and then computes the remainder of that value modulo another value. Since the random number can be negative, the result of the remainder operation can also be negative. Be sure this is intended, and strongly consider using the Random.nextInt(int) method instead. </p> <h3><a name="RV_RETURN_VALUE_IGNORED_INFERRED">RV: Method ignores return value, is this OK? (RV_RETURN_VALUE_IGNORED_INFERRED)</a></h3> <p>This code calls a method and ignores the return value. The return value is the same type as the type the method is invoked on, and from our analysis it looks like the return value might be important (e.g., like ignoring the return value of <code>String.toLowerCase()</code>). </p> <p>We are guessing that ignoring the return value might be a bad idea just from a simple analysis of the body of the method. You can use a @CheckReturnValue annotation to instruct FindBugs as to whether ignoring the return value of this method is important or acceptable. </p> <p>Please investigate this closely to decide whether it is OK to ignore the return value. </p> <h3><a name="SA_FIELD_DOUBLE_ASSIGNMENT">SA: Double assignment of field (SA_FIELD_DOUBLE_ASSIGNMENT)</a></h3> <p> This method contains a double assignment of a field; e.g. </p> <pre> int x,y; public void foo() { x = x = 17; } </pre> <p>Assigning to a field twice is useless, and may indicate a logic error or typo.</p> <h3><a name="SA_LOCAL_DOUBLE_ASSIGNMENT">SA: Double assignment of local variable (SA_LOCAL_DOUBLE_ASSIGNMENT)</a></h3> <p> This method contains a double assignment of a local variable; e.g. </p> <pre> public void foo() { int x,y; x = x = 17; } </pre> <p>Assigning the same value to a variable twice is useless, and may indicate a logic error or typo.</p> <h3><a name="SA_LOCAL_SELF_ASSIGNMENT">SA: Self assignment of local variable (SA_LOCAL_SELF_ASSIGNMENT)</a></h3> <p> This method contains a self assignment of a local variable; e.g.</p> <pre> public void foo() { int x = 3; x = x; } </pre> <p> Such assignments are useless, and may indicate a logic error or typo. </p> <h3><a name="SF_SWITCH_FALLTHROUGH">SF: Switch statement found where one case falls through to the next case (SF_SWITCH_FALLTHROUGH)</a></h3> <p> This method contains a switch statement where one case branch will fall through to the next case. Usually you need to end this case with a break or return.</p> <h3><a name="SF_SWITCH_NO_DEFAULT">SF: Switch statement found where default case is missing (SF_SWITCH_NO_DEFAULT)</a></h3> <p> This method contains a switch statement where default case is missing. Usually you need to provide a default case.</p> <p>Because the analysis only looks at the generated bytecode, this warning can be incorrect triggered if the default case is at the end of the switch statement and doesn't end with a break statement. <h3><a name="ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD">ST: Write to static field from instance method (ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD)</a></h3> <p> This instance method writes to a static field. This is tricky to get correct if multiple instances are being manipulated, and generally bad practice. </p> <h3><a name="SE_PRIVATE_READ_RESOLVE_NOT_INHERITED">Se: Private readResolve method not inherited by subclasses (SE_PRIVATE_READ_RESOLVE_NOT_INHERITED)</a></h3> <p> This class defines a private readResolve method. Since it is private, it won't be inherited by subclasses. This might be intentional and OK, but should be reviewed to ensure it is what is intended. </p> <h3><a name="SE_TRANSIENT_FIELD_OF_NONSERIALIZABLE_CLASS">Se: Transient field of class that isn't Serializable. (SE_TRANSIENT_FIELD_OF_NONSERIALIZABLE_CLASS)</a></h3> <p> The field is marked as transient, but the class isn't Serializable, so marking it as transient has absolutely no effect. This may be leftover marking from a previous version of the code in which the class was transient, or it may indicate a misunderstanding of how serialization works. </p> <h3><a name="TQ_EXPLICIT_UNKNOWN_SOURCE_VALUE_REACHES_ALWAYS_SINK">TQ: Value required to have type qualifier, but marked as unknown (TQ_EXPLICIT_UNKNOWN_SOURCE_VALUE_REACHES_ALWAYS_SINK)</a></h3> <p> A value is used in a way that requires it to be always be a value denoted by a type qualifier, but there is an explicit annotation stating that it is not known where the value is required to have that type qualifier. Either the usage or the annotation is incorrect. </p> <h3><a name="TQ_EXPLICIT_UNKNOWN_SOURCE_VALUE_REACHES_NEVER_SINK">TQ: Value required to not have type qualifier, but marked as unknown (TQ_EXPLICIT_UNKNOWN_SOURCE_VALUE_REACHES_NEVER_SINK)</a></h3> <p> A value is used in a way that requires it to be never be a value denoted by a type qualifier, but there is an explicit annotation stating that it is not known where the value is prohibited from having that type qualifier. Either the usage or the annotation is incorrect. </p> <h3><a name="UCF_USELESS_CONTROL_FLOW">UCF: Useless control flow (UCF_USELESS_CONTROL_FLOW)</a></h3> <p> This method contains a useless control flow statement, where control flow continues onto the same place regardless of whether or not the branch is taken. For example, this is caused by having an empty statement block for an <code>if</code> statement:</p> <pre> if (argv.length == 0) { // TODO: handle this case } </pre> <h3><a name="UCF_USELESS_CONTROL_FLOW_NEXT_LINE">UCF: Useless control flow to next line (UCF_USELESS_CONTROL_FLOW_NEXT_LINE)</a></h3> <p> This method contains a useless control flow statement in which control flow follows to the same or following line regardless of whether or not the branch is taken. Often, this is caused by inadvertently using an empty statement as the body of an <code>if</code> statement, e.g.:</p> <pre> if (argv.length == 1); System.out.println("Hello, " + argv[0]); </pre> <h3><a name="URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD">UrF: Unread public/protected field (URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD)</a></h3> <p> This field is never read.&nbsp; The field is public or protected, so perhaps it is intended to be used with classes not seen as part of the analysis. If not, consider removing it from the class.</p> <h3><a name="UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD">UuF: Unused public or protected field (UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD)</a></h3> <p> This field is never used.&nbsp; The field is public or protected, so perhaps it is intended to be used with classes not seen as part of the analysis. If not, consider removing it from the class.</p> <h3><a name="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR">UwF: Field not initialized in constructor but dereferenced without null check (UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR)</a></h3> <p> This field is never initialized within any constructor, and is therefore could be null after the object is constructed. Elsewhere, it is loaded and dereferenced without a null check. This could be a either an error or a questionable design, since it means a null pointer exception will be generated if that field is dereferenced before being initialized. </p> <h3><a name="UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD">UwF: Unwritten public or protected field (UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD)</a></h3> <p> No writes were seen to this public/protected field.&nbsp; All reads of it will return the default value. Check for errors (should it have been initialized?), or remove it if it is useless.</p> <h3><a name="XFB_XML_FACTORY_BYPASS">XFB: Method directly allocates a specific implementation of xml interfaces (XFB_XML_FACTORY_BYPASS)</a></h3> <p> This method allocates a specific implementation of an xml interface. It is preferable to use the supplied factory classes to create these objects so that the implementation can be changed at runtime. See </p> <ul> <li>javax.xml.parsers.DocumentBuilderFactory</li> <li>javax.xml.parsers.SAXParserFactory</li> <li>javax.xml.transform.TransformerFactory</li> <li>org.w3c.dom.Document.create<i>XXXX</i></li> </ul> <p>for details.</p> <hr> <p> <script language="JavaScript" type="text/javascript"> <!---//hide script from old browsers document.write( "Last updated "+ document.lastModified + "." ); //end hiding contents ---> </script> <p> Send comments to <a class="sidebar" href="mailto:findbugs@cs.umd.edu">findbugs@cs.umd.edu</a> <p> <A href="http://sourceforge.net"><IMG src="http://sourceforge.net/sflogo.php?group_id=96405&amp;type=5" width="210" height="62" border="0" alt="SourceForge.net Logo" /></A> </td></tr></table> </body></html>
1049884729/owasp-java-html-sanitizer
tools/findbugs/doc/bugDescriptions.html
HTML
apache-2.0
271,009
# GENERATED FROM XML -- DO NOT EDIT URI: index.html.en Content-Language: en Content-type: text/html; charset=ISO-8859-1 URI: index.html.fr Content-Language: fr Content-type: text/html; charset=ISO-8859-1 URI: index.html.ko.euc-kr Content-Language: ko Content-type: text/html; charset=EUC-KR URI: index.html.tr.utf8 Content-Language: tr Content-type: text/html; charset=UTF-8 URI: index.html.zh-cn.utf8 Content-Language: zh-cn Content-type: text/html; charset=UTF-8
Dokaponteam/ITF_Project
xampp/apache/manual/misc/index.html
HTML
mit
470
<!DOCTYPE html> <!-- Copyright (c) 2012 Intel Corporation. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of works must retain the original copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the original copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors may be used to endorse or promote products derived from this work without specific prior written permission. THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Authors: Cao, Jun <junx.cao@intel.com> --> <html> <head> <title>WebGL Test: webglrenderingcontext_RENDERBUFFER_STENCIL_SIZE_exists</title> <link rel="author" title="Intel" href="http://www.intel.com" /> <link rel="help" href="https://www.khronos.org/registry/webgl/specs/1.0/" /> <meta name="flags" content="" /> <meta name="assert" content="Check if WebGLRenderingContext.RENDERBUFFER_STENCIL_SIZE exists"/> <script src="../resources/testharness.js"></script> <script src="../resources/testharnessreport.js"></script> <script src="support/webgl.js"></script> </head> <body> <div id="log"></div> <canvas id="canvas" width="200" height="100" style="border:1px solid #c3c3c3;"> Your browser does not support the canvas element. </canvas> <script> getwebgl(); webgl_property_exists(webgl, 'RENDERBUFFER_STENCIL_SIZE'); </script> </body> </html>
hgl888/web-testing-service
wts/tests/webgl/webglrenderingcontext_RENDERBUFFER_STENCIL_SIZE_exists.html
HTML
bsd-3-clause
2,382
<!DOCTYPE html> <!-- this file is auto-generated. DO NOT EDIT. /* ** Copyright (c) 2012 The Khronos Group Inc. ** ** Permission is hereby granted, free of charge, to any person obtaining a ** copy of this software and/or associated documentation files (the ** "Materials"), to deal in the Materials without restriction, including ** without limitation the rights to use, copy, modify, merge, publish, ** distribute, sublicense, and/or sell copies of the Materials, and to ** permit persons to whom the Materials are furnished to do so, subject to ** the following conditions: ** ** The above copyright notice and this permission notice shall be included ** in all copies or substantial portions of the Materials. ** ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ --> <html> <head> <meta charset="utf-8"> <title>WebGL GLSL conformance test: swizzlers_073_to_080.html</title> <link rel="stylesheet" href="../../../../resources/js-test-style.css" /> <link rel="stylesheet" href="../../../resources/ogles-tests.css" /> <script src="../../../../resources/js-test-pre.js"></script> <script src="../../../resources/webgl-test-utils.js"></script> <script src="../../ogles-utils.js"></script> </head> <body> <canvas id="example" width="500" height="500" style="width: 16px; height: 16px;"></canvas> <div id="description"></div> <div id="console"></div> </body> <script> "use strict"; OpenGLESTestRunner.run({ "tests": [ { "referenceProgram": { "vertexShader": "../default/default.vert", "fragmentShader": "../default/default.frag" }, "model": null, "testProgram": { "vertexShader": "../default/default.vert", "fragmentShader": "vec3_rg_b_1vec2_1float_frag.frag" }, "name": "vec3_rg_b_1vec2_1float_frag.test.html", "pattern": "compare" }, { "referenceProgram": { "vertexShader": "../default/default.vert", "fragmentShader": "../default/default.frag" }, "model": "grid", "testProgram": { "vertexShader": "vec3_rg_b_1vec2_1float_vert.vert", "fragmentShader": "../default/default.frag" }, "name": "vec3_rg_b_1vec2_1float_vert.test.html", "pattern": "compare" }, { "referenceProgram": { "vertexShader": "../default/default.vert", "fragmentShader": "../default/default.frag" }, "model": null, "testProgram": { "vertexShader": "../default/default.vert", "fragmentShader": "vec3_rb_g_1vec2_1float_frag.frag" }, "name": "vec3_rb_g_1vec2_1float_frag.test.html", "pattern": "compare" }, { "referenceProgram": { "vertexShader": "../default/default.vert", "fragmentShader": "../default/default.frag" }, "model": "grid", "testProgram": { "vertexShader": "vec3_rb_g_1vec2_1float_vert.vert", "fragmentShader": "../default/default.frag" }, "name": "vec3_rb_g_1vec2_1float_vert.test.html", "pattern": "compare" }, { "referenceProgram": { "vertexShader": "../default/default.vert", "fragmentShader": "../default/default.frag" }, "model": null, "testProgram": { "vertexShader": "../default/default.vert", "fragmentShader": "vec3_gb_r_1vec2_1float_frag.frag" }, "name": "vec3_gb_r_1vec2_1float_frag.test.html", "pattern": "compare" }, { "referenceProgram": { "vertexShader": "../default/default.vert", "fragmentShader": "../default/default.frag" }, "model": "grid", "testProgram": { "vertexShader": "vec3_gb_r_1vec2_1float_vert.vert", "fragmentShader": "../default/default.frag" }, "name": "vec3_gb_r_1vec2_1float_vert.test.html", "pattern": "compare" }, { "referenceProgram": { "vertexShader": "../default/default.vert", "fragmentShader": "../default/default.frag" }, "model": null, "testProgram": { "vertexShader": "../default/default.vert", "fragmentShader": "vec3_br_g_1vec2_1float_frag.frag" }, "name": "vec3_br_g_1vec2_1float_frag.test.html", "pattern": "compare" }, { "referenceProgram": { "vertexShader": "../default/default.vert", "fragmentShader": "../default/default.frag" }, "model": "grid", "testProgram": { "vertexShader": "vec3_br_g_1vec2_1float_vert.vert", "fragmentShader": "../default/default.frag" }, "name": "vec3_br_g_1vec2_1float_vert.test.html", "pattern": "compare" } ] }); var successfullyParsed = true; </script> </html>
crosswalk-project/web-testing-service
wts/tests/webgl/khronos/conformance/ogles/GL/swizzlers/swizzlers_073_to_080.html
HTML
bsd-3-clause
5,121
<!doctype html> <meta charset="utf-8"> <title>@layer rule parsing / serialization</title> <link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io"> <link rel="author" title="Mozilla" href="https://mozilla.org"> <link rel="help" href="https://drafts.csswg.org/css-cascade-5/#layering"> <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> <script src="/css/support/parsing-testcommon.js"></script> <script> test_valid_rule("@layer A;"); test_valid_rule("@layer A, B, C;"); test_valid_rule("@layer A.A;"); test_valid_rule("@layer A, B.C.D, C;"); test_invalid_rule("@layer;"); test_invalid_rule("@layer A . A;"); test_valid_rule("@layer {\n}"); test_valid_rule("@layer A {\n}"); test_valid_rule("@layer A.B {\n}"); test_invalid_rule("@layer A . B {\n}"); test_invalid_rule("@layer A, B, C {\n}"); </script>
chromium/chromium
third_party/blink/web_tests/external/wpt/css/css-cascade/parsing/layer.html
HTML
bsd-3-clause
905