Codota Logo
juzu.impl.common
Code IndexAdd Codota to your IDE (free)

How to use juzu.impl.common

Best Java code snippets using juzu.impl.common (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: juzu/juzu

/** Reinitialise. */
public void ReInit(java.io.Reader stream) {
 jj_input_stream.ReInit(stream, 1, 1);
 token_source.ReInit(jj_input_stream);
 token = new Token();
 jj_ntk = -1;
}
origin: org.juzu/juzu-core

/** Constructor. */
public JSONParser(java.io.Reader stream) {
 jj_input_stream = new JavaCharStream(stream, 1, 1);
 token_source = new JSONParserTokenManager(jj_input_stream);
 token = new Token();
 jj_ntk = -1;
}
origin: org.juzu/juzu-core

public static void invoke(Callback callback) throws TrimmingException {
 try {
  callback.call();
 }
 catch (Throwable t) {
  throw new TrimmingException(t);
 }
}
origin: org.juzu/juzu-core

private void assertAppend(String expected, String qn, String simpleName) {
 Name parsed = Name.parse(qn);
 Name appended = parsed.append(simpleName);
 assertEquals(expected, appended.toString());
 assertEquals(appended.size(), parsed.size() + 1);
}
origin: org.juzu/juzu-core

public JSON toJSON() {
 JSON json = new JSON();
 json.set("path", path.getCanonical());
 return json;
}
origin: org.juzu/juzu-core

/**
 * Resolve a path with respect to this name and return an absolute path.
 *
 * @param path the path
 * @return the corresponding absolute path
 */
public Path.Absolute resolve(Path path) {
 if (path instanceof Path.Absolute) {
  return (Path.Absolute)path;
 } else {
  return Path.absolute(append(path.getName()), path.getExt());
 }
}
origin: juzu/juzu

 final public void pair(JSON m) throws ParseException {
Token t = null;
Object o;
String fieldName = null;
  fieldName = fieldName();
  jj_consume_token(O_COLON);
  o = value();
    m.set(fieldName, o);
 }

origin: org.juzu/juzu-core

@Override
public InputStream getInputStream() throws IOException {
 return resource.getObject().getInputStream();
}
origin: org.juzu/juzu-core

private static void assertParameterTypes(Method m, String... parameterTypes) {
 MethodHandle handle = new MethodHandle(m);
 assertEquals(parameterTypes.length, handle.getParameterSize());
 for (int i = 0;i < parameterTypes.length;i++) {
  assertEquals(parameterTypes[i], handle.getParameterAt(i));
 }
}
origin: org.juzu/juzu-core

 private static void assertGetPrefix(String expected, String a, String b) {
  Name actual = Name.parse(a).getPrefix(Name.parse(b));
  assertEquals("Was expecting common prefix between " + a + " and " + b + "  to be equals to " + expected +
    " instead of " + actual,  Name.parse(expected), actual);
 }
}
origin: org.juzu/juzu-core

public static Path parse(String path) throws NullPointerException, IllegalArgumentException {
 boolean absolute = path.length() > 0 && path.charAt(0) == '/';
 String[] atoms = Lexers.parsePath(Lexers.PARSE_CANONICAL, EMPTY_STRING_ARRAY, 0, path, 0);
 if (absolute) {
  return new Absolute(new Name(atoms, atoms.length - 1), atoms[atoms.length - 1]);
 } else {
  return new Relative(new Name(atoms, atoms.length - 1), atoms[atoms.length - 1]);
 }
}
origin: org.juzu/juzu-core

private void assertIAE(String value) {
 try {
  Name.parse(value);
  fail("Was expecting " + value + " to fail");
 }
 catch (IllegalArgumentException ignore) {
 }
}
origin: juzu/juzu

public Path.Absolute resolve(String path) {
 String[] atoms = Lexers.parsePath(Lexers.PARSE_ANY, identifiers, size, path, 0);
 return new Path.Absolute(new Name(atoms, atoms.length - 1), atoms[atoms.length - 1]);
}
origin: org.juzu/juzu-core

private void assertDecodeException(String coded) {
 try {
  codec.decode(coded);
  fail();
 }
 catch (IllegalArgumentException e) {
 }
}
origin: org.juzu/juzu-core

@Override
protected Path.Absolute resolvePath(Path.Relative path) {
 return Path.Absolute.absolute(path.getName(), path.getExt());
}
origin: org.juzu/juzu-core

private Token jj_consume_token(int kind) throws ParseException {
 Token oldToken;
 if ((oldToken = token).next != null) token = token.next;
 else token = token.next = token_source.getNextToken();
 jj_ntk = -1;
 if (token.kind == kind) {
  return token;
 }
 token = oldToken;
 throw generateParseException();
}
origin: org.juzu/juzu-core

 final public void pair(JSON m) throws ParseException {
Token t = null;
Object o;
String fieldName = null;
  fieldName = fieldName();
  jj_consume_token(O_COLON);
  o = value();
    m.set(fieldName, o);
 }

origin: juzu/juzu

/** Constructor. */
public JSONParser(java.io.Reader stream) {
 jj_input_stream = new JavaCharStream(stream, 1, 1);
 token_source = new JSONParserTokenManager(jj_input_stream);
 token = new Token();
 jj_ntk = -1;
}
origin: org.juzu/juzu-core

/** Reinitialise. */
public void ReInit(java.io.Reader stream) {
 jj_input_stream.ReInit(stream, 1, 1);
 token_source.ReInit(jj_input_stream);
 token = new Token();
 jj_ntk = -1;
}
origin: org.juzu/juzu-core

/** Constructor with InputStream and supplied encoding */
public JSONParser(java.io.InputStream stream, String encoding) {
 try { jj_input_stream = new JavaCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }
 token_source = new JSONParserTokenManager(jj_input_stream);
 token = new Token();
 jj_ntk = -1;
}
juzu.impl.common

Most used classes

  • Tools
  • Name
    A name as defined by the Java Language Specification. The semantic is slightly different as this nam
  • JSON
    A simple JSON object useful for marshalling and unmarshalling data.
  • Logger
    The logger.
  • Path
  • Path$Absolute,
  • Resource,
  • Timestamped,
  • Builder$Map,
  • CharBuffer,
  • CharStream,
  • Completion,
  • CycleDetectionException,
  • FileKey,
  • Introspector,
  • JUL,
  • Lexers,
  • LiveClassLoader,
  • Location
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now