public void visitArrayTypeSignature(final ArrayTypeSignature a) { // extract and reify component type a.getComponentType().accept(this); final TypeReference ct = resultType; assert ct != null; resultType = getFactory().makeArrayType(ct); }
public void visitTypeVariableSignature(final TypeVariableSignature tv) { resultType = getFactory().findTypeVariable(tv.getName()); // if (resultType == null) { // resultType = BuiltinTypes.Object; // } }
private MethodTypeSignature parseMethodTypeSignature() { assert (index == 0); return MethodTypeSignature.make( parseZeroOrMoreFormalTypeParameters(), parseFormalParameters(), parseReturnType(), parseZeroOrMoreThrowsSignatures() ); }
private ArrayTypeSignature parseArrayTypeSignature() { if (current != '[') { throw error("expected array type signature"); } advance(); return ArrayTypeSignature.make(parseTypeSignature()); }
private ClassSignature parseClassSignature() { assert (index == 0); return ClassSignature.make( parseZeroOrMoreFormalTypeParameters(), parseClassTypeSignature(), parseSuperInterfaces() ); }
public void visitFormalTypeParameter(final FormalTypeParameter ftp) { final FieldTypeSignature[] bounds = ftp.getBounds(); resultType = getFactory().makeTypeVariable(ftp.getName(), bounds); }
private FormalTypeParameter parseFormalTypeParameter() { return FormalTypeParameter.make( parseIdentifier(), parseZeroOrMoreBounds() ); }
private ReturnType parseReturnType() { if (current() == 'V') { advance(); return VoidSignature.make(); } else { return parseTypeSignature(); } }
private ReturnType parseReturnType() { if (current == 'V') { advance(); return VoidSignature.make(); } else { return parseTypeSignature(); } }
private MethodTypeSignature parseMethodTypeSignature() { assert (index == 0); return MethodTypeSignature.make( parseZeroOrMoreFormalTypeParameters(), parseFormalParameters(), parseReturnType(), parseZeroOrMoreThrowsSignatures() ); }
private ArrayTypeSignature parseArrayTypeSignature() { if (current() != '[') { throw error("expected array type signature"); } advance(); return ArrayTypeSignature.make(parseTypeSignature()); }
public void visitArrayTypeSignature(final ArrayTypeSignature a) { // extract and reify component type a.getComponentType().accept(this); final TypeReference ct = resultType; assert ct != null; resultType = getFactory().makeArrayType(ct); }
private ClassSignature parseClassSignature() { assert (index == 0); return ClassSignature.make( parseZeroOrMoreFormalTypeParameters(), parseClassTypeSignature(), parseSuperInterfaces() ); }
private FormalTypeParameter parseFormalTypeParameter() { return FormalTypeParameter.make( parseIdentifier(), parseZeroOrMoreBounds() ); }
private ReturnType parseReturnType() { if (current == 'V') { advance(); return VoidSignature.make(); } else { return parseTypeSignature(); } }
private MethodTypeSignature parseMethodTypeSignature() { assert (index == 0); return MethodTypeSignature.make( parseZeroOrMoreFormalTypeParameters(), parseFormalParameters(), parseReturnType(), parseZeroOrMoreThrowsSignatures() ); }
private ArrayTypeSignature parseArrayTypeSignature() { if (current != '[') { throw error("expected array type signature"); } advance(); return ArrayTypeSignature.make(parseTypeSignature()); }
public void visitArrayTypeSignature(final ArrayTypeSignature a) { // extract and reify component type a.getComponentType().accept(this); final TypeReference ct = resultType; assert ct != null; resultType = getFactory().makeArrayType(ct); }
private ClassSignature parseClassSignature() { assert (index == 0); return ClassSignature.make( parseZeroOrMoreFormalTypeParameters(), parseClassTypeSignature(), parseSuperInterfaces() ); }
private FormalTypeParameter parseFormalTypeParameter() { return FormalTypeParameter.make( parseIdentifier(), parseZeroOrMoreBounds() ); }