src/share/classes/com/sun/tools/javac/jvm/ClassFile.java

changeset 1326
30c36e23f154
parent 826
5cf6c432ef2f
child 1336
26d93df3905a
equal deleted inserted replaced
1325:b2064a216117 1326:30c36e23f154
1 /* 1 /*
2 * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
43 * <pre> 43 * <pre>
44 * methodOrFieldSignature ::= type 44 * methodOrFieldSignature ::= type
45 * classSignature ::= [ typeparams ] supertype { interfacetype } 45 * classSignature ::= [ typeparams ] supertype { interfacetype }
46 * </pre> 46 * </pre>
47 * <p>The type syntax in signatures is extended as follows: 47 * <p>The type syntax in signatures is extended as follows:
48 * <pre> 48 * <pre>{@literal
49 * type ::= ... | classtype | methodtype | typevar 49 * type ::= ... | classtype | methodtype | typevar
50 * classtype ::= classsig { '.' classsig } 50 * classtype ::= classsig { '.' classsig }
51 * classig ::= 'L' name [typeargs] ';' 51 * classig ::= 'L' name [typeargs] ';'
52 * methodtype ::= [ typeparams ] '(' { type } ')' type 52 * methodtype ::= [ typeparams ] '(' { type } ')' type
53 * typevar ::= 'T' name ';' 53 * typevar ::= 'T' name ';'
54 * typeargs ::= '<' type { type } '>' 54 * typeargs ::= '<' type { type } '>'
55 * typeparams ::= '<' typeparam { typeparam } '>' 55 * typeparams ::= '<' typeparam { typeparam } '>'
56 * typeparam ::= name ':' type 56 * typeparam ::= name ':' type
57 * </pre> 57 * }</pre>
58 * <p>This class defines constants used in class files as well 58 * <p>This class defines constants used in class files as well
59 * as routines to convert between internal ``.'' and external ``/'' 59 * as routines to convert between internal ``.'' and external ``/''
60 * separators in class names. 60 * separators in class names.
61 * 61 *
62 * <p><b>This is NOT part of any supported API. 62 * <p><b>This is NOT part of any supported API.

mercurial