public static boolean isFinal ( LightweightTypeReference expressionTypeRef ) { if ( expressionTypeRef . isArray ( ) ) { return isFinal ( expressionTypeRef . getComponentType ( ) ) ; } if ( expressionTypeRef . isPrimitive ( ) ) { return true ; } return expressionTypeRef . getType ( ) instanceof JvmDeclaredType && ( ( JvmDeclaredType ) expressionTypeRef . getType ( ) ) . isFinal ( ) ; }
Replies if the given reference is referencing a final type .