rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
case 49:
case 53:
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
jjCheckNAddStates(11, 13); else if (curChar == 93) jjstateSet[jjnewStateCnt++] = 4; if (curChar == 93) jjstateSet[jjnewStateCnt++] = 3; break; case 48: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddStates(11, 13);
jjCheckNAddStates(0, 2);
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
jjCheckNAddStates(11, 13);
jjCheckNAddStates(0, 2);
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
jjCheckNAddStates(14, 16);
jjCheckNAddStates(18, 20);
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
if (curChar == 93 && kind > 9) kind = 9;
if (curChar == 93 && kind > 10) kind = 10;
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
jjCheckNAddStates(17, 20);
jjCheckNAddStates(21, 24);
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
case 16: if ((0xf8000001f8000001L & l) != 0L && kind > 32) kind = 32;
case 13: if ((0x7fffffe87fffffeL & l) != 0L) jjCheckNAddTwoStates(13, 14); break; case 15: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(15, 16);
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
jjCheckNAddStates(4, 8); break; case 18: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(18, 19); break; case 19: if (curChar == 64) jjCheckNAdd(20); break; case 20: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(20, 21); break; case 22: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 19) kind ...
jjCheckNAddTwoStates(47, 48); break; case 48: if ((0x7fffffeL & l) == 0L)
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
jjCheckNAdd(32); break; case 33:
jjCheckNAddStates(34, 36); break; case 49:
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
jjCheckNAddStates(0, 3); break; case 34:
jjCheckNAddTwoStates(49, 50); break; case 50: if ((0x7fffffe00000000L & l) != 0L) jjCheckNAddStates(37, 39); break; case 51: if (curChar == 96 && kind > 24) kind = 24; break; case 52:
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
jjCheckNAddTwoStates(34, 35); break; case 35: if ((0x7fffffe00000000L & l) == 0L) break; if (kind > 21) kind = 21; jjCheckNAddTwoStates(35, 36); break; case 36: if ((0x7fffffeL & l) == 0L) break; if (kind > 21) kind = 21; jjCheckNAddStates(27, 29); break; case 37: if ((0x7fffffeL & l) != 0L) jjCheckNAddTwoStates(37, 38...
jjCheckNAddStates(40, 43);
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
case 7: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 32) kind = 32; break; case 49:
case 54:
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
jjCheckNAddStates(11, 13); break; case 48:
jjCheckNAddStates(0, 2); break; case 7: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 34) kind = 34; break; case 53:
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
jjCheckNAddStates(17, 20); break; case 30:
jjCheckNAddStates(21, 24); break; case 42:
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
jjAddStates(37, 38);
jjAddStates(44, 45);
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
if ((i = jjnewStateCnt) == (startsAt = 48 - (jjnewStateCnt = startsAt)))
if ((i = jjnewStateCnt) == (startsAt = 53 - (jjnewStateCnt = startsAt)))
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
jjmatchedKind = 10; return jjMoveStringLiteralDfa1_0(0x10000000L);
jjmatchedKind = 11; return jjMoveStringLiteralDfa1_0(0x40000000L);
private final int jjMoveStringLiteralDfa0_0(){ switch(curChar) { case 42: jjmatchedKind = 10; return jjMoveStringLiteralDfa1_0(0x10000000L); case 45: return jjMoveStringLiteralDfa1_0(0x40000L); case 60: return jjStopAtPos(0, 13); case 62: return jjStopAtPo...
return jjMoveStringLiteralDfa1_0(0x40000L);
return jjMoveStringLiteralDfa1_0(0x100000L);
private final int jjMoveStringLiteralDfa0_0(){ switch(curChar) { case 42: jjmatchedKind = 10; return jjMoveStringLiteralDfa1_0(0x10000000L); case 45: return jjMoveStringLiteralDfa1_0(0x40000L); case 60: return jjStopAtPos(0, 13); case 62: return jjStopAtPo...
case 62: return jjStopAtPos(0, 14); case 91: return jjMoveStringLiteralDfa1_0(0x80000000L); case 94: jjmatchedKind = 17; return jjMoveStringLiteralDfa1_0(0x40000000L); case 95: jjmatchedKind = 11; return jjMoveStringLiteralDfa1_0(0x20000000L); case 126: return jjStopAtPos(0, 12);
private final int jjMoveStringLiteralDfa0_0(){ switch(curChar) { case 42: jjmatchedKind = 10; return jjMoveStringLiteralDfa1_0(0x10000000L); case 45: return jjMoveStringLiteralDfa1_0(0x40000L); case 60: return jjStopAtPos(0, 13); case 62: return jjStopAtPo...
if ((active0 & 0x10000000L) != 0L) return jjStopAtPos(1, 28); break; case 45: return jjMoveStringLiteralDfa2_0(active0, 0x40000L); case 91: return jjMoveStringLiteralDfa2_0(active0, 0x80000000L); case 94:
private final int jjMoveStringLiteralDfa1_0(long active0){ try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(0, active0); return 1; } switch(curChar) { case 42: if ((active0 & 0x10000000L) != 0L) return jjStopAtPos(1, 28); ...
if ((active0 & 0x20000000L) != 0L) return jjStopAtPos(1, 29);
if ((active0 & 0x80000000L) != 0L) return jjStartNfaWithStates_0(1, 31, 14);
private final int jjMoveStringLiteralDfa1_0(long active0){ try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(0, active0); return 1; } switch(curChar) { case 42: if ((active0 & 0x10000000L) != 0L) return jjStopAtPos(1, 28); ...
return jjMoveStringLiteralDfa3_0(active0, 0x40000L);
return jjMoveStringLiteralDfa3_0(active0, 0x100000L);
private final int jjMoveStringLiteralDfa2_0(long old0, long active0){ if (((active0 &= old0)) == 0L) return jjStartNfa_0(0, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(1, active0); return 2; } switch(curChar) { case 45: ...
return jjMoveStringLiteralDfa3_0(active0, 0x80000000L);
return jjMoveStringLiteralDfa3_0(active0, 0x200000000L);
private final int jjMoveStringLiteralDfa2_0(long old0, long active0){ if (((active0 &= old0)) == 0L) return jjStartNfa_0(0, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(1, active0); return 2; } switch(curChar) { case 45: ...
return jjMoveStringLiteralDfa4_0(active0, 0x40000L);
return jjMoveStringLiteralDfa4_0(active0, 0x100000L);
private final int jjMoveStringLiteralDfa3_0(long old0, long active0){ if (((active0 &= old0)) == 0L) return jjStartNfa_0(1, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(2, active0); return 3; } switch(curChar) { case 45: ...
if ((active0 & 0x80000000L) != 0L) return jjStartNfaWithStates_0(3, 31, 49);
if ((active0 & 0x200000000L) != 0L) return jjStartNfaWithStates_0(3, 33, 54);
private final int jjMoveStringLiteralDfa3_0(long old0, long active0){ if (((active0 &= old0)) == 0L) return jjStartNfa_0(1, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(2, active0); return 3; } switch(curChar) { case 45: ...
if ((active0 & 0x40000L) != 0L) return jjStopAtPos(4, 18);
if ((active0 & 0x100000L) != 0L) return jjStartNfaWithStates_0(4, 20, 14);
private final int jjMoveStringLiteralDfa4_0(long old0, long active0){ if (((active0 &= old0)) == 0L) return jjStartNfa_0(2, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(3, active0); return 4; } switch(curChar) { case 45: ...
if ((active0 & 0x40000L) != 0L)
if ((active0 & 0x200000000L) != 0L)
private final int jjStopStringLiteralDfa_0(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x40000L) != 0L) { jjmatchedKind = 32; return -1; } if ((active0 & 0x40020000L) != 0L) return 10; if ((active0 & 0x80000000L) != 0L) ...
jjmatchedKind = 32; return -1; } if ((active0 & 0x40020000L) != 0L) return 10; if ((active0 & 0x80000000L) != 0L) { jjmatchedKind = 32;
jjmatchedKind = 34;
private final int jjStopStringLiteralDfa_0(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x40000L) != 0L) { jjmatchedKind = 32; return -1; } if ((active0 & 0x40020000L) != 0L) return 10; if ((active0 & 0x80000000L) != 0L) ...
if ((active0 & 0x40000L) != 0L)
if ((active0 & 0x100000L) != 0L)
private final int jjStopStringLiteralDfa_0(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x40000L) != 0L) { jjmatchedKind = 32; return -1; } if ((active0 & 0x40020000L) != 0L) return 10; if ((active0 & 0x80000000L) != 0L) ...
jjmatchedKind = 32;
jjmatchedKind = 34;
private final int jjStopStringLiteralDfa_0(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x40000L) != 0L) { jjmatchedKind = 32; return -1; } if ((active0 & 0x40020000L) != 0L) return 10; if ((active0 & 0x80000000L) != 0L) ...
return -1;
return 14;
private final int jjStopStringLiteralDfa_0(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x40000L) != 0L) { jjmatchedKind = 32; return -1; } if ((active0 & 0x40020000L) != 0L) return 10; if ((active0 & 0x80000000L) != 0L) ...
if ((active0 & 0x80000000L) != 0L)
if ((active0 & 0x200000000L) != 0L)
private final int jjStopStringLiteralDfa_0(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x40000L) != 0L) { jjmatchedKind = 32; return -1; } if ((active0 & 0x40020000L) != 0L) return 10; if ((active0 & 0x80000000L) != 0L) ...
return 48;
return 53;
private final int jjStopStringLiteralDfa_0(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x40000L) != 0L) { jjmatchedKind = 32; return -1; } if ((active0 & 0x40020000L) != 0L) return 10; if ((active0 & 0x80000000L) != 0L) ...
return 49;
return 54;
private final int jjStopStringLiteralDfa_0(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x40000L) != 0L) { jjmatchedKind = 32; return -1; } if ((active0 & 0x40020000L) != 0L) return 10; if ((active0 & 0x80000000L) != 0L) ...
if ((active0 & 0x80000000L) != 0L) return 49;
if ((active0 & 0x200000000L) != 0L) return 54;
private final int jjStopStringLiteralDfa_0(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x40000L) != 0L) { jjmatchedKind = 32; return -1; } if ((active0 & 0x40020000L) != 0L) return 10; if ((active0 & 0x80000000L) != 0L) ...
if (p == null) { wc.getLog("RecentChanges").error ("WikiPage for " + pageNames[x] + " not found in wiki system. Skipping"); continue; }
public void perform(WikiSystem wiki, WebContext wc, WikiUser user, WikiPage page) throws PageAction.PageActionException { List pages = new ArrayList (); String[] pageNames = wiki.getCurrentPageNames(); double days = 7D; // figure out how many days to show if (wc.getForm ("days") !...
br = new BufferedReader(new FileReader(sourceFile));
br = new BufferedReader(new InputStreamReader(new FileInputStream(sourceFile), "UTF-8")); } catch (UnsupportedEncodingException e) { return "<p>Unable to open " + sourceFile.getAbsolutePath() + ": The encoding 'UTF-8' is not supported by your JVM.</p>";
private String generateHtmlizedJavaSource(SourceFileData sourceFileData) { File sourceFile = null; try { sourceFile = finder.getFileForSource(sourceFileData.getName()); } catch (IOException e) { return "<p>Unable to locate " + sourceFileData.getName() + ". Have you specified the source directory?</p>"; ...
out = new PrintStream(new FileOutputStream(file));
out = new PrintStream(new FileOutputStream(file), false, "UTF-8");
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out...
out = new PrintStream(new FileOutputStream(file));
out = new PrintStream(new FileOutputStream(file), false, "UTF-8");
private void generatePackageList() throws IOException { File file = new File(destinationDir, "frame-packages.html"); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out .println("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\""); out .println(" ...
out = new PrintStream(new FileOutputStream(file));
out = new PrintStream(new FileOutputStream(file), false, "UTF-8");
private void generateSourceFile(SourceFileData sourceFileData) throws IOException { if (!sourceFileData.containsInstrumentationInfo()) { LOGGER.info("Data file does not contain instrumentation " + "information for the file " + sourceFileData.getName() + ". Ensure this class was instrumented, and this " ...
out = new PrintStream(new FileOutputStream(file));
out = new PrintStream(new FileOutputStream(file), false, "UTF-8");
private void generateSourceFileList(PackageData packageData) throws IOException { String filename; Collection sourceFiles; if (packageData == null) { filename = "frame-sourcefiles.html"; sourceFiles = projectData.getSourceFiles(); } else { filename = "frame-sourcefiles-" + packageData.getName() + ".html...
if (getToken(n+1).kind == WORD && getToken(n+1).image.equals(keyword))
if (getToken(n).kind == WORD && getToken(n).image.equals(keyword))
boolean lookahead_keyword(String keyword) throws ParseException { int n=1; if (getToken(n).kind == WS) ++n; if (getToken(n+1).kind == WORD && getToken(n+1).image.equals(keyword)) return true; else return false; }
System.out.println("Argument " + i + ": " + arg.type + " " + arg.id);
void parse_args(ArgDescriptor[] args, DirectiveArgs da) throws ParseException { try { for (int i=0; i < args.length; ) { ArgDescriptor arg = args[i]; System.out.println("Argument " + i + ": " + arg.type + " " + arg.id); if (arg.type == Directive.ArgType_GROUP) parse_arg_group(args, i, da); ...
System.out.println("Next " + i + " is " + arg.nextArg);
void parse_args(ArgDescriptor[] args, DirectiveArgs da) throws ParseException { try { for (int i=0; i < args.length; ) { ArgDescriptor arg = args[i]; System.out.println("Argument " + i + ": " + arg.type + " " + arg.id); if (arg.type == Directive.ArgType_GROUP) parse_arg_group(args, i, da); ...
System.out.println("Processing subdirective " + subd.name);
DirectiveBuilder parse_directive(String directive) throws ParseException, ParseException { DirectiveBuilder db=null; DirectiveDescriptor descriptor=null; Subdirective subd; try { descriptor = (DirectiveDescriptor) broker.get("org.webmacro.directive.Directive", directi...
System.out.println("Done with subdirective " + subd.name);
DirectiveBuilder parse_directive(String directive) throws ParseException, ParseException { DirectiveBuilder db=null; DirectiveDescriptor descriptor=null; Subdirective subd; try { descriptor = (DirectiveDescriptor) broker.get("org.webmacro.directive.Directive", directi...
ReInit(dstream, startline, startcolumn, 4096);
inputStream = dstream; line = startline; column = startcolumn - 1; if (bufA == null || bufA.size != buffersize) bufA = new Buffer(buffersize); if (bufB == null || bufB.size != buffersize) bufB = new Buffer(buffersize); curBuf = bufA; otherBuf = bufB; curBuf.curPos = otherBuf.dataLen = -1; curBuf.dataLen = otherBuf.dat...
public void ReInit(java.io.InputStream dstream, int startline, int startcolumn) { ReInit(dstream, startline, startcolumn, 4096); }
public ASCII_CharStream(java.io.InputStream dstream, int startline, int startcolumn)
public ASCII_CharStream(java.io.Reader dstream, int startline, int startcolumn, int buffersize)
public ASCII_CharStream(java.io.InputStream dstream, int startline, int startcolumn) { this(dstream, startline, startcolumn, 4096); }
this(dstream, startline, startcolumn, 4096);
ReInit(dstream, startline, startcolumn, buffersize);
public ASCII_CharStream(java.io.InputStream dstream, int startline, int startcolumn) { this(dstream, startline, startcolumn, 4096); }
if (attributeInfo.isReadable()) { String getterName = attributeInfo.getGetterName(); MethodMetadata getter = classMetadata.getMethod(new OperationSignature(getterName, new String[] {})); if (getter != null) { getter.put("persistent", "true"); } } if (attributeInfo.isWritable()) { String setterName = attributeInfo.getS...
public void addClassMetadata(ClassMetadata classMetadata) { Class type = classMetadata.getType(); GBeanInfo gbeanInfo = getGBeanInfo(type); if (gbeanInfo == null) { return; } classMetadata.put("j2eeType", gbeanInfo.getJ2eeType()); Set attributes = gbeanInfo.getAt...
String setterName = referenceInfo.getSetterName(); if (setterName != null) { MethodMetadata setter = classMetadata.getMethod(new OperationSignature(setterName, new String[] {referenceInfo.getProxyType()})); if (setter != null) { setter.put("persistent", "true"); } }
public void addClassMetadata(ClassMetadata classMetadata) { Class type = classMetadata.getType(); GBeanInfo gbeanInfo = getGBeanInfo(type); if (gbeanInfo == null) { return; } classMetadata.put("j2eeType", gbeanInfo.getJ2eeType()); Set attributes = gbeanInfo.getAt...
parameter.put("name", name);
parameter.put("name", fixPropertyName(name));
public void addClassMetadata(ClassMetadata classMetadata) { Class type = classMetadata.getType(); GBeanInfo gbeanInfo = getGBeanInfo(type); if (gbeanInfo == null) { return; } classMetadata.put("j2eeType", gbeanInfo.getJ2eeType()); Set attributes = gbeanInfo.getAt...
if (!persistentProperties.isEmpty()) { classMetadata.put("persistentProperties", persistentProperties); }
public void addClassMetadata(ClassMetadata classMetadata) { Class type = classMetadata.getType(); GBeanInfo gbeanInfo = getGBeanInfo(type); if (gbeanInfo == null) { return; } classMetadata.put("j2eeType", gbeanInfo.getJ2eeType()); Set attributes = gbeanInfo.getAt...
setOptional(subordinateArgs);
setOptional(argCount);
public OptionalGroup(int argCount) { super(0, ArgType_GROUP); setOptional(subordinateArgs); }
Thread.sleep(5000);
Thread.sleep(2000);
public void loadPlugins() { // Add presence and message listeners // we listen for these to force open a 1-1 peer chat window from other operators if // one isn't already open PacketFilter workspaceMessageFilter = new PacketTypeFilter(Message.class); // Add the packetListener to t...
Thread.sleep(5000);
Thread.sleep(2000);
public Object construct() { try { Thread.sleep(5000); } catch (InterruptedException e) { Log.error("Unable to sleep thread.", e); } return "ok"; }
d.invokeControllerMethod(MainController.CONTEXT_CHANGED, e);
public void removeNotes(Event e) { while (dd.getTree().getSelectedNotes().size() > 0) { DisplayedNote removeMe = dd.getTree().getSelectedNotes().get(0); removeMe.deleteSelfAndChildren(); } }
_log.info("Loaded provider " + p);
public void addProvider(Provider p) throws InitException { p.init(this,_config); _providers.put(p.getType(),p); }
(strace.equalsIgnoreCase("true") || strace.equalsIgnoreCase("yes"));
("true".equalsIgnoreCase(strace) || "yes".equalsIgnoreCase(strace));
public LogManager(Properties config) { String fileName = config.getProperty("LogFile", null); if ( ("System.error").equalsIgnoreCase(fileName) || ("stderr").equalsIgnoreCase(fileName) || ("none").equalsIgnoreCase(fileName)) { fileName = null; } String format = ...
lf = new LogFile(fileName, format, levels, trace);
lf = new LogFile(fileName, format, logLevel, levels, trace);
public LogManager(Properties config) { String fileName = config.getProperty("LogFile", null); if ( ("System.error").equalsIgnoreCase(fileName) || ("stderr").equalsIgnoreCase(fileName) || ("none").equalsIgnoreCase(fileName)) { fileName = null; } String format = ...
lf = new LogFile(System.err, format, levels, trace);
lf = new LogFile("System.err", System.err, format, logLevel, levels, trace);
public LogManager(Properties config) { String fileName = config.getProperty("LogFile", null); if ( ("System.error").equalsIgnoreCase(fileName) || ("stderr").equalsIgnoreCase(fileName) || ("none").equalsIgnoreCase(fileName)) { fileName = null; } String format = ...
} if (_log != null) { _log.info("source: " + name);
public Log getLog(String name) { LogSource l = (LogSource) _sources.get(name); if (l != null) { return l; } l = new LogSource(name); _sources.put(name,l); Iterator t = _targets.iterator(); while (t.hasNext()) { LogTarget lt = (LogTarget) t.next(); lt.attach(...
System.out.println("2--- _buf now equal: " + _buf);
final public int rewind(int i) { if ((i < 0) || (i >= MAX_MARKS)) { return DUMMY_MARK; } Mark m = _marks[i]; if (m.isSet == false) { return DUMMY_MARK; } _buf = m.buf.toString();System.out.println("2--- _buf now equal: " + _buf); _pos = 0; _len = _buf.length()...
articleItem.load(id); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "clear");
articleItem.setResourcePath(id); articleItem.load(); ArticleItemBean bean = getArticleItemBean(); bean.clear(); Locale locale = new Locale("en"); bean.setLocale(locale); bean.setHeadline(articleItem.getHeadline()); bean.setTeaser(articleItem.getTeaser()); bean.setBody(articleItem.getBody()); bean.setAuthor(art...
public void processAction(ActionEvent event) { if (event.getComponent().getId().equals(LIST_BUTTON_ID)) { WFUtil.invoke(LIST_ARTICLES_BEAN_ID, "list"); return; } else if (event.getComponent().getId().equals(VIEW_ARTICLE_BACK_BUTTON_ID)) { WFComponentSelector cs = (WFComponentSelector) event.getComponent().find...
WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setLocaleId", "en"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setHeadline", notNull(articleItem.getHeadline()));
/*WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setHeadline", notNull(articleItem.getHeadline()));
public void processAction(ActionEvent event) { if (event.getComponent().getId().equals(LIST_BUTTON_ID)) { WFUtil.invoke(LIST_ARTICLES_BEAN_ID, "list"); return; } else if (event.getComponent().getId().equals(VIEW_ARTICLE_BACK_BUTTON_ID)) { WFComponentSelector cs = (WFComponentSelector) event.getComponent().find...
WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setComment", notNull(articleItem.getComment())); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setDescription", notNull(articleItem.getDescription())); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setStatus", ContentItemCase.STATUS_PUBLISHED ); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setFolderLocatio...
WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setFolderLocation", notNull(articleItem.getBaseFolderLocation())); */ bean.setHeadline(articleItem.getHeadline()); bean.setTeaser(articleItem.getTeaser()); bean.setBody(articleItem.getBody()); bean.setAuthor(articleItem.getAuthor()); bean.setBaseFolderLocation(articleItem.getBaseFol...
public void processAction(ActionEvent event) { if (event.getComponent().getId().equals(LIST_BUTTON_ID)) { WFUtil.invoke(LIST_ARTICLES_BEAN_ID, "list"); return; } else if (event.getComponent().getId().equals(VIEW_ARTICLE_BACK_BUTTON_ID)) { WFComponentSelector cs = (WFComponentSelector) event.getComponent().find...
WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setLocaleId", "sv"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setHeadline", notNull(articleItem.getHeadline())); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setTeaser", notNull(articleItem.getTeaser())); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setBody", notNull(articleItem.getBody())); WFUtil....
public void processAction(ActionEvent event) { if (event.getComponent().getId().equals(LIST_BUTTON_ID)) { WFUtil.invoke(LIST_ARTICLES_BEAN_ID, "list"); return; } else if (event.getComponent().getId().equals(VIEW_ARTICLE_BACK_BUTTON_ID)) { WFComponentSelector cs = (WFComponentSelector) event.getComponent().find...
LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("format", LongOpt.REQUIRED_ARGUMENT, null, 'f'); longOpts[1] = new LongOpt("datafile", LongOpt.REQUIRED_ARGUMENT, null, 'd'); longOpts[2] = new LongOpt("destination", LongOpt.REQUIRED_ARGUMENT, null, 'o'); longOpts[3] = new LongOpt("source", LongOpt.REQUIR...
Main main = new Main();
public static void main(String[] args) throws Exception { long startTime = System.currentTimeMillis(); LongOpt[] longOpts = new LongOpt[4]; // TODO: Allow for multiple destination and multiple source directories longOpts[0] = new LongOpt("format", LongOpt.REQUIRED_ARGUMENT, null, 'f'); longOpts[1] = new LongOp...
Getopt g = new Getopt(Main.class.getName(), args, ":f:d:o:s:", longOpts); int c; while ((c = g.getopt()) != -1) { switch (c) { case 'f': format = g.getOptarg(); if (!format.equalsIgnoreCase("html") && !format.equalsIgnoreCase("xml")) { System.err .println("Error: format \"" + format + "\" is invalid. Must be either htm...
boolean hasCommandsFile = false; String commandsFileName = null; for (int i = 0; i < args.length; i++) { if (args[i].equals("--commandsfile")) { hasCommandsFile = true; commandsFileName = args[++i];
public static void main(String[] args) throws Exception { long startTime = System.currentTimeMillis(); LongOpt[] longOpts = new LongOpt[4]; // TODO: Allow for multiple destination and multiple source directories longOpts[0] = new LongOpt("format", LongOpt.REQUIRED_ARGUMENT, null, 'f'); longOpts[1] = new LongOp...
if (dataFile == null) dataFile = CoverageDataFileHandler.getDefaultDataFile();
if (hasCommandsFile) { List arglist = new ArrayList(); BufferedReader bufferedReader = null;
public static void main(String[] args) throws Exception { long startTime = System.currentTimeMillis(); LongOpt[] longOpts = new LongOpt[4]; // TODO: Allow for multiple destination and multiple source directories longOpts[0] = new LongOpt("format", LongOpt.REQUIRED_ARGUMENT, null, 'f'); longOpts[1] = new LongOp...
if (destinationDir == null) { System.err.println("Error: destination directory must be set"); System.exit(1);
try { bufferedReader = new BufferedReader(new FileReader(commandsFileName)); String line = null; while ((line = bufferedReader.readLine()) != null) { arglist.add(line); } } catch (IOException e) { LOGGER.fatal("Unable to read temporary commands file " + commandsFileName + ".", e); } finally { if (bufferedReader != nul...
public static void main(String[] args) throws Exception { long startTime = System.currentTimeMillis(); LongOpt[] longOpts = new LongOpt[4]; // TODO: Allow for multiple destination and multiple source directories longOpts[0] = new LongOpt("format", LongOpt.REQUIRED_ARGUMENT, null, 'f'); longOpts[1] = new LongOp...
if (sourceDir == null) { System.err.println("Error: source directory must be set"); System.exit(1); } if (logger.isDebugEnabled()) { logger.debug("format is " + format); logger.debug("dataFile is " + dataFile.getAbsolutePath()); logger.debug("destinationDir is " + destinationDir.getAbsolutePath()); logger.debug("sourc...
main.parseArguments(args);
public static void main(String[] args) throws Exception { long startTime = System.currentTimeMillis(); LongOpt[] longOpts = new LongOpt[4]; // TODO: Allow for multiple destination and multiple source directories longOpts[0] = new LongOpt("format", LongOpt.REQUIRED_ARGUMENT, null, 'f'); longOpts[1] = new LongOp...
System.out .println("Reporting time: " + (stopTime - startTime) + "ms");
System.out.println("Report time: " + (stopTime - startTime) + "ms");
public static void main(String[] args) throws Exception { long startTime = System.currentTimeMillis(); LongOpt[] longOpts = new LongOpt[4]; // TODO: Allow for multiple destination and multiple source directories longOpts[0] = new LongOpt("format", LongOpt.REQUIRED_ARGUMENT, null, 'f'); longOpts[1] = new LongOp...
throw new PropertyException("No method to set \"" + _vname +
throw new PropertyException("No method to set \"" + getVariableName() +
public final void setValue (Context context, Object newValue) throws PropertyException { if (!context.setProperty(_names[0], newValue)) { throw new PropertyException("No method to set \"" + _vname + "\" to type " + ((newValue == null) ? "n...
ownsServiceExecutor = true;
public StandardKernel(String kernelName) { this(kernelName, Executors.newCachedThreadPool(), 30, TimeUnit.SECONDS); }
if (ownsServiceExecutor) { serviceExecutor.shutdown(); }
public void destroy() throws KernelErrorsError { destroyLock.lock(); try { // if we are already stopped simply return if (!running) { return; } running = false; } finally { destroyLock.unlock(); } // destroy all...
public final void addArgument(Argument p)
public final void addArgument(String name, Object value)
public final void addArgument(Argument p) throws IllegalStateException { if (! hasArguments()) { throw new IllegalStateException("Does not take arguments"); } boolean match = false; String argument = p.getName(); for (int i = 0; i < _argNames.length; i++) { if (_argNa...
String argument = p.getName();
public final void addArgument(Argument p) throws IllegalStateException { if (! hasArguments()) { throw new IllegalStateException("Does not take arguments"); } boolean match = false; String argument = p.getName(); for (int i = 0; i < _argNames.length; i++) { if (_argNa...
if (_argNames[i].equals(argument)) {
if (_argNames[i].equals(name)) {
public final void addArgument(Argument p) throws IllegalStateException { if (! hasArguments()) { throw new IllegalStateException("Does not take arguments"); } boolean match = false; String argument = p.getName(); for (int i = 0; i < _argNames.length; i++) { if (_argNa...
throw new IllegalStateException(argument
throw new IllegalStateException(name
public final void addArgument(Argument p) throws IllegalStateException { if (! hasArguments()) { throw new IllegalStateException("Does not take arguments"); } boolean match = false; String argument = p.getName(); for (int i = 0; i < _argNames.length; i++) { if (_argNa...
_arguments.addElement(p);
Argument ag = new Argument(name,value); _arguments.addElement(ag);
public final void addArgument(Argument p) throws IllegalStateException { if (! hasArguments()) { throw new IllegalStateException("Does not take arguments"); } boolean match = false; String argument = p.getName(); for (int i = 0; i < _argNames.length; i++) { if (_argNa...
args[i++] = getArguments();
args[i++] = getArguments(rc);
public final Object build(BuildContext rc) throws BuildException { // collect the arguments Object args[] = new Object[_buildArgs]; { int i = 0; args[i++] = rc; if ( hasCondition() ) { Object cond = (_condition instanceof Builder) ? ((Builder) _...
private final Argument[] getArguments() {
private final Argument[] getArguments(BuildContext bc) throws BuildException {
private final Argument[] getArguments() { if (!hasArguments()) { return null; } if (_arguments == null) { _arguments = new Vector(); } Argument[] args = new Argument[_arguments.size()]; _arguments.copyInto(args); return args; }
for (int i = 0; i < args.length; i++) { args[i].build(bc); }
private final Argument[] getArguments() { if (!hasArguments()) { return null; } if (_arguments == null) { _arguments = new Vector(); } Argument[] args = new Argument[_arguments.size()]; _arguments.copyInto(args); return args; }
OrCondition(Condition l, Condition r) { _l = l; _r = r; }
OrCondition(Condition l, Condition r) { _l = l; _r = r; System.out.println("Condition: " + l + " || + " + r); }
OrCondition(Condition l, Condition r) { _l = l; _r = r; }
System.out.println("_l.test: " + _l.test(context)); System.out.println("_r.test: " + _r.test(context));
public final boolean test(Object context) { return (_l.test(context) || _r.test(context)); }
r = _l.build(pc);
r = _r.build(pc);
public final Object build(BuildContext pc) throws BuildException { Object l, r; l = _l.build(pc); r = _l.build(pc); return ((l instanceof Condition) && (r instanceof Condition)) ? (Object) new OrCondition((Condition) l, (Condition) r) : (l instanceof Condition) ? ...
if (Spark.isWindows()) { fc.setFileSystemView(new WindowsFileSystemView()); }
public SoundPanel() { setLayout(new GridBagLayout()); // Add ResourceUtils ResourceUtils.resButton(incomingMessageBox, "&Play sound when new message arrives"); ResourceUtils.resButton(outgoingMessageBox, "&Play sound when a message is sent"); ResourceUtils....
if (fc == null) { fc = new JFileChooser(); if (Spark.isWindows()) { fc.setFileSystemView(new WindowsFileSystemView()); } }
private void pickFile(String title, JTextField field) { fc.setDialogTitle(title); int returnVal = fc.showOpenDialog(this); if (returnVal == JFileChooser.APPROVE_OPTION) { File file = fc.getSelectedFile(); field.setText(file.getAbsolutePath()); ...
DisplayedNote dn = dd.getTree().getSelectedNote(); Note note = dn.getNote();
public void ok(Event e) { DisplayedNote dn = dd.getTree().getSelectedNote(); Note note = dn.getNote(); DisplayedNote newDn; if (after) { Note newNote = new Note(addNoteDialog.getName(), note.getHolder(), note.getIndex() + 1, ""); newDn = new DisplayedNote(dn.getHolder(), dd.getTree(),...
if (after) { Note newNote = new Note(addNoteDialog.getName(), note.getHolder(), note.getIndex() + 1, ""); newDn = new DisplayedNote(dn.getHolder(), dd.getTree(), newNote);
if (dd.getTree().isEmpty()) { Note newNote = new Note(addNoteDialog.getName(), dd.getDocument(), ""); newDn = new DisplayedNote(dd, dd.getTree(), newNote);
public void ok(Event e) { DisplayedNote dn = dd.getTree().getSelectedNote(); Note note = dn.getNote(); DisplayedNote newDn; if (after) { Note newNote = new Note(addNoteDialog.getName(), note.getHolder(), note.getIndex() + 1, ""); newDn = new DisplayedNote(dn.getHolder(), dd.getTree(),...
Note newNote = new Note(addNoteDialog.getName(), note, 0, ""); newDn = new DisplayedNote(dn, dd.getTree(), newNote);
DisplayedNote dn = dd.getTree().getSelectedNote(); Note note = dn.getNote(); if (after) { Note newNote = new Note(addNoteDialog.getName(), note.getHolder(), note.getIndex() + 1, ""); newDn = new DisplayedNote(dn.getHolder(), dd.getTree(), newNote); } else { Note newNote = new Note(addNoteDialog.getName(), note, 0, "");...
public void ok(Event e) { DisplayedNote dn = dd.getTree().getSelectedNote(); Note note = dn.getNote(); DisplayedNote newDn; if (after) { Note newNote = new Note(addNoteDialog.getName(), note.getHolder(), note.getIndex() + 1, ""); newDn = new DisplayedNote(dn.getHolder(), dd.getTree(),...
dn.setSelected(false);
public void ok(Event e) { DisplayedNote dn = dd.getTree().getSelectedNote(); Note note = dn.getNote(); DisplayedNote newDn; if (after) { Note newNote = new Note(addNoteDialog.getName(), note.getHolder(), note.getIndex() + 1, ""); newDn = new DisplayedNote(dn.getHolder(), dd.getTree(),...
new NoteTreeNode(tree, root);
new DisplayedNote(tree, root);
public void loadTree(Note root) { tree.removeAll(); new NoteTreeNode(tree, root); init(); }
if (!e.isPopupTrigger()) { return; } final int row = resultsTable.rowAtPoint(e.getPoint()); final JPopupMenu menu = new JPopupMenu(); Action addContactAction = new AbstractAction() { public void actionPerformed(ActionEvent e) { RosterDialog dialog = new RosterDialog(); String jid = (String)resultsTable.getValueAt(ro...
checkPopup(e);
public void showUsersFound(ReportedData data) { List columnList = new ArrayList(); Iterator columns = data.getColumns(); while (columns.hasNext()) { ReportedData.Column column = (ReportedData.Column)columns.next(); String label = column.getLabel(); columnList.ad...
checkPopup(e);
public void showUsersFound(ReportedData data) { List columnList = new ArrayList(); Iterator columns = data.getColumns(); while (columns.hasNext()) { ReportedData.Column column = (ReportedData.Column)columns.next(); String label = column.getLabel(); columnList.ad...
checkPopup(e);
public void mousePressed(MouseEvent e) { }
if (!e.isPopupTrigger()) { return; } final int row = resultsTable.rowAtPoint(e.getPoint()); final JPopupMenu menu = new JPopupMenu(); Action addContactAction = new AbstractAction() { public void actionPerformed(ActionEvent e) { RosterDialog dialog = new RosterDialog(); String jid = (String)resultsTable.getValueAt(ro...
checkPopup(e);
public void mouseReleased(MouseEvent e) { if (!e.isPopupTrigger()) { return; } // Get agent final int row = resultsTable.rowAtPoint(e.getPoint()); final JPopupMenu menu = new JPopupMenu(...
if ((start > end && step > 0) || (start < end && step < 0)) step = -step;
public void write(FastWriter out, Context context) throws PropertyException, IOException { int start=_start, end=_end, step = _step; Object tmp; // if necessary, do run-time evaluation of our // start, end, and step objects. if ( (tmp = _objStart) != null) { while (tmp ...
for (; ; start+=step) {
for (; start<=end; start+=step) {
public void write(FastWriter out, Context context) throws PropertyException, IOException { int start=_start, end=_end, step = _step; Object tmp; // if necessary, do run-time evaluation of our // start, end, and step objects. if ( (tmp = _objStart) != null) { while (tmp ...