Logo Search packages:      
Sourcecode: japitools version File versions  Download package

static Type net::wuffies::japi::Type::fromNonGenericSig ( String  sig  )  [inline, static, inherited]

Construct a type based on a non-generic signature string, eg Z, [[I, Ljava/lang/String;.

Definition at line 88 of file Type.java.

                                                   {
    if (sig.length() == 1)
      return PrimitiveType.fromSig(sig.charAt(0));

    switch (sig.charAt(0)) 
    {
      case '[':
        return new ArrayType(fromNonGenericSig(sig.substring(1)));
      case 'L':
        return new ClassType(sig.substring(1, sig.length() - 1).replace('/', '.'));
      default:
        throw new RuntimeException("Illegal type: " + sig);
    }
  }


Generated by  Doxygen 1.6.0   Back to index