MCPcopy Index your code
hub / github.com/beanshell/beanshell / Type

Method Type

src/bsh/Parser.java:860–917  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

858 Type, name and expression syntax follows.
859*/
860 final public void Type() throws ParseException {
861 /*@bgen(jjtree) Type */
862 BSHType jjtn000 = new BSHType(JJTTYPE);
863 boolean jjtc000 = true;
864 jjtree.openNodeScope(jjtn000);
865 jjtreeOpenNodeScope(jjtn000);
866 try {
867 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
868 case BOOLEAN:
869 case BYTE:
870 case CHAR:
871 case DOUBLE:
872 case FLOAT:
873 case INT:
874 case LONG:
875 case SHORT:
876 PrimitiveType();
877 break;
878 case IDENTIFIER:
879 AmbiguousName();
880 break;
881 default:
882 jj_la1[21] = jj_gen;
883 jj_consume_token(-1);
884 throw new ParseException();
885 }
886 label_4:
887 while (true) {
888 if (jj_2_6(2)) {
889 ;
890 } else {
891 break label_4;
892 }
893 jj_consume_token(LBRACKET);
894 jj_consume_token(RBRACKET);
895 jjtn000.addArrayDimension();
896 }
897 } catch (Throwable jjte000) {
898 if (jjtc000) {
899 jjtree.clearNodeScope(jjtn000);
900 jjtc000 = false;
901 } else {
902 jjtree.popNode();
903 }
904 if (jjte000 instanceof RuntimeException) {
905 {if (true) throw (RuntimeException)jjte000;}
906 }
907 if (jjte000 instanceof ParseException) {
908 {if (true) throw (ParseException)jjte000;}
909 }
910 {if (true) throw (Error)jjte000;}
911 } finally {
912 if (jjtc000) {
913 jjtree.closeNodeScope(jjtn000, true);
914 jjtreeCloseNodeScope(jjtn000);
915 }
916 }
917 }

Callers 7

FormalParameterMethod · 0.95
ReturnTypeMethod · 0.95
InstanceOfExpressionMethod · 0.95
CastExpressionMethod · 0.95
PrimaryPrefixMethod · 0.95
EnhancedForStatementMethod · 0.95

Calls 12

jjtreeOpenNodeScopeMethod · 0.95
jj_ntkMethod · 0.95
PrimitiveTypeMethod · 0.95
AmbiguousNameMethod · 0.95
jj_consume_tokenMethod · 0.95
jj_2_6Method · 0.95
addArrayDimensionMethod · 0.95
jjtreeCloseNodeScopeMethod · 0.95
openNodeScopeMethod · 0.80
clearNodeScopeMethod · 0.80
closeNodeScopeMethod · 0.80
popNodeMethod · 0.45

Tested by

no test coverage detected